Skip to content

Commit 55e0720

Browse files
committed
Add SecurityPolicy for code-server and update secret.yaml with client secret
This commit introduces a new SecurityPolicy resource for the code-server application, specifying OIDC provider details for authentication. Additionally, the secret.yaml file is updated to include a client secret for the code-server, enhancing security and configuration management.
1 parent 46aec4d commit 55e0720

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

clusters/common/apps/home/code-server/httproute.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,22 @@ spec:
3434
matches:
3535
- path:
3636
type: PathPrefix
37-
value: /
37+
value: /
38+
---
39+
apiVersion: gateway.envoyproxy.io/v1alpha1
40+
kind: SecurityPolicy
41+
metadata:
42+
name: code
43+
spec:
44+
targetRefs:
45+
- group: gateway.networking.k8s.io
46+
kind: HTTPRoute
47+
name: code
48+
oidc:
49+
provider:
50+
issuer: "https://pocket-id.${CLUSTER_DOMAIN}"
51+
clientID: "6e0ae47f-0ebe-4044-9aae-28e9da38ac3e"
52+
clientSecret:
53+
name: "code-server-secret"
54+
redirectURL: "https://code.${CLUSTER_DOMAIN}/oauth2/callback"
55+
logoutPath: "/logout"

clusters/common/apps/home/code-server/secret.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ metadata:
44
name: code-server-secret
55
type: Opaque
66
stringData:
7-
password: ${DEFAULT_PASSWORD}
7+
password: ${DEFAULT_PASSWORD}
8+
client-secret: U0ktE06LOZ61JZHwwfjYF8Mq5CczdsKG

0 commit comments

Comments
 (0)