Documentation
¶
Index ¶
- func ObfuscateSecret(plaintext []byte) (string, error)
- type Config
- type Secret
- func (Secret) Format(state fmt.State, verb rune)
- func (Secret) LogValue() slog.Value
- func (Secret) MarshalJSON() ([]byte, error)
- func (Secret) MarshalYAML() (any, error)
- func (Secret) String() string
- func (s *Secret) UnmarshalJSON(data []byte) error
- func (s *Secret) UnmarshalYAML(node *yaml.Node) error
- func (s Secret) Value() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObfuscateSecret ¶
ObfuscateSecret returns a portable configuration value that does not expose plaintext on casual inspection. The key is embedded in runnerd, so this is intentionally obfuscation rather than a security boundary.
Types ¶
type Config ¶
type Config struct {
HTTPAddr string
HTTPReadTimeout time.Duration
HTTPWriteTimeout time.Duration
HTTPIdleTimeout time.Duration
StateDir string
StateBackend string
StateDatabaseDSN Secret
GitHubAppID int64
GitHubAppInstallationID int64
GitHubAppSlug string
GitHubAppPrivateKeyFile string
GitHubToken Secret
GitHubBasicAuthUsername string
GitHubBasicAuthPassword Secret
GitHubWebhookSecret Secret
GitHubAllowedRepositories []string
AuthSessionSecret Secret
AuthEncryptionKey Secret
AuthSessionTTL time.Duration
GitHubOAuthClientID string
GitHubOAuthClientSecret Secret
GitHubOAuthRedirectURL string
SandboxTimeout time.Duration
SandboxCreateTimeout time.Duration
SandboxStopTimeout time.Duration
RecoveryTimeout time.Duration
WorkerLeaseTTL time.Duration
RunnerIdleTimeout time.Duration
RetryBaseDelay time.Duration
RetryMaxDelay time.Duration
RetryMaxAttempts int
MaxConcurrentRunners int
GitHubAPIBaseURL string
ConfigPath string
}
func (Config) GitHubAuthMode ¶
func (Config) GitHubOAuthEnabled ¶
func (Config) RepositoryAllowed ¶
type Secret ¶
type Secret string
Secret is a sensitive configuration value. Its default text, JSON, YAML, and structured-log representations are masked; Value must be called explicitly when the application needs the plaintext.
func (Secret) MarshalJSON ¶
func (Secret) MarshalYAML ¶
func (*Secret) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.