Skip to content

Commit

Permalink
fix: sync service configuration with platform (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
strantalis authored Jul 10, 2024
1 parent e35695e commit 63dc6ba
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
15 changes: 7 additions & 8 deletions charts/platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ realms:
| logger.type | string | `"json"` | The platform log format ( json, text ) |
| nameOverride | string | `""` | Overrides the chart name |
| nodeSelector | object | `{}` | Target specific nodes in the cluster |
| opa.embedded | bool | `true` | Whether to run an embedded OPA bundle. (!!! Do not enable this in production !!!) |
| playground | bool | `false` | |
| podAnnotations | object | `{}` | Extra annotations to add to the pod |
| podLabels | object | `{}` | Extra labels to add to the pod |
Expand Down Expand Up @@ -330,16 +329,16 @@ realms:
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| services.authorization.client | string | `"tdf-entity-resolution"` | Client id for the external entity store |
| services.authorization.clientid | string | `nil` | Client id for the external entity store |
| services.authorization.clientsecret | string | `nil` | Client secret for the external entity store |
| services.authorization.enabled | bool | `true` | Authorization service enabled |
| services.authorization.legacy | bool | `true` | Keycloak legacy mode?? |
| services.authorization.realm | string | `"opentdf"` | Keycloak Realm |
| services.authorization.secret | string | `nil` | Client secret for the external entity store |
| services.authorization.url | string | `nil` | External entity store (currently only keycloak is supported) |
| services.entityresolution.clientid | string | `"tdf-entity-resolution"` | Client Id for Entity Resolver |
| services.authorization.ersurl | string | `"http://localhost:9000/entityresolution/resolve"` | External entity store (currently only keycloak is supported) |
| services.authorization.tokenendpoint | string | `nil` | Oauth2 Server Token Endpoint |
| services.entityresolution.clientid | string | `nil` | Client Id for Entity Resolver |
| services.entityresolution.clientsecret | string | `nil` | Client Secret for Entity Resolver |
| services.entityresolution.enabled | bool | `false` | Entity Resolver service enabled |
| services.entityresolution.realm | string | `"opentdf"` | Entity Resolver Realm |
| services.entityresolution.realm | string | `nil` | Entity Resolver Realm |
| services.entityresolution.subgroups | bool | `false` | Subgroups |
| services.entityresolution.url | string | `nil` | Identity Provider Entity Resolver |
| services.extraServices | object | `{}` | Additional services |
| services.kas.config | object | `{"enabled":true,"keyring":[{"alg":"ec:secp256r1","kid":"e1"},{"alg":"rsa:2048","kid":"r1"}]}` | KAS service Configuration as yaml |
Expand Down
2 changes: 0 additions & 2 deletions charts/platform/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ data:
{{- .Values.server.auth | toYaml | nindent 8 }}
cryptoProvider:
{{- .Values.server.cryptoProvider | toYaml | nindent 8 }}
opa:
embedded: {{ .Values.opa.embedded | quote }}
25 changes: 13 additions & 12 deletions charts/platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,13 @@ services:
# -- Identity Provider Entity Resolver
url:
# -- Client Id for Entity Resolver
clientid: tdf-entity-resolution
clientid:
# -- Client Secret for Entity Resolver
clientsecret:
# -- Entity Resolver Realm
realm: opentdf
realm:
# -- Subgroups
subgroups: false

kas:
# -- KAS service Configuration as yaml
Expand All @@ -286,24 +288,23 @@ services:
# -- Authorization service enabled
enabled: true
# -- External entity store (currently only keycloak is supported)
url:
ersurl: http://localhost:9000/entityresolution/resolve
# -- Client id for the external entity store
client: "tdf-entity-resolution"
clientid:
# -- Client secret for the external entity store
secret:
# -- Keycloak Realm
realm: "opentdf"
# -- Keycloak legacy mode??
legacy: true
clientsecret:
# -- Oauth2 Server Token Endpoint
tokenendpoint:
# -- Overide embedded rego policy
# rego:
# path: /etc/platform/entitlements.rego

# -- Additional services
extraServices: {}
# -- Example of extra service
# myservice:
# enabled: true
# url: http://localhost:8080
opa:
# -- Whether to run an embedded OPA bundle. (!!! Do not enable this in production !!!)
embedded: true

#############################################
# The following values are for testing only #
Expand Down

0 comments on commit 63dc6ba

Please sign in to comment.