Skip to content

Auth login with device flow and encrypted credential storage #10

@gmoon

Description

@gmoon

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 (keyring crate) primary, AES-256-GCM encrypted file fallback (~/.forkzero/credentials.enc) for headless
  • File permissions: directories 0o700, credential files 0o600
  • Auto-migrate from file to keyring when keyring becomes available
  • Atomic file writes (temp + rename) to prevent corruption

Dependencies

Lattice

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions