Skip to content

Add default admin password to Kubernetes secrets#113

Merged
JoshuaAFerguson merged 1 commit into
mainfrom
claude/add-admin-password-secrets-01P4G8Ks5ixpua866H8ZxVCd
Nov 19, 2025
Merged

Add default admin password to Kubernetes secrets#113
JoshuaAFerguson merged 1 commit into
mainfrom
claude/add-admin-password-secrets-01P4G8Ks5ixpua866H8ZxVCd

Conversation

@JoshuaAFerguson

Copy link
Copy Markdown
Member

Add admin credentials secret creation with default password 'Password12345' for initial setup. Changes include:

  • New standalone script (create-admin-secret.sh) for creating admin credentials
  • Updated local-deploy-kubectl.sh to create streamspace-admin-credentials secret
  • Added ADMIN_PASSWORD environment variable to API deployment

The secret uses the expected format:

  • Secret name: streamspace-admin-credentials
  • Keys: username, password, email

Users should change the password after first login.

Add admin credentials secret creation with default password 'Password12345'
for initial setup. Changes include:

- New standalone script (create-admin-secret.sh) for creating admin credentials
- Updated local-deploy-kubectl.sh to create streamspace-admin-credentials secret
- Added ADMIN_PASSWORD environment variable to API deployment

The secret uses the expected format:
- Secret name: streamspace-admin-credentials
- Keys: username, password, email

Users should change the password after first login.
@JoshuaAFerguson JoshuaAFerguson merged commit 1ab9e7f into main Nov 19, 2025
14 of 28 checks passed
@JoshuaAFerguson JoshuaAFerguson deleted the claude/add-admin-password-secrets-01P4G8Ks5ixpua866H8ZxVCd branch November 19, 2025 16:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +126 to +134
# Create admin credentials secret
if kubectl get secret streamspace-admin-credentials -n "${NAMESPACE}" &> /dev/null; then
log_warning "Secret streamspace-admin-credentials already exists"
else
kubectl create secret generic streamspace-admin-credentials \
-n "${NAMESPACE}" \
--from-literal=username=admin \
--from-literal=password=Password12345 \
--from-literal=email=admin@streamspace.local

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Replace hard-coded admin password with generated or user-supplied value

The new secret creation logic provisions streamspace-admin-credentials with the fixed string Password12345 and injects it directly into the API container. Every deployment that runs this script will therefore share the same publicly known admin password until an operator manually changes it, which makes an exposed API trivially compromiseable if that step is skipped. Prefer generating a strong random password (as the Helm chart does) or requiring the caller to provide one before creating the secret so that no installation ships with universal credentials.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants