🔧(helm) use stateless OIDC in dev and staging

Getting rid of Redis should help with performance.
This commit is contained in:
Jonathan Perret
2026-03-25 10:37:00 +01:00
parent 018b9e8726
commit 9db60451aa
4 changed files with 4 additions and 21 deletions
+1 -6
View File
@@ -14,7 +14,7 @@ services:
GUNICORN_CMD_ARGS: --workers=2 GUNICORN_CMD_ARGS: --workers=2
TEST_E2E: 1 TEST_E2E: 1
#TEST_E2E_PC: 1 #TEST_E2E_PC: 1
OIDC_DB_URI: redis://redis/0 OIDC_DB_URI: stateless://:STATE-ENCRYPTION-KEY@localhost
CLIENT_DB_JSON: | CLIENT_DB_JSON: |
{ {
"oidc-test-client": { "oidc-test-client": {
@@ -38,8 +38,6 @@ services:
volumes: volumes:
- ./src/satosa:/app - ./src/satosa:/app
- ./docker/files/usr/local/etc/gunicorn/satosa.py:/usr/local/etc/gunicorn/satosa.py - ./docker/files/usr/local/etc/gunicorn/satosa.py:/usr/local/etc/gunicorn/satosa.py
depends_on:
- redis
healthcheck: healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8000/ping"] test: ["CMD", "curl", "--fail", "http://localhost:8000/ping"]
interval: 60s interval: 60s
@@ -77,9 +75,6 @@ services:
extra_hosts: extra_hosts:
- "oidc2fer.127.0.0.1.nip.io:host-gateway" - "oidc2fer.127.0.0.1.nip.io:host-gateway"
redis:
image: redis:7.2.4
nginx: nginx:
image: nginx:1.25 image: nginx:1.25
ports: ports:
@@ -32,7 +32,7 @@ satosa:
valueFrom: { secretKeyRef: { name: oidc2fer, key: OIDC_FRONTEND_KEY } } valueFrom: { secretKeyRef: { name: oidc2fer, key: OIDC_FRONTEND_KEY } }
- name: OIDC_DB_URI - name: OIDC_DB_URI
value: "redis://:pass@redis-master:6379" value: "stateless://:$(STATE_ENCRYPTION_KEY)@localhost"
- name: CLIENT_DB_JSON - name: CLIENT_DB_JSON
value: |- value: |-
@@ -35,7 +35,7 @@ satosa:
valueFrom: { secretKeyRef: { name: oidc2fer, key: CLIENT_DB_JSON } } valueFrom: { secretKeyRef: { name: oidc2fer, key: CLIENT_DB_JSON } }
- name: OIDC_DB_URI - name: OIDC_DB_URI
valueFrom: { secretKeyRef: { name: redis.redis.libre.sh, key: url } } value: "stateless://:$(STATE_ENCRYPTION_KEY)@localhost"
- name: SIRET_MAP - name: SIRET_MAP
value: |- value: |-
+1 -13
View File
@@ -21,20 +21,8 @@ repositories:
oci: true oci: true
releases: releases:
- name: redis
installed: {{ eq .Environment.Name "dev" | toYaml }}
namespace: {{ .Namespace }}
chart: bitnami/redis
version: 18.19.2
values:
- auth:
password: pass
architecture: standalone
image:
repository: bitnamilegacy/redis
- name: extra - name: extra
installed: {{ ne .Environment.Name "dev" | toYaml }} installed: {{ eq .Environment.Name "outscale-production" | toYaml }}
namespace: {{ .Namespace }} namespace: {{ .Namespace }}
chart: ./extra chart: ./extra
secrets: secrets: