Skip to content

Add SCO re-onboarding step to ensure no authorized keys escape cleanup - #1120

Merged
Chr1st0ph3rTurn3r merged 1 commit into
masterfrom
gschrock/sco-delete-auth-keys-during-reonboarding
Aug 19, 2026
Merged

Add SCO re-onboarding step to ensure no authorized keys escape cleanup#1120
Chr1st0ph3rTurn3r merged 1 commit into
masterfrom
gschrock/sco-delete-auth-keys-during-reonboarding

Conversation

@gregschrock

Copy link
Copy Markdown
Contributor

There's a particular case where

  1. SCO has completed and placed authorized keys
  2. Salt onboarding has not been attempted

In this case, the AP does not have any state for the asset. Cleanup does not attempt to remove the authorized keys when the AP hasn't seen that asset. The result is subsequent SCO attempts would repeatedly fail as already complete (which would be correct because authorized keys already exist).

Explicit cleaning prevents this partial onboarding corner case and ensures SCO can be rerun from the beginning.

There's a particular case where

1. SCO has completed and placed authorized keys
2. Salt onboarding has not been attempted

In this case, the AP does not have any state for the asset. Cleanup does not
attempt to remove the authorized keys when it hasn't seen that asset. The
result is subsequent SCO attempts would repeatedly fail as already complete
(authorized keys already exist).

Explicit cleaning prevents this corner case possibility.
@Chr1st0ph3rTurn3r
Chr1st0ph3rTurn3r merged commit 7fb98c1 into master Aug 19, 2026
1 check passed
@Chr1st0ph3rTurn3r
Chr1st0ph3rTurn3r deleted the gschrock/sco-delete-auth-keys-during-reonboarding branch August 19, 2026 15:05
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.

3 participants