Skip to content

Conversation

@GoGradually
Copy link
Collaborator

변경된 점

  • 도커 이미지 pull을 위한 secret 세팅
  • deploymemt 파일에 스프링 프로필 설정 추가
  • 마운트한 secret key들의 권한을 444(모든 사용자에게 읽기 전용)로 변경

Copilot AI review requested due to automatic review settings December 20, 2025 17:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

이 PR은 Kubernetes 배포 과정에서 발생한 버그들을 수정합니다. Spring 프로필 설정 추가와 secret 파일 권한 변경을 포함합니다.

  • Spring Boot 애플리케이션의 프로덕션 프로필 활성화를 위한 환경변수 추가
  • Secret 볼륨의 파일 권한을 0400에서 0444로 변경

secret:
secretName: pinit-keys
defaultMode: 0400
defaultMode: 0444
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(1) 문제점: Secret 파일의 권한을 0444(모든 사용자에게 읽기 권한)로 변경하는 것은 보안 위험이 있습니다. 동일한 노드에서 실행되는 다른 파드나 프로세스가 해당 secret 파일을 읽을 수 있게 됩니다.

(2) 영향: 컨테이너 내의 모든 사용자(다른 그룹 포함)가 /etc/keys 경로의 secret 파일을 읽을 수 있어, 권한이 없는 프로세스나 악의적인 코드가 민감한 정보에 접근할 수 있습니다.

(3) 수정 제안: 원래 설정인 0400(소유자만 읽기 가능) 또는 0440(소유자와 그룹만 읽기 가능)을 유지하세요. 만약 애플리케이션이 secret 파일을 읽지 못하는 문제가 있다면, 컨테이너의 runAsUser/runAsGroup을 적절히 설정하거나, fsGroup을 사용하여 파일 소유권을 조정하는 것이 더 안전합니다.

Suggested change
defaultMode: 0444
defaultMode: 0400

Copilot uses AI. Check for mistakes.
@GoGradually GoGradually merged commit 53e9db8 into master Dec 20, 2025
7 checks passed
@GoGradually GoGradually deleted the build/cd-과정-버그-해결 branch December 20, 2025 17:18
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.

2 participants