Currently, the field Headers is a map[string]Header where value is the following type
|
type Header struct { |
|
Values []string `yaml:"values,omitempty" json:"values,omitempty"` |
|
Secrets []commoncfg.Secret `yaml:"secrets,omitempty" json:"secrets,omitempty"` |
|
Files []string `yaml:"files,omitempty" json:"files,omitempty"` |
|
} |
The schema definition is not correct as it represents the value as just map[string]string.
This introduces two problems:
- Secrets in headers are not properly discovered\masked
- Headers are not properly displayed.
Currently, the field Headers is a
map[string]Headerwhere value is the following typealerting/http/v0mimir1/config.go
Lines 318 to 322 in 11bc3c6
The schema definition is not correct as it represents the value as just
map[string]string.This introduces two problems: