Skip to content

sc secrets reveal shows no output, and sc secrets disallow "<key>" shows changes but does not remove the key #176

@Cre-eD

Description

@Cre-eD

Description

There is inconsistent behavior between sc secrets reveal and sc secrets disallow.

  • Running sc secrets reveal shows nothing (no output / no revealed secrets shown).
  • Running sc secrets disallow "<key>" does show changes in secrets (as if it detected something to update).
  • If I accept/apply those changes, the SSH key still is not removed.

This makes it unclear what the real secrets state is and prevents removing an allowed SSH key reliably.

Steps to Reproduce

  1. Run:

    sc secrets reveal

    Observed: no output / nothing displayed.

  2. Attempt to remove an SSH key:

    sc secrets disallow "<key>"

    Observed: tool shows changes in secrets (diff / pending changes).

  3. Accept/apply the changes.

  4. Check secrets / allowed keys again (via sc secrets reveal or expected state).
    Observed: key is still present / not removed.

Expected Behavior

  • sc secrets reveal should clearly display current secrets / allowed keys state (or at least confirm what is revealed and where).
  • sc secrets disallow "<key>" should reliably remove the specified key and persist the change.
  • If disallow shows a diff and the user accepts it, the result should match the diff (idempotent + correct).

Actual Behavior

  • reveal prints nothing.
  • disallow indicates changes but does not actually remove the key after applying.

Impact

  • Users cannot confidently inspect secrets state.
  • SSH key removal is broken / unreliable.
  • Risk of stuck access permissions or incorrect secrets management.

Notes / Suspicions

  • reveal might be failing silently or writing to a location not reflected in the CLI output.
  • disallow might be generating a diff against a different secrets state than what is actually applied (state sync issue).
  • Related to the earlier issue where allow/disallow may require an implicit reveal to operate on latest secrets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions