-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serve config at HTTP endpoint (#446)
* Serve config at HTTP endpoint Signed-off-by: Annanay <[email protected]> * make vendor-check Signed-off-by: Annanay <[email protected]> * Hide sensitive info from /config endpoint Signed-off-by: Annanay <[email protected]> * Hide azure credentials from /config endpoint Signed-off-by: Annanay <[email protected]> * parse config value into flagext.Secret.Value Signed-off-by: Annanay <[email protected]> * Fix CHANGELOG Signed-off-by: Annanay <[email protected]>
- Loading branch information
Showing
9 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package azure | ||
|
||
import "github.com/cortexproject/cortex/pkg/util/flagext" | ||
|
||
type Config struct { | ||
StorageAccountName string `yaml:"storage-account-name"` | ||
StorageAccountKey string `yaml:"storage-account-key"` | ||
ContainerName string `yaml:"container-name"` | ||
Endpoint string `yaml:"endpoint-suffix"` | ||
MaxBuffers int `yaml:"max-buffers"` | ||
BufferSize int `yaml:"buffer-size"` | ||
StorageAccountName flagext.Secret `yaml:"storage-account-name"` | ||
StorageAccountKey flagext.Secret `yaml:"storage-account-key"` | ||
ContainerName string `yaml:"container-name"` | ||
Endpoint string `yaml:"endpoint-suffix"` | ||
MaxBuffers int `yaml:"max-buffers"` | ||
BufferSize int `yaml:"buffer-size"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package s3 | ||
|
||
import "github.com/cortexproject/cortex/pkg/util/flagext" | ||
|
||
type Config struct { | ||
Bucket string `yaml:"bucket"` | ||
Endpoint string `yaml:"endpoint"` | ||
AccessKey string `yaml:"access_key"` | ||
SecretKey string `yaml:"secret_key"` | ||
Insecure bool `yaml:"insecure"` | ||
PartSize uint64 `yaml:"part_size"` | ||
Bucket string `yaml:"bucket"` | ||
Endpoint string `yaml:"endpoint"` | ||
AccessKey flagext.Secret `yaml:"access_key"` | ||
SecretKey flagext.Secret `yaml:"secret_key"` | ||
Insecure bool `yaml:"insecure"` | ||
PartSize uint64 `yaml:"part_size"` | ||
// SignatureV2 configures the object storage to use V2 signing instead of V4 | ||
SignatureV2 bool `yaml:"signature_v2"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters