Compare commits

...

19 Commits

Author SHA1 Message Date
4670e40af8 feat(frankenphp): configure frankenphp and remove phpfpm 2025-10-14 15:33:40 +02:00
a8f2da31c6 Merge pull request 'chore(hydra-dispatcher) #85 : bump symfony to version 6.4 and php version to 8.4' (#76) from issue-85-dispatcher into unstable
Reviewed-on: #76
2025-08-28 16:31:06 +02:00
b6a59a0fb5 chore(hydra-dispatcher) #85 : bump symfony to version 6.4 and php version to 8.4 2025-08-28 16:19:38 +02:00
930ff42495 Merge pull request 'chore(hydra-sql) #57 : bump symfony to version 6.4 and php version to 8.4' (#75) from issue-57-hydra-sql into unstable
Reviewed-on: #75
2025-07-30 13:46:37 +02:00
494f6d7fc7 chore(hydra-sql) #57 : bump symfony to version 6.4 and php version to 8.4 2025-07-30 13:31:34 +02:00
5c0a0b43a1 Merge pull request 'feat(caddy) #27-SC : update oidc, sql and dispatcher caddy images' (#74) from issue-27-sc-caddy-logs into unstable
Reviewed-on: #74
2025-07-30 12:00:36 +02:00
bf338d0a32 feat(caddy) #27-SC : update oidc, sql and dispatcher caddy images 2025-06-13 13:52:47 +02:00
a50f2e50c3 Merge pull request 'Sprint-6 : Update for compatibility with new symfony containers' (#51) from rm-default-configs into unstable
Reviewed-on: #51
Reviewed-by: vfebvre <vfebvre@cadoles.com>
2025-05-12 13:26:29 +02:00
7134e53584 fix(security): bump alpine version to fix vulnerabilities 2025-05-12 13:25:39 +02:00
41afa90886 feat : add emptyDir on /tmp for symfony containers based containers 2025-05-12 13:25:39 +02:00
f8b1dae1f2 feat : update image refs 2025-05-12 13:25:37 +02:00
3c9b5ec22a Remove sql default config 2025-05-12 13:24:54 +02:00
39438b0778 Remove dispatcher default config 2025-05-12 13:24:54 +02:00
905a2aaa0d Merge pull request 'feat(FC2) : update hydra-oidc for fc2 compatibility' (#71) from fc2 into unstable
Reviewed-on: #71
2025-04-29 11:31:52 +02:00
d2dfc4a5f8 feat(FC2) : update hydra-oidc for fc2 compatibility 2025-04-29 11:31:52 +02:00
e416237c20 Merge pull request 'feat(altcha) #4543 bis : remove feature flag endpoint' (#73) from issue-4543-hydra-sql-theme into unstable
Reviewed-on: #73
2025-04-15 10:57:05 +02:00
086069b605 feat(altcha) #4543 bis : remove feature flag endpoint 2025-04-15 10:20:38 +02:00
353b31e1ac Merge pull request 'MSE#4543 add altcha to hydra sql' (#72) from issue-4543-hydra-sql-theme into unstable
Reviewed-on: #72
Reviewed-by: vfebvre <vfebvre@cadoles.com>
2025-04-14 15:33:52 +02:00
e13ed81517 feat(altcha) #4543 : add altcha to hydra sql theme 2025-04-10 16:32:02 +02:00
7 changed files with 31 additions and 205 deletions

View File

@@ -17,52 +17,9 @@ spec:
app.kubernetes.io/name: hydra-oidc app.kubernetes.io/name: hydra-oidc
spec: spec:
containers: containers:
- name: hydra-oidc-php-fpm - name: hydra-oidc
image: reg.cadoles.com/cadoles/hydra-oidc-base:2024.4.2-develop.1349.c4711f6 image: reg.cadoles.com/gdupont/hydra-oidc-base:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
readinessProbe:
exec:
command:
- sh
- -c
- test -f /etc/php81/php-fpm.d/www.conf
livenessProbe:
exec:
command:
- php
- bin/console
- -V
initialDelaySeconds: 10
periodSeconds: 30
env:
- name: PHP_FPM_LISTEN
value: 127.0.0.1:9000
- name: PHP_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_MEMORY_LIMIT
value: 128m
envFrom:
- configMapRef:
name: hydra-oidc-env
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
- name: hydra-oidc-caddy
image: reg.cadoles.com/cadoles/hydra-oidc-base:2024.4.2-develop.1349.c4711f6
imagePullPolicy: IfNotPresent
args:
[
"/usr/sbin/caddy",
"run",
"--adapter",
"caddyfile",
"--config",
"/etc/caddy/Caddyfile",
]
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /healthy path: /healthy
@@ -84,8 +41,6 @@ spec:
- configMapRef: - configMapRef:
name: hydra-oidc-env name: hydra-oidc-env
env: env:
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
value: 127.0.0.1:9000
- name: CADDY_HTTPS_PORT - name: CADDY_HTTPS_PORT
value: "8443" value: "8443"
- name: CADDY_HTTP_PORT - name: CADDY_HTTP_PORT
@@ -94,9 +49,13 @@ spec:
value: "/tmp/caddy" value: "/tmp/caddy"
- name: CADDY_APP_ROOT_PUBLIC - name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/" value: "/app/public/"
- name: CADDY_LOG_FILTER
value: healthy|metrics
- name: CADDY_LOG_SKIP
value: "true"
resources: {} resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
restartPolicy: Always restartPolicy: Always
volumes:
- name: oidc-tmp
emptyDir:
medium: Memory

View File

@@ -1,7 +0,0 @@
sql_login:
login_column_name: mail
password_column_name: password
salt_column_name: salt
table_name: user
data_to_fetch:
- mail

View File

@@ -24,9 +24,9 @@ configMapGenerator:
- DB_PASSWORD="makeMeASecret" - DB_PASSWORD="makeMeASecret"
- REDIS_DSN="redis://redis:6379" - REDIS_DSN="redis://redis:6379"
- PEPPER="MakeMeABigSecret" - PEPPER="MakeMeABigSecret"
- name: sql-login-config - ALTCHA_HOST=http://altcha:3333
files: - ALTCHA_BASE_URL=/altcha
- ./files/sql_login.yaml - ALTCHA_ENABLED=true
- name: hydra-sql-php-ini - name: hydra-sql-php-ini
files: files:
- ./files/03_base.ini - ./files/03_base.ini

View File

@@ -20,57 +20,9 @@ spec:
app.kubernetes.io/name: hydra-sql app.kubernetes.io/name: hydra-sql
spec: spec:
containers: containers:
- name: hydra-sql-fpm - name: hydra-sql
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84 image: reg.cadoles.com/gdupont/hydra-sql-base:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
readinessProbe:
exec:
command:
- sh
- -c
- test -f /etc/php81/php-fpm.d/www.conf
livenessProbe:
exec:
command:
- php
- bin/console
- -V
initialDelaySeconds: 10
periodSeconds: 30
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
envFrom:
- configMapRef:
name: hydra-sql-env
env:
- name: PHP_FPM_LISTEN
value: 127.0.0.1:9000
- name: PHP_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_LOG_LEVEL
value: warning
- name: OPCACHE_VALIDATE_TIMESTAMP
value: "0"
- name: OPCACHE_REVALIDATE_FREQ
value: "0"
volumeMounts:
- name: sql-login-config
mountPath: "/app/config/sql_login_configuration/sql_login.yaml"
subPath: "sql_login.yaml"
- name: hydra-sql-php-ini
mountPath: /etc/php81/conf.d/03_base.ini
subPath: 03_base.ini
- name: hydra-sql-caddy
image: reg.cadoles.com/cadoles/hydra-sql-base:2025.3.7-develop.1415.7239d84
imagePullPolicy: IfNotPresent
args: ["/usr/sbin/caddy", "run", "--adapter", "caddyfile", "--config", "/etc/caddy/Caddyfile"]
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health
@@ -89,8 +41,6 @@ spec:
- configMapRef: - configMapRef:
name: hydra-sql-env name: hydra-sql-env
env: env:
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
value: 127.0.0.1:9000
- name: CADDY_HTTPS_PORT - name: CADDY_HTTPS_PORT
value: "8443" value: "8443"
- name: CADDY_HTTP_PORT - name: CADDY_HTTP_PORT
@@ -99,24 +49,20 @@ spec:
value: "/tmp/caddy" value: "/tmp/caddy"
- name: CADDY_APP_ROOT_PUBLIC - name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/" value: "/app/public/"
- name: CADDY_LOG_FILTER
value: health|metrics
- name: CADDY_LOG_SKIP
value: "true"
resources: {} resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
volumeMounts:
- name: sql-login-config
mountPath: "/app/config/sql_login_configuration/sql_login.yaml"
subPath: "sql_login.yaml"
volumes: volumes:
- name: sql-login-config
configMap:
name: sql-login-config
- name: hydra-sql-php-ini - name: hydra-sql-php-ini
configMap: configMap:
name: hydra-sql-php-ini name: hydra-sql-php-ini
- name: sql-tmp
emptyDir:
medium: Memory
restartPolicy: Always restartPolicy: Always

View File

@@ -1,16 +0,0 @@
parameters:
env(HYDRA_DISPATCHER_WEBHOOK_ENABLED): false
env(HYDRA_DISPATCHER_WEBHOOK_API_URL): ""
env(HYDRA_DISPATCHER_WEBHOOK_API_KEY): ""
env(HYDRA_DISPATCHER_WEBHOOK_API_METHOD): POST
env(HYDRA_DISPATCHER_FIREWALL_ADDITIONAL_PROPERTIES): true
hydra:
apps: []
webhook:
enabled: "%env(bool:HYDRA_DISPATCHER_WEBHOOK_ENABLED)%"
api_url: "%env(string:HYDRA_DISPATCHER_WEBHOOK_API_URL)%"
api_key: "%env(string:HYDRA_DISPATCHER_WEBHOOK_API_KEY)%"
api_method: "%env(string:HYDRA_DISPATCHER_WEBHOOK_API_METHOD)%"
webhook_post_login:
enabled: false

View File

@@ -26,9 +26,6 @@ configMapGenerator:
- DEFAULT_LOCALE=fr - DEFAULT_LOCALE=fr
- APP_LOCALES=fr,en - APP_LOCALES=fr,en
- REDIS_DSN="redis://redis:6379" - REDIS_DSN="redis://redis:6379"
- name: hydra-dispatcher-apps
files:
- apps.yaml=./files/hydra/default.yaml
- name: hydra-dispatcher-php-ini - name: hydra-dispatcher-php-ini
files: files:
- ./files/03_base.ini - ./files/03_base.ini

View File

@@ -18,60 +18,9 @@ spec:
app.kubernetes.io/name: hydra-dispatcher app.kubernetes.io/name: hydra-dispatcher
spec: spec:
containers: containers:
- name: hydra-dispatcher-php-fpm - name: hydra-dispatcher
image: reg.cadoles.com/cadoles/hydra-dispatcher-base:2025.3.18-develop.1401.4646fbb image: reg.cadoles.com/gdupont/hydra-dispatcher-base:latest
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
readinessProbe:
exec:
command:
- sh
- -c
- test -f /etc/php81/php-fpm.d/www.conf
livenessProbe:
exec:
command:
- php
- bin/console
- -V
initialDelaySeconds: 10
periodSeconds: 30
env:
- name: PHP_FPM_LISTEN
value: 127.0.0.1:9000
- name: PHP_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_MEMORY_LIMIT
value: 128m
- name: OPCACHE_VALIDATE_TIMESTAMP
value: "0"
- name: OPCACHE_REVALIDATE_FREQ
value: "0"
envFrom:
- configMapRef:
name: hydra-dispatcher-env
volumeMounts:
- mountPath: /app/config/hydra
name: hydra-dispatcher-apps
- name: hydra-dispatcher-php-ini
mountPath: /etc/php81/conf.d/03_base.ini
subPath: 03_base.ini
resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
- name: hydra-dispatcher-caddy
image: reg.cadoles.com/cadoles/hydra-dispatcher-base:2025.3.18-develop.1401.4646fbb
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args:
[
"/usr/sbin/caddy",
"run",
"--adapter",
"caddyfile",
"--config",
"/etc/caddy/Caddyfile",
]
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /health path: /health
@@ -90,8 +39,6 @@ spec:
- configMapRef: - configMapRef:
name: hydra-dispatcher-env name: hydra-dispatcher-env
env: env:
- name: CADDY_APP_UPSTREAM_BACKEND_SERVER
value: 127.0.0.1:9000
- name: CADDY_HTTPS_PORT - name: CADDY_HTTPS_PORT
value: "8443" value: "8443"
- name: CADDY_HTTP_PORT - name: CADDY_HTTP_PORT
@@ -100,19 +47,19 @@ spec:
value: "/tmp/caddy" value: "/tmp/caddy"
- name: CADDY_APP_ROOT_PUBLIC - name: CADDY_APP_ROOT_PUBLIC
value: "/app/public/" value: "/app/public/"
- name: CADDY_LOG_FILTER
value: health|metrics
- name: CADDY_LOG_SKIP
value: "true"
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
resources: {} resources: {}
securityContext:
runAsNonRoot: true
runAsGroup: 1000
runAsUser: 1000
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: hydra-dispatcher-apps
configMap:
name: hydra-dispatcher-apps
- name: hydra-dispatcher-php-ini - name: hydra-dispatcher-php-ini
configMap: configMap:
name: hydra-dispatcher-php-ini name: hydra-dispatcher-php-ini
- name: dispatcher-tmp
emptyDir:
medium: Memory