Repository navigation
fix: register CSP-format credential keys and return errors on failure in setup credential at mc-admin-cli - #220
Merged
Merged
Conversation
- 입력 키 목록을 metainfo의 Credential(cb-spider 형식) 대신 CredentialCSP에서 가져옴 (예: AWS ClientId/ClientSecret -> aws_access_key_id/aws_secret_access_key) mc-infra-manager는 CSP 형식 키만 허용하여 기존에는 등록이 항상 거부됨 - sendCredentials가 HTTP 상태를 확인하여 2xx 외 응답을 오류로 반환, panic 제거 - metainfo 조회 실패(401 등)도 원인 메시지를 그대로 노출 - credential 명령을 RunE로 전환하여 실패 시 종료 코드 1 반환 (기존에는 거부되어도 "Result: map[]" 출력 후 종료 코드 0)
fix: mc-admin-cli에서 setup credential 형식 보완
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.
Changes
src/cmd/setup/credential.goCredentialCSPin the metainfo responsepaniccredentialcommand toRunEso it exits with code 1 on failure