-
Notifications
You must be signed in to change notification settings - Fork 34
/
enable-oidc.yaml
51 lines (50 loc) · 2.13 KB
/
enable-oidc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) 2022 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
apiVersion: apps/v1
kind: Deployment
metadata:
name: gatekeeper-policy-manager
spec:
template:
spec:
containers:
- name: gatekeeper-policy-manager
env:
- name: GPM_OIDC_REDIRECT_DOMAIN
value: "127-0-0-1.nip.io:8080"
- name: GPM_SECRET_KEY
value: "changeme!"
# YOU SHOULD USE A KUBERNETES SECRET INSTEAD.
# valueFrom:
# secretKeyRef:
# name: gpm-secrets
# key: secret-key
- name: GPM_PREFERRED_URL_SCHEME
value: http
- name: GPM_AUTH_ENABLED
value: "OIDC"
- name: GPM_OIDC_CLIENT_ID
value: gatekeeper-policy-manager
- name: GPM_OIDC_CLIENT_SECRET
value: "30d6b009-9ae4-42b0-a5c0-b4f65aa6451e"
# YOU SHOULD USE A KUBERNETES SECRET INSTEAD.
# valueFrom:
# secretKeyRef:
# name: gpm-secrets
# key: oidc-client-secret
# The following URLs are an example of a Keycloak OIDC provider:
- name: GPM_OIDC_ISSUER
value: http://192.168.1.6:8081/auth/realms/devops
- name: GPM_OIDC_AUTHORIZATION_ENDPOINT
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/auth
- name: GPM_OIDC_JWKS_URI
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/certs
- name: GPM_OIDC_TOKEN_ENDPOINT
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/token
- name: GPM_OIDC_INTROSPECTION_ENDPOINT
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/token/introspect
- name: GPM_OIDC_USERINFO_ENDPOINT
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/userinfo
- name: GPM_OIDC_END_SESSION_ENDPOINT
value: http://192.168.1.6:8081/auth/realms/devops/protocol/openid-connect/logout