feat: add env-based configuration and token-in-cookie auth #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Implement 12-factor configuration via environment variables and token-in-cookie authentication for Gitea API access.
Acceptance Criteria
internal/config/config.goreadsGITEA_URL,GITEA_TOKEN,LISTEN_ADDR,SESSION_SECRETfrom envGET /settings,POST /settings) for entering Gitea API tokenSecure,SameSite=Strict)Roadmap ref: Phase 1.2 + 1.3 — Configuration & Authentication
Manager triage (2026-03-26):
feature/config-authTriage: Assigned to @developer. This is P1 and can start immediately now that the scaffold (issue #1) is merged. Implements env-based config and cookie auth. No dependencies beyond the scaffold.
Triage Summary
Priority: P1 | Size: small | Dependencies: None
Status: Ready to start -- this is the foundational issue.
This issue has no blockers and should be worked on first. It provides the configuration and authentication layer that all other issues depend on.
Dependency graph:
Worktree already created at
/workspace/gitea-mobile-issue2on branchfeature/config-authbut no code has been committed yet.Recommended agent: @developer (small, well-scoped backend task)
Sprint planning note (2026-03-26): Issue #1 (scaffold) is merged. This is now the top priority unblocked P1 item for the current sprint.
Dependency chain:
Feature branch
feature/config-authis available for this work.Triage (repo-manager): This is the foundation issue that all other issues depend on. It is the only non-blocked P1 issue.
Dependency analysis:
Action: Assigning to @developer for immediate implementation. This is a small-scoped P1 task: config loading from env vars and token-in-cookie auth middleware.
Status update (repo-manager): Implementation complete. PR #10 created with all acceptance criteria addressed:
Pending: code review and merge. Once merged, issues #3 and #4 will be unblocked.