Add terminal package with secure ReadPassword helper

Provides echo-suppressed password prompting via golang.org/x/term for
CLI login commands. Added as a platform standard in engineering-standards.md.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 11:10:06 -07:00
parent ebe2079a83
commit b886f9d222
5 changed files with 41 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ go test ./auth/ -run TestCacheExpiry
| `web` | Session cookies, auth middleware, template rendering for htmx UIs |
| `health` | REST and gRPC health check handlers |
| `archive` | tar.zst snapshots with SQLite-aware backup (VACUUM INTO) |
| `terminal` | Secure terminal input (echo-suppressed password prompts) |
## Import Pattern
@@ -63,6 +64,7 @@ db --> (modernc.org/sqlite)
grpcserver --> auth, config
health --> db
httpserver --> config
terminal --> (golang.org/x/term)
web --> auth, csrf
```