-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from aserto-dev/directory-tenants
Directory tenants
- Loading branch information
Showing
33 changed files
with
172 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
dependencies: | ||
- name: directory | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.7 | ||
version: 0.1.9 | ||
- name: authorizer | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.6 | ||
version: 0.1.7 | ||
- name: discovery | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.5 | ||
version: 0.1.6 | ||
- name: console | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.5 | ||
version: 0.1.6 | ||
- name: scim | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.4 | ||
digest: sha256:62f06ef22f89eab79e44787a57c9377faf11d5fb14cf799f0ff63c1dcf127798 | ||
generated: "2024-10-24T12:12:29.438424-04:00" | ||
version: 0.1.5 | ||
digest: sha256:980022ba59e0ff9d2eef12e29607db9c7f579ded5286bf71e63d4181863d530d | ||
generated: "2024-11-12T16:41:28.881217-05:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: aserto-lib | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.4 | ||
digest: sha256:018291c7638b93c7e47707393a5f72872ecb4ff06670fa660637392fdc28c873 | ||
generated: "2024-10-24T12:07:51.34431-04:00" | ||
version: 0.1.5 | ||
digest: sha256:d4b6f4909c81802d39c520b76bbcd5a1f7f9897d0b20cee02a9978f3a5b14447 | ||
generated: "2024-11-12T16:32:41.420861-05:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
rootDirectory: | ||
tenantID: root-tenant-id | ||
--- | ||
oidc: | ||
domain: oidc_domain | ||
audience: oidc_audience |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: aserto-lib | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.4 | ||
digest: sha256:018291c7638b93c7e47707393a5f72872ecb4ff06670fa660637392fdc28c873 | ||
generated: "2024-10-24T12:09:17.129418-04:00" | ||
version: 0.1.5 | ||
digest: sha256:d4b6f4909c81802d39c520b76bbcd5a1f7f9897d0b20cee02a9978f3a5b14447 | ||
generated: "2024-11-12T16:33:55.906929-05:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: aserto-lib | ||
repository: oci://ghcr.io/aserto-dev/helm | ||
version: 0.1.4 | ||
digest: sha256:018291c7638b93c7e47707393a5f72872ecb4ff06670fa660637392fdc28c873 | ||
generated: "2024-10-24T12:09:49.990987-04:00" | ||
version: 0.1.5 | ||
digest: sha256:d4b6f4909c81802d39c520b76bbcd5a1f7f9897d0b20cee02a9978f3a5b14447 | ||
generated: "2024-11-12T16:34:28.799109-05:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
charts/directory/ci/test-values.yaml → charts/directory/ci/minimal-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
--- | ||
global: | ||
aserto: | ||
imagePullSecrets: | ||
- name: ghcr-creds | ||
rootDirectory: | ||
tenantID: root-tenant-id | ||
database: | ||
host: root-db-host | ||
tenantDirectory: | ||
database: | ||
host: tenant-db-host | ||
sshAdminKeys: | | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDf6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
rootDirectory: | ||
database: | ||
host: root-db-host | ||
tenantDirectory: | ||
database: | ||
host: tenant-db-host | ||
sshAdminKeys: | | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDf6 | ||
tenants: | ||
- name: staging | ||
id: 3dbaa470-9c7e-11ef-bf36-00fcb2a75cb1 | ||
keysSecret: | ||
name: staging-keys | ||
writerKey: writerKey | ||
readerKey: readerKey | ||
- name: prod | ||
id: 8b6152d2-9d19-11ef-98b6-00a83bc65178 | ||
keys: | ||
writer: fb634e791176409a8c5dd6776435fb0b | ||
reader: 39fa2ac0eb0f45fdb9234bb69436940f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,13 +109,15 @@ stringData: | |
authentication: | ||
authenticators_enabled: | ||
root_key: true | ||
{{- with .Values.oidc }} | ||
oidc: true | ||
{{- end }} | ||
{{- if (.Values.authentication).machineAccounts }} | ||
machine_account: true | ||
{{- end }} | ||
root_keys: | ||
{{- if .Values.tenantDirectory.runService }} | ||
{{- if .Values.tenantDirectory.runService }} | ||
keys: | ||
- key: ${DIRECTORY_DS_WRITE_KEY} | ||
account: [email protected] | ||
|
@@ -124,21 +126,27 @@ stringData: | |
- key: ${DIRECTORY_ROOT_DS_CLIENT_API_KEY} | ||
account: [email protected] | ||
{{- if .Values.rootDirectory.runService }} | ||
{{ if .Values.rootDirectory.runService -}} | ||
tenant_overrides: | ||
{{ include "aserto-lib.rootDirectoryTenantID" .}}: | ||
- key: ${DIRECTORY_ROOT_DS_CLIENT_API_KEY} | ||
account: "root-ds" | ||
{{- range .Values.tenants }} | ||
{{ .id | required "all tenants must have an id." }}: | ||
{{- include "directory.tenantKeys" . | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else }} | ||
{{- else }} | ||
keys: | ||
- key: ${DIRECTORY_ROOT_DS_CLIENT_API_KEY} | ||
account: "root-ds" | ||
{{- end }} | ||
{{- end }} | ||
{{- with .Values.oidc -}} | ||
oidc: | ||
{{- include "aserto-lib.oidcConfig" . | nindent 8 }} | ||
{{- end }} | ||
override: | ||
- methods: | ||
|
Oops, something went wrong.