Files
sor/deploy/secrets/sor-app-secrets.yaml.template
T
9186a2a7f3 Hide sidebar until authenticated; wire Admin seed credentials
- MainLayout.razor: wrap shell in <AuthorizeView> so the sidebar and
  nav are only rendered when the user is logged in. Unauthenticated
  pages (login) render @Body directly, giving the login card its full
  viewport without the nav overlay.
- deployment-admin.yaml: inject Admin__Email / Admin__Password from
  sor-app-secrets so the startup seed picks up production credentials.
- sor-app-secrets.yaml.template: add Admin__Email / Admin__Password
  placeholder entries with instructions.
- secrets/README.md: document the two new seed-account keys.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-27 09:47:20 -05:00

25 lines
1.0 KiB
Plaintext

apiVersion: v1
kind: Secret
metadata:
name: sor-app-secrets
namespace: stone-server
type: Opaque
stringData:
# Postgres connection string (shared by sor-host and sor-admin).
# Format: Host=HOST;Port=5432;Database=SOR;Username=USER;Password=PASSWORD;
ConnectionStrings__Default: "Host=172.10.1.127;Port=5432;Database=SOR;Username=SOR-DBA;Password=CHANGEME"
# Admin portal seed account — created on first startup if no account with this email exists.
# Password must meet ASP.NET Identity rules: 12+ chars, uppercase, digit, non-alphanumeric.
Admin__Email: "admin@sor.local"
Admin__Password: "CHANGEME_strong_password!"
# CDN (Ceph RadosGW S3-compatible).
# PublicBaseUrl: the public-facing URL prefix returned to clients for asset links.
# EndpointUrl: internal S3 endpoint (e.g. http://172.10.1.60:7480).
Cdn__PublicBaseUrl: "https://CHANGEME"
Cdn__EndpointUrl: "http://CHANGEME:7480"
Cdn__AccessKey: "CHANGEME"
Cdn__SecretKey: "CHANGEME"
Cdn__BucketName: "sor-assets"