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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions