secretref

package
v0.10.511 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package secretref — v0.10.271 (kuyruk 7 dilim 1): system_settings'e secret DEĞİL referans yazma sözleşmesi. Influx'ta v0.10.222 ile doğdu (internal/influx/secret.go, audit K5); Tempo / Remote Clusters / VictoriaMetrics'e yayılırken TEK kopya buraya taşındı — influx sarmalayıcı olarak kaldı (davranış bayt-bayt aynı, influx testleri değişmedi).

env:NAME     → ortam değişkeni (Helm extraEnv + existingSecret)
file:/path   → dosya içeriği (mount edilmiş Secret); sondaki boşluk/newline
               kırpılır (kubectl create secret --from-file newline bırakır)

Düz token hiçbir yolda kabul edilmez (Valid). Çözüm kullanım anında ya da entegrasyonun Configure/yenileme döngüsünde (sıcak yolda IO yok) yapılır; rotasyon = Secret'ı değiştir (env: pod restart, file: dosyayı güncelle).

Index

Constants

View Source
const InvalidMessage = "tokenRef `env:NAME` ya da `file:/path` biçiminde olmalı (düz token saklanmaz)"

InvalidMessage — API 400 metni (influx_routes.go sözleşmesi).

Variables

This section is empty.

Functions

func Resolve

func Resolve(ref string) (string, error)

Resolve — os üzerinden çözer (üretim yolu).

func ResolveWith

func ResolveWith(ref string, getenv func(string) string, readFile func(string) ([]byte, error)) (string, error)

ResolveWith — enjekte edilebilir getenv/readFile ile çözer (testler).

func Valid

func Valid(ref string) bool

Valid — `env:NAME` (POSIX env adı) ya da `file:/mutlak/yol`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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