Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try machine auth #377

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
16 changes: 16 additions & 0 deletions helm/dex-app/templates/dex/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ stringData:
logger:
level: info
oauth2:
grantTypes:
# ensure grantTypes includes the token-exchange grant (default)
- "urn:ietf:params:oauth:grant-type:token-exchange"
responseTypes: ["code", "token", "id_token"]
alwaysShowLoginScreen: false
skipApprovalScreen: true
Expand All @@ -41,6 +44,10 @@ stringData:
signingKeys: "{{ .Values.oidc.expiry.signingKeys }}"
idTokens: "{{ .Values.oidc.expiry.idTokens }}"
staticClients:
- name: test-machine-auth
id: test
secret: test
public: true
{{- if (and .Values.oidc.staticClients.gitopsui.clientID .Values.oidc.staticClients.gitopsui.clientSecret) }}
- id: {{ .Values.oidc.staticClients.gitopsui.clientID }}
secret: {{ .Values.oidc.staticClients.gitopsui.clientSecret }}
Expand Down Expand Up @@ -99,6 +106,15 @@ stringData:
{{- end }}
{{- include "print-clean-extra-static-clients" .Values.oidc.extraStaticClients }}
connectors:
- type: oidc
id: github-quentin
name: github-quentin
config:
issuer: https://token.actions.githubusercontent.com
scopes:
- openid
- groups
userNameKey: sub
{{- if .Values.oidc.giantswarm.connectorConfig.clientID }}
- type: github
id: giantswarm
Expand Down