Skip to content

apikey delete "" exits 0 with false success message #79

Description

@baktun14

Summary

akt console apikey delete '' prints API key deleted. and exits 0 without deleting anything.

Repro

akt console apikey list -o json   # note count N
akt console apikey delete ''
# → "API key  deleted." EXIT 0
akt console apikey list -o json   # still count N — nothing removed

Invalid UUIDs correctly fail with 400 validation error.

Expected

  • Require a non-empty UUID; EXIT ≠ 0 when missing/invalid.
  • Do not print a success message unless a key was actually deleted.

Impact

Scripts that pass an empty id from a failed parse believe cleanup succeeded.

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