Skip to content

Comments

feat(cli): harden auth secret input handling#19

Merged
smekcio merged 3 commits intomainfrom
feat/cli-secret-input-hardening
Feb 22, 2026
Merged

feat(cli): harden auth secret input handling#19
smekcio merged 3 commits intomainfrom
feat/cli-secret-input-hardening

Conversation

@smekcio
Copy link
Owner

@smekcio smekcio commented Feb 22, 2026

Summary

  • harden secret handling in auth CLI commands
  • support hidden interactive prompts when secret options are omitted
  • keep environment-variable fallback for automation compatibility
  • warn when secrets are passed directly via CLI options

Changes

  • auth login-token:
    • hidden prompt fallback for token when not provided and env is missing
  • auth login-xades:
    • hidden prompt fallback for --pkcs12-password / --key-password when omitted
  • Added runtime warnings for inline secret flags:
    • --ksef-token
    • --pkcs12-password
    • --key-password
  • Added integration tests for warning/prompt paths
  • Updated CLI docs

Validation

  • python -m pytest -q
  • Result at submission time: 401 passed, 4 skipped

@smekcio smekcio merged commit d7b7336 into main Feb 22, 2026
16 checks passed
@smekcio smekcio deleted the feat/cli-secret-input-hardening branch February 22, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant