-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Requirement
REQ-CLI-023 — Auth login command with device flow and encrypted credential storage
Summary
Implement lattice auth login using OAuth2 device flow with encrypted credential storage. Based on auth team recommendations in #6.
Specification
- Device flow authentication via Hydra (OIDC discovery at
/.well-known/openid-configuration) - Credential storage: OS keyring (
keyringcrate) primary, AES-256-GCM encrypted file fallback (~/.forkzero/credentials.enc) for headless - File permissions: directories
0o700, credential files0o600 - Auto-migrate from file to keyring when keyring becomes available
- Atomic file writes (temp + rename) to prevent corruption
Dependencies
- forkzero/auth#10 — device_code grant type on Hydra client
- forkzero/lattice#5 — original auth login issue
- REQ-API-010 (Authentication and Multi-Tenancy)
Lattice
- Source: SRC-AUTH-PATTERNS (Lattice CLI auth: adopt credential storage patterns from GWS CLI analysis #6)
- Depends on: REQ-API-010
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request