Skip to content

Commit 07fc6bf

Browse files
chore: sync from governance-studio-infrastructure @ f2c78b0
Updated: charts govctl Source: eqtylab/governance-studio-infrastructure@f2c78b0
1 parent 9ba27d5 commit 07fc6bf

19 files changed

Lines changed: 46 additions & 163 deletions

File tree

charts/auth-service/README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Key capabilities:
1818

1919
Auth Service uses runtime configuration injected via environment variables. Application configuration is provided through Helm values and injected into the container at startup.
2020

21+
The container also receives a `SERVICE_VERSION` environment variable, auto-populated from `Chart.Version`. This is intended for display and observability purposes and is not user-configurable.
22+
2123
This allows:
2224

2325
- A single immutable container image across environments
@@ -456,11 +458,11 @@ All secret references support global fallbacks when deployed via umbrella chart.
456458

457459
#### Logging Configuration
458460

459-
| Key | Type | Default | Description |
460-
| ------------------------ | ------ | ----------------------------------------------- | --------------------------------- |
461-
| config.logging.level | string | `"info"` | Log level (debug/info/warn/error) |
462-
| config.logging.format | string | `"json"` | Log format (json/text) |
463-
| config.logging.skipPaths | string | `"/health,/health/live,/health/ready,/metrics"` | Paths to skip in logs |
461+
| Key | Type | Default | Description |
462+
| ------------------------ | ------ | -------------------------------------- | --------------------------------- |
463+
| config.logging.level | string | `"info"` | Log level (debug/info/warn/error) |
464+
| config.logging.format | string | `"json"` | Log format (json/text) |
465+
| config.logging.skipPaths | string | `"/health,/health/live,/health/ready"` | Paths to skip in logs |
464466

465467
#### CORS Configuration
466468

@@ -486,7 +488,6 @@ All secret references support global fallbacks when deployed via umbrella chart.
486488
| config.idp.auth0.apiIdentifier | string | `""` | API identifier (**must be set**) |
487489
| config.idp.auth0.defaultConnection | string | `"Username-Password-Authentication"` | Default connection |
488490
| config.idp.auth0.defaultRoles | list | `["user"]` | Default roles for new users |
489-
| config.idp.auth0.sendInvitationEmail | bool | `true` | Send invitation email on user creation |
490491
| config.idp.auth0.clientId | string | `""` | Auth0 client ID (auto-configured from global.secrets.auth.auth0) |
491492
| config.idp.auth0.clientSecret | string | `""` | Auth0 client secret (auto-configured from global.secrets.auth.auth0) |
492493
| config.idp.auth0.managementClientId | string | `""` | Management API client ID (auto-configured from global.secrets.auth.auth0) |
@@ -559,18 +560,6 @@ Token exchange is only relevant for Keycloak deployments using federated authent
559560
| config.tokenExchange.keyId | string | `"auth-service-prod-001"` | Key identifier for signing key |
560561
| config.tokenExchange.privateKey | string | `""` | Token exchange private key (auto-configured from global.secrets.auth.keycloak) |
561562

562-
### Metrics Configuration
563-
564-
| Key | Type | Default | Description |
565-
| ------------------------------------ | ------ | ------------ | -------------------------------- |
566-
| metrics.enabled | bool | `false` | Enable Prometheus metrics |
567-
| metrics.port | int | `9090` | Metrics port |
568-
| metrics.path | string | `"/metrics"` | Metrics path |
569-
| metrics.serviceMonitor.enabled | bool | `false` | Enable ServiceMonitor |
570-
| metrics.serviceMonitor.interval | string | `"30s"` | Scrape interval |
571-
| metrics.serviceMonitor.scrapeTimeout | string | `"10s"` | Scrape timeout |
572-
| metrics.serviceMonitor.labels | object | `{}` | Additional ServiceMonitor labels |
573-
574563
### Advanced: Network Policy Configuration
575564

576565
| Key | Type | Default | Description |

charts/auth-service/templates/configmap.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ data:
1212
PORT: "{{ .Values.config.server.port }}"
1313
HOST: "{{ .Values.config.server.host }}"
1414
ENVIRONMENT: "{{ .Values.config.server.environment | default ((.Values.global).environmentType) | default "production" }}"
15+
SERVICE_VERSION: {{ .Chart.Version | quote }}
1516
AUTH_SERVICE_URL: {{ .Values.config.server.authServiceUrl | default (printf "http://%s-auth-service:%s/api/v1/auth" .Release.Name (toString .Values.config.server.port)) | quote }}
1617
SWAGGER_ENABLED: "{{ .Values.config.server.swaggerEnabled }}"
1718
{{- if .Values.config.server.swaggerEnabled }}
@@ -39,9 +40,9 @@ data:
3940
DB_PORT: "{{ .Values.externalDatabase.port | default ((.Values.global).postgresql).port | default 5432 }}"
4041
DB_NAME: "{{ .Values.externalDatabase.name | default ((.Values.global).postgresql).database | default "governance" }}"
4142
DB_USER: "{{ .Values.externalDatabase.user | default ((.Values.global).postgresql).username | default "postgres" }}"
42-
DB_SSL_MODE: "{{ .Values.externalDatabase.sslMode | default ((.Values.global).postgresql).sslMode | default "disable" }}"
43-
DATABASE_AUTO_MIGRATE: "{{ .Values.migrations.runAtStartup }}"
44-
DATABASE_MIGRATIONS_PATH: "{{ .Values.migrations.path }}"
43+
DB_SSLMODE: "{{ .Values.externalDatabase.sslMode | default ((.Values.global).postgresql).sslMode | default "disable" }}"
44+
MIGRATIONS_RUN_AT_STARTUP: "{{ .Values.migrations.runAtStartup }}"
45+
MIGRATIONS_PATH: "{{ .Values.migrations.path }}"
4546

4647
# ==========================================================================
4748
# Identity Provider Configuration
@@ -67,7 +68,6 @@ data:
6768
{{- end }}
6869
IDP_AUTH0_DEFAULT_CONNECTION: "{{ .Values.config.idp.auth0.defaultConnection }}"
6970
IDP_AUTH0_DEFAULT_ROLES: "{{ .Values.config.idp.auth0.defaultRoles | join "," }}"
70-
IDP_AUTH0_SEND_INVITATION_EMAIL: "{{ .Values.config.idp.auth0.sendInvitationEmail }}"
7171
{{- end }}
7272

7373
{{- if eq $idpProvider "keycloak" }}
@@ -165,14 +165,4 @@ data:
165165
# ==========================================================================
166166
AUTH_SERVICE_KEY_ID: "{{ .Values.config.tokenExchange.keyId }}"
167167
{{- end }}
168-
169-
{{- if .Values.metrics.enabled }}
170-
171-
# ==========================================================================
172-
# Metrics Configuration
173-
# ==========================================================================
174-
METRICS_ENABLED: "true"
175-
METRICS_PORT: "{{ .Values.metrics.port }}"
176-
METRICS_PATH: "{{ .Values.metrics.path }}"
177-
{{- end }}
178168
{{- end }}

charts/auth-service/templates/deployment.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ spec:
100100
- name: http
101101
containerPort: {{ .Values.config.server.port }}
102102
protocol: TCP
103-
{{- if .Values.metrics.enabled }}
104-
- name: metrics
105-
containerPort: {{ .Values.metrics.port }}
106-
protocol: TCP
107-
{{- end }}
108103
envFrom:
109104
- configMapRef:
110105
name: {{ include "auth-service.fullname" . }}

charts/auth-service/templates/migration-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ spec:
5353
name: {{ .Values.externalDatabase.passwordSecretKeyRef.name | default ((.Values.global.secrets).database).secretName | quote }}
5454
key: {{ .Values.externalDatabase.passwordSecretKeyRef.key | default ((.Values.global.secrets).database).keys.password | default "password" | quote }}
5555
{{- end }}
56-
- name: DB_SSL_MODE
56+
- name: DB_SSLMODE
5757
value: {{ .Values.externalDatabase.sslMode | default ((.Values.global).postgresql).sslMode | default "disable" | quote }}
5858
{{- $pgSslRootCert := (((.Values.global).postgresql).sslRootCert) | default dict }}
5959
{{- if or $pgSslRootCert.secretName $pgSslRootCert.configMapName }}
6060
- name: PGSSLROOTCERT
6161
value: {{ printf "/etc/ssl/postgres/%s" ($pgSslRootCert.key | default "ca.crt") | quote }}
6262
{{- end }}
63-
- name: DATABASE_MIGRATIONS_PATH
63+
- name: MIGRATIONS_PATH
6464
value: {{ .Values.migrations.path | quote }}
6565
{{- with .Values.migration.resources }}
6666
resources:

charts/auth-service/templates/service.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ spec:
1212
targetPort: http
1313
protocol: TCP
1414
name: http
15-
{{- if .Values.metrics.enabled }}
16-
- port: {{ .Values.metrics.port }}
17-
targetPort: metrics
18-
protocol: TCP
19-
name: metrics
20-
{{- end }}
2115
selector:
2216
{{- include "auth-service.selectorLabels" . | nindent 4 }}
2317
{{- end }}

charts/auth-service/templates/servicemonitor.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

charts/auth-service/values.yaml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,9 @@ config:
459459
# Options: json, text
460460
format: "json"
461461
# -- Skip Paths
462-
# @default -- `/health,/health/live,/health/ready,/metrics`
462+
# @default -- `/health,/health/live,/health/ready`
463463
# Paths to skip in access logs
464-
skipPaths: "/health,/health/live,/health/ready,/metrics"
464+
skipPaths: "/health,/health/live,/health/ready"
465465

466466
# ---------------------------------------------------------------------------
467467
# CORS Configuration
@@ -522,10 +522,6 @@ config:
522522
# Default roles for new users
523523
defaultRoles:
524524
- user
525-
# -- Send Invitation Email
526-
# @default -- `true`
527-
# Send invitation email on user creation
528-
sendInvitationEmail: true
529525
# -- Client ID
530526
# @default -- `""` (auto-configured from global.secrets.auth.auth0)
531527
# Only used when provider is "auth0"
@@ -744,43 +740,6 @@ config:
744740
# Only used when tokenExchange is enabled
745741
privateKey: ""
746742

747-
# =============================================================================
748-
# METRICS CONFIGURATION
749-
# =============================================================================
750-
751-
# -- Metrics Configuration
752-
# @default -- See values below
753-
metrics:
754-
# -- Enabled
755-
# @default -- `false`
756-
# Enable Prometheus metrics
757-
enabled: false
758-
# -- Port
759-
# @default -- `9090`
760-
port: 9090
761-
# -- Path
762-
# @default -- `/metrics`
763-
path: "/metrics"
764-
765-
# -- Service Monitor
766-
# @default -- See values below
767-
serviceMonitor:
768-
# -- Enabled
769-
# @default -- `false`
770-
# Enable ServiceMonitor for Prometheus Operator
771-
enabled: false
772-
# -- Interval
773-
# @default -- `30s`
774-
# Scrape interval
775-
interval: "30s"
776-
# -- Scrape Timeout
777-
# @default -- `10s`
778-
scrapeTimeout: "10s"
779-
# -- Labels
780-
# @default -- `{}`
781-
# Additional labels for ServiceMonitor
782-
labels: {}
783-
784743
# =============================================================================
785744
# NETWORK POLICY CONFIGURATION
786745
# =============================================================================

charts/governance-platform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ governance-studio:
520520

521521
governance-service:
522522
enabled: true
523-
# config.appEnv automatically becomes: production
523+
# config.environment automatically becomes: production
524524
# Database credentials auto-configured from global.secrets.database
525525
# Storage credentials auto-configured from global.secrets.storage
526526

charts/governance-platform/values.yaml

Lines changed: 8 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,9 @@ auth-service:
832832
# Options: json, text
833833
format: "json"
834834
# -- Skip Paths
835-
# @default -- `/health,/health/live,/health/ready,/metrics`
835+
# @default -- `/health,/health/live,/health/ready`
836836
# Paths to skip in access logs
837-
skipPaths: "/health,/health/live,/health/ready,/metrics"
837+
skipPaths: "/health,/health/live,/health/ready"
838838

839839
# ---------------------------------------------------------------------------
840840
# CORS Configuration
@@ -895,10 +895,6 @@ auth-service:
895895
# Default roles for new users
896896
defaultRoles:
897897
- user
898-
# -- Send Invitation Email
899-
# @default -- `true`
900-
# Send invitation email on user creation
901-
sendInvitationEmail: true
902898
# -- Client ID
903899
# @default -- `""` (auto-configured from global.secrets.auth.auth0)
904900
# Only used when provider is "auth0"
@@ -1113,43 +1109,6 @@ auth-service:
11131109
# Only used when tokenExchange is enabled
11141110
privateKey: ""
11151111

1116-
# =============================================================================
1117-
# METRICS CONFIGURATION
1118-
# =============================================================================
1119-
1120-
# -- Metrics Configuration
1121-
# @default -- See values below
1122-
metrics:
1123-
# -- Enabled
1124-
# @default -- `false`
1125-
# Enable Prometheus metrics
1126-
enabled: false
1127-
# -- Port
1128-
# @default -- `9090`
1129-
port: 9090
1130-
# -- Path
1131-
# @default -- `/metrics`
1132-
path: "/metrics"
1133-
1134-
# -- Service Monitor
1135-
# @default -- See values below
1136-
serviceMonitor:
1137-
# -- Enabled
1138-
# @default -- `false`
1139-
# Enable ServiceMonitor for Prometheus Operator
1140-
enabled: false
1141-
# -- Interval
1142-
# @default -- `30s`
1143-
# Scrape interval
1144-
interval: "30s"
1145-
# -- Scrape Timeout
1146-
# @default -- `10s`
1147-
scrapeTimeout: "10s"
1148-
# -- Labels
1149-
# @default -- `{}`
1150-
# Additional labels for ServiceMonitor
1151-
labels: {}
1152-
11531112
# =============================================================================
11541113
# NETWORK POLICY CONFIGURATION
11551114
# =============================================================================
@@ -1646,13 +1605,18 @@ governance-service:
16461605

16471606
# -- Application Environment
16481607
# @default -- `""` (auto-configured from global.environmentType, defaults to "development")
1649-
appEnv: ""
1608+
environment: ""
16501609

16511610
# -- Log Level
16521611
# @default -- `info`
16531612
# Options: debug, info, warn, error
16541613
logLevel: "info"
16551614

1615+
# -- Log Format
1616+
# @default -- `json`
1617+
# Options: json, text, console, pretty
1618+
logFormat: "json"
1619+
16561620
# -- Credential Encryption Key
16571621
# @default -- `""` (auto-configured from global.secrets.encryption)
16581622
credentialEncryptionKey: ""

charts/governance-service/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Key capabilities:
1717

1818
Governance Service uses runtime configuration injected via environment variables. Application configuration is provided through Helm values and injected into the container at startup.
1919

20+
The container also receives a `SERVICE_VERSION` environment variable, auto-populated from `Chart.Version`. This is intended for display and observability purposes and is not user-configurable.
21+
2022
This allows:
2123

2224
- A single immutable container image across environments
@@ -431,8 +433,9 @@ All config values support global fallbacks when deployed via umbrella chart.
431433
| Key | Type | Default | Description |
432434
| ------------------------------ | ------ | ----------- | --------------------------------------------------------------------- |
433435
| config.healthPath | string | `"/health"` | Health check endpoint path |
434-
| config.appEnv | string | `""` | Application environment (auto-configured from global.environmentType) |
436+
| config.environment | string | `""` | Application environment (auto-configured from global.environmentType) |
435437
| config.logLevel | string | `"info"` | Logging level (debug/info/warn/error) |
438+
| config.logFormat | string | `"json"` | Log output format (json/text/console/pretty) |
436439
| config.credentialEncryptionKey | string | `""` | Encryption key (auto-configured from global.secrets.encryption) |
437440

438441
#### HTTP Server Configuration

0 commit comments

Comments
 (0)