Skip to content

[Feature]: Support fixed test OTP codes in hermes vault add #137094

Description

@ouzhanuglu

Feature request

Add an explicit fixed-OTP option when creating a login with hermes vault add --kind login, for local development and testing.

Today, login items accept an authenticator seed or otpauth:// TOTP URI. For test accounts and deterministic browser-flow tests, it would be useful to choose a fixed OTP value instead, such as 258000, without changing the existing TOTP behavior.

Proposed behavior

  • Keep TOTP as the default and preserve the current authenticator-key workflow.
  • Offer an explicit fixed OTP (test only) option during login creation.
  • Validate fixed values as exactly six decimal digits.
  • Store the value only in the encrypted secret payload; never expose it in metadata, vault list, logs, or diagnostics.
  • Have the local vault OTP resolver return that fixed value for the selected item; continue generating time-based codes for normal TOTP seeds.
  • Clearly warn that this option is for testing only and must not be used for production accounts.

Acceptance criteria

  • A login can be created with a fixed test OTP without supplying a TOTP seed.
  • Invalid fixed values are rejected before saving the vault item.
  • The fixed value remains encrypted and unavailable through metadata/listing.
  • Existing TOTP behavior and tests remain unchanged.
  • Tests cover validation, resolution, secrecy, and the TOTP regression path.

This should complement the existing vault flow, not add a general OTP abstraction or production authentication mechanism.

Activity

  1. added
    P3Low — cosmetic, nice to have
    comp/cliCLI entry point, hermes_cli/, setup wizard
    area/authAuthentication, OAuth, credential pools
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/authAuthentication, OAuth, credential poolscomp/cliCLI entry point, hermes_cli/, setup wizardtype/featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions