Skip to content

Commit

Permalink
Add _secret suffix to secrets in toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Feb 15, 2024
1 parent 343484e commit e2ba1eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func (l *LogStreamConfig) Validate() error {
type LokiConfig struct {
TenantId *string `toml:"tenant_id"`
Endpoint *string `toml:"endpoint"`
BasicAuth *string `toml:"basic_auth"`
BearerToken *string `toml:"bearer_token"`
BasicAuth *string `toml:"basic_auth_secret"`
BearerToken *string `toml:"bearer_token_secret"`
}

// Validate checks that the loki config is valid, which means that
Expand All @@ -90,7 +90,7 @@ func (l *LokiConfig) Validate() error {
type GrafanaConfig struct {
BaseUrl *string `toml:"base_url"`
DashboardUrl *string `toml:"dashboard_url"`
BearerToken *string `toml:"bearer_token"`
BearerToken *string `toml:"bearer_token_secret"`
}

// Validate checks that the grafana config is valid, which means that
Expand Down
2 changes: 1 addition & 1 deletion config/pyroscope.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type PyroscopeConfig struct {
Enabled *bool `toml:"enabled"`
ServerUrl *string `toml:"server_url"`
Key *string `toml:"key"`
Key *string `toml:"key_secret"`
Environment *string `toml:"environment"`
}

Expand Down

0 comments on commit e2ba1eb

Please sign in to comment.