Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/authorizer/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Local cluster address
OPA discovery configuration
*/}}
{{- define "authorizer.opaDiscovery" -}}
url: https://{{ include "aserto-lib.discoveryAddress" . }}/api/
url: http://{{ include "aserto-lib.discoveryAddress" . }}/api/
credentials:
bearer:
token: ${AUTHORIZER_DISCOVERY_ROOT_KEY}
Expand Down
2 changes: 1 addition & 1 deletion charts/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
value: {{ include "console.port" . | quote }}
{{- with (include "aserto-lib.controllerClient" .) | fromYaml }}
- name: DS0_SERVICE_URL
value: {{ .address }}
value: {{ .no_tls | default false | ternary "http" "https" }}://{{ .address }}
- name: DS0_TENANT_ID
value: {{ .tenant_id }}
{{- end }}
Expand Down
22 changes: 22 additions & 0 deletions charts/controller/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,28 @@ stringData:
- /grpc.reflection.v1.ServerReflection/ServerReflectionInfo
- /grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo
- /aserto.directory.reader.v3.Reader/Check
- /aserto.directory.store.v2.Store/GetAPIKeyIdentity
- /aserto.directory.store.v2.Store/ListUserTenants

tenant_id_field:
id:
- /aserto.directory.store.v2.Store/Info
- /aserto.directory.store.v2.Store/ListTenantMembers
tenant_id:
- /aserto.directory.store.v2.Store/AssignRoleToTenant
- /aserto.directory.store.v2.Store/CreateAPIKey
- /aserto.directory.store.v2.Store/DeleteAPIKey
- /aserto.directory.store.v2.Store/DeleteConfig
- /aserto.directory.store.v2.Store/DeleteSecret
- /aserto.directory.store.v2.Store/GetAPIKeyIdentity
- /aserto.directory.store.v2.Store/GetConfig
- /aserto.directory.store.v2.Store/GetSecret
- /aserto.directory.store.v2.Store/ListAPIKeys
- /aserto.directory.store.v2.Store/ListConfigs
- /aserto.directory.store.v2.Store/ListSecrets
- /aserto.directory.store.v2.Store/RemoveRoleFromTenant
- /aserto.directory.store.v2.Store/SetConfig
- /aserto.directory.store.v2.Store/SetSecret
{{- end }}

authentication:
Expand Down
2 changes: 1 addition & 1 deletion charts/controller/test/no-tls.values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
image:
tag: 0.33.11-b041fc2e-amd64
tag: 0.33.11-108fc18c-amd64

imagePullSecrets:
- name: ghcr-creds
Expand Down
2 changes: 1 addition & 1 deletion charts/controller/test/tls.values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
image:
tag: 0.33.11-b041fc2e-amd64
tag: 0.33.11-108fc18c-amd64

imagePullSecrets:
- name: ghcr-creds
Expand Down
2 changes: 1 addition & 1 deletion charts/directory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
readOnly: true
{{- end }}
env:
{{- with include "directory.controllerKeyEnv" (list . "read") }}
{{- with include "directory.controllerKeyEnv" (list . "readStore") }}
- name: DIRECTORY_CONTROLLER_CLIENT_API_KEY
{{- . | nindent 14 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/directory/test/no-tls.values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
image:
tag: 0.33.11-b041fc2e-amd64
tag: 0.33.11-108fc18c-amd64

imagePullSecrets:
- name: ghcr-creds
Expand Down
2 changes: 1 addition & 1 deletion charts/directory/test/tls.values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
image:
tag: 0.33.11-b041fc2e-amd64
tag: 0.33.11-108fc18c-amd64

imagePullSecrets:
- name: ghcr-creds
Expand Down
1 change: 0 additions & 1 deletion charts/discovery/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ stringData:
{{- end }}

{{- with .Values.oidc -}}
foobar: no
oidc:
{{- include "aserto-lib.oidcConfig" . | nindent 8 }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/discovery/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -95,7 +96,7 @@ spec:
key: {{ .secretKey }}
{{- end }}

{{- with include "aserto-lib.controllerKeyEnv" (list . "read") }}
{{- with include "aserto-lib.controllerKeyEnv" (list . "readStore") }}
- name: DISCOVERY_DS0_API_KEY
{{- . | nindent 14 }}
{{- end }}
Expand Down
5 changes: 1 addition & 4 deletions charts/discovery/test/no-tls.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ apiKey:

controller:
address: "topaz.discovery-no-tls.svc.cluster.local:8282"
apiKeys:
read: controller-root-key
write: controller-root-key
store: controller-root-key
apiKeysSecret: controller-keys
noTLS: true

registries:
Expand Down
6 changes: 6 additions & 0 deletions charts/discovery/test/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ tests:
- name: discovery-ghcr-token
values:
token: ghuser:$GITHUB_TOKEN
- name: controller-keys
values:
read: controller-root-key
write: controller-root-key
readStore: controller-root-key
writeStore: controller-root-key
run:
- |
${TOPAZ:-topaz} ds set manifest charts/discovery/test/manifest.yaml \
Expand Down
2 changes: 1 addition & 1 deletion charts/multi-tenant-scim/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
readOnly: true
{{- end }}
env:
{{- with include "aserto-lib.controllerKeyEnv" (list . "write") }}
{{- with include "aserto-lib.controllerKeyEnv" (list . "readStore") }}
- name: ASERTO_SCIM_CONTROLLER_API_KEY
{{ . | nindent 14 }}
{{- end }}
Expand Down