Documentation
¶
Overview ¶
Package auth resolves OpenObserve credentials from configuration or secure storage. The pure credential model (header construction, validation, account keying) lives in the public pkg/auth; this package keeps the config/keychain-coupled resolution and re-exports the moved symbols so existing callers keep working unchanged.
Index ¶
Constants ¶
const ( SchemeBasic = pkgauth.SchemeBasic SchemeToken = pkgauth.SchemeToken SchemeSession = pkgauth.SchemeSession )
Auth scheme identifiers, re-exported from pkg/auth.
const ( BackendKeychain = credstore.BackendKeychain BackendFile = credstore.BackendFile )
Backend names reported by Store.Save.
Variables ¶
var ErrSecretNotFound = credstore.ErrSecretNotFound
ErrSecretNotFound is returned when no secret exists for an account.
Functions ¶
func AccountKey ¶
AccountKey is re-exported from pkg/auth.
Types ¶
type Credential ¶
type Credential = pkgauth.Credential
Credential is re-exported from pkg/auth. Its methods (Header, Decorator, Validate, Redacted) come with the aliased type.
type Store ¶
Store persists secrets, preferring the OS keychain over a protected file.
func NewStoreWithBackend ¶ added in v0.9.0
NewStoreWithBackend returns a Store using the supplied keychain backend.
type StoreAccessError ¶ added in v0.7.0
type StoreAccessError = credstore.StoreAccessError
StoreAccessError means the credential store could not be inspected.