Skip to content

UI: Command Auth Token Setting #42

@rodneyosodo

Description

@rodneyosodo

Summary

The backend will support optional token-based command authorization (#36). When command_secret is configured, all MQTT commands must include a matching token. The UI should allow setting this secret from the settings page.

What to build

  • Add a Security section to the Config page (or a new Settings page)
  • "Command Secret" field:
    • Password-style input with show/hide toggle
    • "Set Secret" button — writes to backend via config set command_secret <value>
    • "Clear Secret" button — sets to empty to disable auth
    • Warning text: "Once set, all MQTT commands must include this token"
  • Visual indicator in the topbar showing whether command auth is enabled or disabled
  • If auth is enabled, show a lock icon next to the Exec page input

Depends on

Reference

Aeolus command auth (docs/control.md):

[{"n":"token","vs":"hunter2"},{"n":"reboot"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions