Skip to content

Commit 2eb31bf

Browse files
committed
feat: add admin service and update CORS settings for admin environment
1 parent f9f902e commit 2eb31bf

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- fin
1616
- finNarrator
1717
- frontend
18+
- admin
1819
- zugferd
1920
- keycloak
2021
- azDocumentAi

infrastructure/hopps/overlays/dev/helm-release.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
sourceRef:
1010
kind: HelmRepository
1111
name: hopps
12-
version: 0.2.7
12+
version: 0.2.8
1313
interval: 1m0s
1414
values:
1515
# az-document-ai
@@ -106,6 +106,34 @@ spec:
106106
- secretName: frontend-tls
107107
hosts:
108108
- dev.${DOMAIN_2}
109+
# admin
110+
admin:
111+
image:
112+
tag: "5"
113+
envFrom:
114+
# same realm, client and org API as the frontend, by design
115+
- secretRef:
116+
name: frontend
117+
envVars:
118+
# where impersonation lands the admin
119+
- name: VITE_SPA_URL
120+
value: https://dev.${DOMAIN_2}
121+
podSecurityContext:
122+
fsGroup: 1000
123+
ingress:
124+
enabled: true
125+
annotations:
126+
cert-manager.io/cluster-issuer: letsencrypt-prod
127+
ingressClassName: traefik
128+
hosts:
129+
- host: admin.dev.${DOMAIN_2}
130+
paths:
131+
- path: /
132+
pathType: Prefix
133+
tls:
134+
- secretName: admin-tls
135+
hosts:
136+
- admin.dev.${DOMAIN_2}
109137
zugferd:
110138
image:
111139
tag: "929"

infrastructure/hopps/overlays/dev/middlewares.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ spec:
1616
- "*"
1717
accessControlAllowOriginList:
1818
- "https://dev.${DOMAIN_2}"
19+
- "https://admin.dev.${DOMAIN_2}"
1920
- "http://localhost:5173"
21+
- "http://localhost:5174"
2022
accessControlMaxAge: 100
2123
addVaryHeader: true
2224
---
@@ -38,8 +40,10 @@ spec:
3840
- "*"
3941
accessControlAllowOriginList:
4042
- "https://dev.${DOMAIN_2}"
43+
- "https://admin.dev.${DOMAIN_2}"
4144
- "https://demo.${DOMAIN_2}"
4245
- "http://localhost:5173"
46+
- "http://localhost:5174"
4347
accessControlMaxAge: 100
4448
addVaryHeader: true
4549
---

0 commit comments

Comments
 (0)