Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Trait ¶
type Trait struct { traitv1.Trait `property:",squash"` // Enables automatic configuration of the trait. Auto *bool `property:"auto" json:"auto,omitempty"` // The AWS Access Key to use. This could be a plain text or a configmap/secret // The content of the aws access key is expected to be a text containing a valid AWS access key. // Syntax: [configmap|secret]:name[/key], where name represents the resource name, key optionally represents the resource key to be filtered (default key value = aws-access-key). AccessKey string `property:"access-key" json:"accessKey,omitempty"` // The AWS Secret Key to use. This could be a plain text or a configmap/secret // The content of the aws secret key is expected to be a text containing a valid AWS secret key. // Syntax: [configmap|secret]:name[/key], where name represents the resource name, key optionally represents the resource key to be filtered (default key value = aws-secret-key). SecretKey string `property:"secret-key" json:"secretKey,omitempty"` // The AWS Region to use Region string `property:"region" json:"region,omitempty"` // Define if we want to use the Default Credentials Provider chain as authentication method UseDefaultCredentialsProvider *bool `property:"use-default-credentials-provider" json:"useDefaultCredentialsProvider,omitempty"` // Define if we want to use the Camel Context Reload feature or not ContextReloadEnabled *bool `property:"context-reload-enabled" json:"contextReloadEnabled,omitempty"` // Define if we want to use the Refresh Feature for secrets RefreshEnabled *bool `property:"refresh-enabled" json:"refreshEnabled,omitempty"` // If Refresh is enabled, this defines the interval to check the refresh event RefreshPeriod string `property:"refresh-period" json:"refreshPeriod,omitempty"` // If Refresh is enabled, the regular expression representing the secrets we want to track Secrets string `property:"secrets" json:"secrets,omitempty"` }
The Secrets Manager trait can be used to use secrets from AWS Secrets Manager
The AWS Secrets Manager trait is disabled by default.
For more information about how to use secrets from AWS Secrets Manager take a look at the components docs: xref:components::aws-secrets-manager-component.adoc[AWS Secrets Manager component]
A sample execution of this trait, would require the following trait options: -t aws-secrets-manager.enabled=true -t aws-secrets-manager.access-key="aws-access-key" -t aws-secrets-manager.secret-key="aws-secret-key" -t aws-secrets-manager.region="aws-region"
To enable the automatic context reload on secrets updates you should define the following trait options: -t aws-secrets-manager.enabled=true -t aws-secrets-manager.access-key="aws-access-key" -t aws-secrets-manager.secret-key="aws-secret-key" -t aws-secrets-manager.region="aws-region" -t aws-secrets-manager.context-reload-enabled="true" -t aws-secrets-manager.refresh-enabled="true" -t aws-secrets-manager.refresh-period="30000" -t aws-secrets-manager.secrets="test*"
WARNING: The trait is **deprecated** and will removed in future release versions: configure directly the Camel properties as required by the component instead.
+camel-k:trait=aws-secrets-manager. +camel-k:deprecated=2.5.0.