sastcreds

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sastcreds 는 스택 SonarQube 의 분석 토큰을 푼다.

스택 설치(provisioning_sonarqube)가 SonarQube 에서 분석 토큰을 발급해 스택의 OpenBao 에 둔다. 플랫폼이 이미 갖고 있는 값을 사용자에게 다시 받을 이유가 없다 — 받지 못하면 SONAR_TOKEN 이 비어 분석 단계가 인증에서 죽는다.

registrycreds 와 같은 형태다. 발급하지 않고 읽기만 한다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver 는 한 스택의 분석 토큰을 읽는다.

func New

func New(secrets SecretStore, env, orgID, stackID string) *Resolver

func (*Resolver) AnalysisToken

func (r *Resolver) AnalysisToken(ctx context.Context) (string, error)

AnalysisToken 은 스택의 분석 토큰이다. 조직·스택을 모르면 읽지 않고 빈 값이다 — 엉뚱한 경로의 값을 토큰으로 쓰면 원인이 먼 인증 실패가 된다.

type SecretStore

type SecretStore interface {
	GetTokenForStack(ctx context.Context, provider, stackID, path string) (string, error)
}

SecretStore 는 토큰 조회에 필요한 최소 동작만 노출한다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL