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>
This commit is contained in:
@@ -35,14 +35,16 @@ In your Gitea repository → Settings → Secrets, add:
|
||||
|
||||
| Secret Name | Key | Used By | Notes |
|
||||
|--------------------|----------------------------|-----------------|-------------------------------------------------|
|
||||
| sor-app-secrets | ConnectionStrings__Default | host + admin | Postgres connection string |
|
||||
| sor-app-secrets | Cdn__PublicBaseUrl | host + admin | e.g. https://cdn.aeternalisgames.com |
|
||||
| sor-app-secrets | ConnectionStrings__Default | host + admin | Postgres connection string |
|
||||
| sor-app-secrets | Admin__Email | admin only | Seed SuperAdmin email (default: admin@sor.local) |
|
||||
| sor-app-secrets | Admin__Password | admin only | Seed SuperAdmin password (12+ chars required) |
|
||||
| sor-app-secrets | Cdn__PublicBaseUrl | host + admin | e.g. https://cdn.aeternalisgames.com |
|
||||
| sor-app-secrets | Cdn__EndpointUrl | host + admin | Ceph RadosGW endpoint, e.g. http://172.10.1.60:7480 |
|
||||
| sor-app-secrets | Cdn__AccessKey | host + admin | S3 access key ID |
|
||||
| sor-app-secrets | Cdn__SecretKey | host + admin | S3 secret access key |
|
||||
| sor-app-secrets | Cdn__BucketName | host + admin | S3 bucket name, e.g. sor-assets |
|
||||
| redis-credentials | connection-string | host only | **Already exists** in stone-server ns |
|
||||
| harbor-credentials | .dockerconfigjson | both pods | Harbor image pull secret |
|
||||
| sor-app-secrets | Cdn__AccessKey | host + admin | S3 access key ID |
|
||||
| sor-app-secrets | Cdn__SecretKey | host + admin | S3 secret access key |
|
||||
| sor-app-secrets | Cdn__BucketName | host + admin | S3 bucket name, e.g. sor-assets |
|
||||
| redis-credentials | connection-string | host only | **Already exists** in stone-server ns |
|
||||
| harbor-credentials | .dockerconfigjson | both pods | Harbor image pull secret |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user