[ICC-306] application-secrets.yml에 대해 깃 훅 적용#167
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
📢 설명
변경 요약
.githooks/pre-commit변경 1: pre-commit 훅에 암호화 검증 추가
application-secrets.yml이 스테이징에 포함된 경우, 커밋 전에 파일 내 모든 값이 JasyptENC(...)형식으로 암호화되어 있는지검증한다. 평문 값이 발견되면 해당 라인 번호와 내용을 출력하고 커밋을 차단한다.
on-profile:키와true/false/null/숫자 값은 시크릿이 아닌 구조적 설정값으로 허용한다.Note
이 훅은
./gradlew installGitHooks실행 시 자동 적용된다. 팀원 환경에도 훅이 설치되어 있어야 동작한다.✅ 체크리스트
재현 확인
application-secrets.yml에test-key: plaintext추가 후git commit→ 커밋 차단 및 에러 메시지 출력 확인ENC(...)형태인 상태에서git commit→ 정상 통과 확인기본