Skip to content

/actuator/prometheus에 스크레이핑 전용 Basic Auth 추가 #177

Description

@BcKmini

fowoco/infra#34(Prometheus+Grafana 모니터링 스택)에서 클러스터 내부 Prometheus가
server의 /actuator/prometheus를 스크레이핑하려 하는데 401을 받는다.

현재 SecurityConfig는 /actuator/prometheus를 observability & !prod 프로필일
때만 permitAll로 열어준다 — prod에서는 항상 막힘(의도된 설계). 그런데 이미
/actuator/** 전체가 public ingress로 나가 있어서(k8s/05-ingress.yaml), 이걸
그냥 prod에서도 permitAll로 바꾸면 내부 지표가 인증 없이 인터넷에 노출된다.

스크레이핑 전용 Basic Auth 계정 하나를 추가해서, 그 계정으로만
/actuator/prometheus에 접근할 수 있게 한다. 비밀번호를 설정하지 않으면(기본값)
기존과 동일하게 전부 거부.

Metadata

Metadata

Assignees

Labels

area:infraServer Dockerfile·DB 설정·CI hook·배포 가능성 영역; 통합 인프라 운영은 infra 저장소와 조율area:serverSpring Boot API·도메인·DB·tenant·Task Workflow 영역; Prompt·모델·Provider 구현 제외priority:P1핵심 작업 다음으로 처리할 중요 작업status:in-review구현을 마치고 리뷰 또는 병합을 기다리는 작업type:security

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions