Skip to content

ssh: remove 74 keys with no matching lab user - #663

Merged
djgalloway merged 1 commit into
mainfrom
wip-remove-orphan-keys
Sep 23, 2026
Merged

djgalloway merged 1 commit into
mainfrom
wip-remove-orphan-keys

Conversation

@djgalloway

Copy link
Copy Markdown
Contributor

Follow-up to the 2026-09-17 access review (ceph-sepia-secrets#1241, ceph-octo-secrets#26).

Every ssh/*.pub was compared against lab_users + admin_users in both secrets repos on main. 84 files had no matching user:

  • 73 removed here: the username is in revoked_users in one of the secrets repos.
  • mkhanna.pub removed: identical key to mananxkhanna.pub, which is Manan Khanna's actual lab account.
  • 9 kept: service keys in the onboarding service's KEYS_EXEMPT list (backup01 jenkins jenkins-build qa_metropolis rdu2 root_cephbooter teuthology-ubuntu teuthologyworker_metropolis teuthworker).
  • kbader kept: no lab_users entry, but he is a managed_users member of long_running_cluster.

Deletions are not auto-merged by the validate workflow, so this needs a manual merge; regenerate then rebuilds @all.pub.

Follow-up to the 2026-09-17 access review (ceph-sepia-secrets PR 1241,
ceph-octo-secrets PR 26). 73 of these usernames are now in revoked_users
in one of the secrets repos, so their keys would only keep landing in
@all.pub:

  amathew19 arjsharm avilez basnia bengland dachary devansh
  devanshsingh dpaganel dvincze emmericp enuessle gkyratsas h4iresis
  hosand ionutbalutoiu iqbalredkhan jarychen jsawaya jschmid julpark
  kachau karun kchang kevinz kollia levh lmb luisrico markw8973240
  mayagilad melissali mer michaelenglishseagate mlatimer mreddem
  mrfreezeex nshelke ofriedma oliveiradan omergoshen oshrey16 ozeneva
  pbs1108 pnawracay poonc3 prasad prateek ramartin rdias roysahar
  rpavani1998 ryg- scarvalhojr shuzhenyi shyukri skrah smithfarm
  smithp33 submishr sudhanaruna sunny tamil toabctl tshacked vdaloiya
  vedansh wmcroberts xiaoxichen xuwang yejordan zl31wang zyan

mkhanna.pub is the same key as mananxkhanna.pub (Manan Khanna's lab
account), so the extra file goes too.

Kept: the service keys listed in the onboarding service's KEYS_EXEMPT
(backup01, jenkins, jenkins-build, qa_metropolis, rdu2, root_cephbooter,
teuthology-ubuntu, teuthologyworker_metropolis, teuthworker) and kbader,
who is a managed user on the long-running cluster.

Signed-off-by: David Galloway <david.galloway@ibm.com>
Assisted-by: Claude Fable 5.1 (claude-fable-5-1)
@djgalloway
djgalloway merged commit d07c6fe into main Sep 23, 2026
3 checks passed
@djgalloway
djgalloway deleted the wip-remove-orphan-keys branch September 23, 2026 19:25
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