Remove PRD/doc paths, bead IDs, phase notes and deleted-test references from comments; drop test-only hooks left by the test deletion. Includes in-progress archied bootstrap, gateway and query changes.
24 lines
794 B
Go
24 lines
794 B
Go
package config
|
|
|
|
// SecretRef references a secret stored in a named engine. Legacy environment
|
|
// variable fields remain supported where required for backwards compatibility.
|
|
//
|
|
// Format in TOML/YAML:
|
|
//
|
|
// [forge]
|
|
// token = {engine = "env", key = "GITEA_TOKEN"}
|
|
//
|
|
// [providers.deepseek]
|
|
// api_key = {engine = "bws", key = "DEEPSEEK_API_KEY"}
|
|
//
|
|
// The zero value (empty engine, empty key) resolves to "" with no error,
|
|
// for config fields where the secret is optional (e.g. an unconfigured
|
|
// channel token).
|
|
//
|
|
// It lives here rather than in internal/secret so the archie-ui process can
|
|
// render config projections without linking the secret runtime
|
|
type SecretRef struct {
|
|
Engine string `toml:"engine" yaml:"engine" json:"engine"`
|
|
Key string `toml:"key" yaml:"key" json:"key"`
|
|
}
|