Fix SSH Key PUT API to require username and privateKey for remote command execution#2315
Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom Feb 13, 2026
Merged
Conversation
ddf2782 to
e5b571f
Compare
Member
|
Nice work! Thanks @leehyeoklee |
Member
|
/approve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable Remote Command Execution for Registered SSH Keys
Problem
When SSH Keys are registered from CSP resources, they lack critical authentication information (
usernameandprivateKey), preventing remote command execution on associated VMs. Users cannot execute commands via MapUI or API calls on registered VMs.Root Cause
usernameorprivateKeyin CB-Tumblebug databaseSolution
1. Added dedicated complement API
Created a new endpoint specifically for enabling remote command execution:
PUT
/ns/{nsId}/resources/sshKey/{sshKeyId}/complementThis API only requires the essential fields needed for SSH authentication:
2. Maintained general update API
The existing PUT API continues to support SSH Key updates:
PUT
/ns/{nsId}/resources/sshKey/{sshKeyId}Benefits
/complementendpoint makes the intent explicitusernameandprivateKeyneeded for activation