From 260c5555fac45931600bd8f4d977c3c7e80b49e7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 21 Mar 2019 11:08:08 +0100 Subject: [PATCH] add redis dependency back in for caching --- debian/control | 2 +- helm/passbook/charts/redis-5.1.0.tgz | Bin 0 -> 18157 bytes helm/passbook/requirements.lock | 7 +++++-- helm/passbook/requirements.yaml | 3 +++ .../passbook/templates/passbook-configmap.yaml | 1 + passbook/core/requirements.txt | 17 +++++++++-------- passbook/core/settings.py | 12 ++++++++++++ passbook/lib/default.yml | 1 + 8 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 helm/passbook/charts/redis-5.1.0.tgz diff --git a/debian/control b/debian/control index 41f1bc431..24d4909f8 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.9.6 Package: passbook Architecture: all -Recommends: mysql-server, rabbitmq-server +Recommends: mysql-server, rabbitmq-server, redis-server Pre-Depends: adduser, libldap2-dev, libsasl2-dev Depends: python3 (>= 3.5) | python3.6 | python3.7, python3-pip, dbconfig-pgsql | dbconfig-no-thanks, ${misc:Depends} Description: Authentication Provider/Proxy supporting protocols like SAML, OAuth, LDAP and more. diff --git a/helm/passbook/charts/redis-5.1.0.tgz b/helm/passbook/charts/redis-5.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..71237425a5f53c88b1a4b0b0861432278301d24b GIT binary patch literal 18157 zcmZs?V{~Rs)My*qMt6*kZQJ$}qhs4iM;+U?ZQHhO+j>sF=X`hEbH}*#W2>t6zg2tf zRdW(Xz+iy<*ML+YG=`GOjK-33?6MwQY(^~Vj3z2<76274b_I2Hb~z1eOG8@|4^<^Q zKFQzKHXxT>K(`I{dQMNjWql@v^X*liViT^ghNTnNoe{bEt<2+yn5@AXGBQIs zR2`7Uf~bd{ob09$lW{ce04fcO&9pnNpMA1r&a5~@E-$!*&YGolb2Ufij5sVw zv0N8_z4?ihIap%DgHq-facbWdKQVVNc27@l59SUizgW{;>Cg7lBP64_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-z=eF?)~7?8}y!U^^=IF8n4?n7(b~06JG!MRfKV*`HO3zugmz~tlGk~ z?#%gwzlX!u@738DaA4kZ-Oceey$MvbfyrWo_uY>+6{I zKPpx~$YUbE8evv5;-f->yX}b-QI>SrRvQ(G{2Np{Xmwm+Q?ud(5)$X*oY% z(e_<&>y!8Hbld8FZRd0M$?x57{$BjDENt`g$uBwHJUu|%{;nw1;@(Gnr3@$iYXj@j z6!%!!7U(|Mn{wSJsAJ`_%Y{CZyt(5`7q82EAzQ2!{b{X?#Qp<BnQxUavKSj?7rbNRcvogdFi#;dl*9(>!yo#K! zxmwVm{;a1}(`<(0JAP`Iiruu`b*XM5aJ;FyRDR$7|68y9|Nf!i$CnL{{{Q~*^5ePx z-yP>23SNA3M>gxCZ|7Q6pDP9b{(h|Z`xX12zx-MIjlLA#v62QZl>7hWMP}+>dt0lT zZPCDGA8-ErFaP&He#8HI*W!DwjCT~d9(?@k$|xcJJyzg=9!G*W%LZa0DRX4ntA#I97~~|^UvZZ`pSWbshK+BQeXQ=kG5@vZ`u{5x zUh2#!*8Py*&%dVkzop%}HUA&0_w$#({;xRCH$2zp*rml&YXpIZZ~Q%cSL)v*xy}F1 z2Jv@EENI{J|MAO@o7KI4|G)ScxZ$WoyK(gYpN(6d<1j1t$p07N*LF46mFF;V&$AUecObafL$1hir;JF6NQQ2+ zMDm7M#{7y!l|i|y>i=rR|5lzcd(louhv{9%RrZ{b&F12JCGu0Jb8AA{^+{iSUPylY z)pcan-)C%$_xm4Ixm{7tbSZCM`Slij@8EUl-oZl_>rTag&tgk)d;C*jj^M&44xC=> z&vK$(FMd4Z8gGdI(TN4qT7s7MMV;}%ve}6Mi|IN?;%)pav{{P)QeKW&1Mg{;2CRr%} literal 0 HcmV?d00001 diff --git a/helm/passbook/requirements.lock b/helm/passbook/requirements.lock index e0d0da107..15be0d3d0 100644 --- a/helm/passbook/requirements.lock +++ b/helm/passbook/requirements.lock @@ -5,5 +5,8 @@ dependencies: - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ version: 3.10.1 -digest: sha256:c36e054785f7d706d7d3f525eb1b167dbc89b42f84da7fc167a18bbb6542c999 -generated: 2019-03-11T20:36:35.125079+01:00 +- name: redis + repository: https://kubernetes-charts.storage.googleapis.com/ + version: 5.1.0 +digest: sha256:8bf68bc928a2e3c0f05139635be05fa0840554c7bde4cecd624fac78fb5fa5a3 +generated: 2019-03-21T11:06:51.553379+01:00 diff --git a/helm/passbook/requirements.yaml b/helm/passbook/requirements.yaml index 9ae71eac5..0f2e1f356 100644 --- a/helm/passbook/requirements.yaml +++ b/helm/passbook/requirements.yaml @@ -5,3 +5,6 @@ dependencies: - name: postgresql version: 3.10.1 repository: https://kubernetes-charts.storage.googleapis.com/ +- name: redis + version: 5.1.0 + repository: https://kubernetes-charts.storage.googleapis.com/ diff --git a/helm/passbook/templates/passbook-configmap.yaml b/helm/passbook/templates/passbook-configmap.yaml index 8283e8d20..6fcf669a3 100644 --- a/helm/passbook/templates/passbook-configmap.yaml +++ b/helm/passbook/templates/passbook-configmap.yaml @@ -37,6 +37,7 @@ data: secure_proxy_header: HTTP_X_FORWARDED_PROTO: https rabbitmq: "user:{{ .Values.rabbitmq.rabbitmq.password }}@{{ .Release.Name }}-rabbitmq" + redis: ":{{ .Values.redis.password }}@{{ .Release.Name }}-redis-master" # Error reporting, sends stacktrace to sentry.services.beryju.org error_report_enabled: {{ .Values.config.error_reporting }} diff --git a/passbook/core/requirements.txt b/passbook/core/requirements.txt index dea78258c..e6bf90dbe 100644 --- a/passbook/core/requirements.txt +++ b/passbook/core/requirements.txt @@ -1,12 +1,13 @@ -django>=2.0 -django-model-utils +celery +cherrypy +colorlog django-ipware +django-model-utils +django-redis +django>=2.0 djangorestframework +idna<2.8,>=2.5 +markdown +psycopg2 PyYAML raven -markdown -colorlog -celery -psycopg2 -idna<2.8,>=2.5 -cherrypy diff --git a/passbook/core/settings.py b/passbook/core/settings.py index b5b42ef78..f30af2c77 100644 --- a/passbook/core/settings.py +++ b/passbook/core/settings.py @@ -45,6 +45,8 @@ AUTH_USER_MODEL = 'passbook_core.User' CSRF_COOKIE_NAME = 'passbook_csrf' SESSION_COOKIE_NAME = 'passbook_session' +SESSION_ENGINE = "django.contrib.sessions.backends.cache" +SESSION_CACHE_ALIAS = "default" LANGUAGE_COOKIE_NAME = 'passbook_language' AUTHENTICATION_BACKENDS = [ @@ -99,6 +101,16 @@ REST_FRAMEWORK = { ] } +CACHES = { + "default": { + "BACKEND": "django_redis.cache.RedisCache", + "LOCATION": "redis://%s" % CONFIG.get('redis'), + "OPTIONS": { + "CLIENT_CLASS": "django_redis.client.DefaultClient", + } + } +} + MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', diff --git a/passbook/lib/default.yml b/passbook/lib/default.yml index ab1015d9e..450581a93 100644 --- a/passbook/lib/default.yml +++ b/passbook/lib/default.yml @@ -30,6 +30,7 @@ debug: false secure_proxy_header: HTTP_X_FORWARDED_PROTO: https rabbitmq: guest:guest@localhost/passbook +redis: localhost # Error reporting, sends stacktrace to sentry.services.beryju.org error_report_enabled: true secret_key: 9$@r!d^1^jrn#fk#1#@ks#9&i$^s#1)_13%$rwjrhd=e8jfi_s