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

feat: Add authorization overlays #5695

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions kustomize/auth/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bases:
- ../../base

patchesStrategicMerge:
- patches.yaml
20 changes: 20 additions & 0 deletions kustomize/auth/patches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: phoenix
spec:
template:
spec:
containers:
- name: phoenix
env:
- name: PHOENIX_ENABLE_AUTH
value: "true"
# When enabling Auth, you must provide a secret
# In this example, first set a Kubernetes Secret with:
# kubectl create secret generic phoenix-secret --from-literal=secret-key='[YOUR-SECRET]'
- name: PHOENIX_SECRET
valueFrom:
secretKeyRef:
name: phoenix-secret
key: secret-key
Comment on lines +17 to +20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we default this to just a long string but leave the note? Otherwise it will break... It's what I did with railway... I know it's sorta risky but it at least gets people started (similar to having postgres password)

Loading