Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPS-1383 Support Secret Agent keys for GCP and Azure credentials configuration #281

Merged
merged 11 commits into from
Dec 9, 2024
Prev Previous commit
Next Next commit
inline for yaml
korotkov-aerospike committed Dec 8, 2024
commit e59a04fbe9e8458a43e2b9570a04f65d81b61246
2 changes: 1 addition & 1 deletion pkg/dto/aerospike_cluster.go
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ func (t *TLS) toModel() *model.TLS {
// Credentials represents authentication details to the Aerospike cluster.
// @Description Credentials represents authentication details to the Aerospike cluster.
type Credentials struct {
SecretAgentConfig
SecretAgentConfig `yaml:",inline"`
// The username for the cluster authentication.
User *string `yaml:"user,omitempty" json:"user,omitempty" example:"testUser"`
// The password for the cluster authentication.
2 changes: 1 addition & 1 deletion pkg/dto/storage_azure.go
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import (

// AzureStorage represents the configuration for Azure Blob storage.
type AzureStorage struct {
SecretAgentConfig
SecretAgentConfig `yaml:",inline"`
// Endpoint is the Azure Blob service endpoint URL.
Endpoint string `yaml:"endpoint" json:"endpoint" validate:"required"`
// ContainerName is the name of the Azure Blob container.
2 changes: 1 addition & 1 deletion pkg/dto/storage_gcp.go
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import (

// GcpStorage represents the configuration for GCP storage.
type GcpStorage struct {
SecretAgentConfig
SecretAgentConfig `yaml:",inline"`
// Path to file containing Service Account JSON Key.
// This is sensitive information. Can be a path in secret agent or an actual value.
KeyFile string `yaml:"key-file" json:"key-file"`
2 changes: 1 addition & 1 deletion pkg/dto/storage_s3.go
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ import (
//
//nolint:lll
type S3Storage struct {
SecretAgentConfig
SecretAgentConfig `yaml:",inline"`
// The S3 bucket name.
Bucket string `yaml:"bucket" json:"bucket" validate:"required"`
// The root path for the backup repository within the bucket.