You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/09/28 11:37:35 UTC
[camel-k] branch backport-aws-sec-manager-vault-1.10.x created (now 772f70051)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch backport-aws-sec-manager-vault-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
at 772f70051 Added docs for AWS Secrets Manager Vault from Camel
This branch includes the following new commits:
new b725b65f2 Added Support AWS Secrets Manager Vault from Camel
new c2a2151ba Refactor vault folder by creating subfolders for different cloud providers
new 772f70051 Added docs for AWS Secrets Manager Vault from Camel
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[camel-k] 02/03: Refactor vault folder by creating subfolders for different cloud providers
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch backport-aws-sec-manager-vault-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit c2a2151ba23be900e43737a3df6b2ad4aa29b3b5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 28 10:48:19 2022 +0200
Refactor vault folder by creating subfolders for different cloud providers
---
addons/register_aws_secrets.go | 4 ++--
addons/resume/zz_desc_generated.go | 1 +
addons/resume/zz_generated_doc.go | 1 +
addons/vault/{ => aws}/aws_secrets_manager.go | 2 +-
addons/vault/{ => aws}/aws_secrets_manager_test.go | 2 +-
addons/vault/aws/zz_desc_generated.go | 1 +
addons/vault/aws/zz_generated_doc.go | 1 +
pkg/apis/camel/v1/trait/zz_desc_generated.go | 1 +
pkg/apis/camel/v1/trait/zz_generated_doc.go | 1 +
script/gen_doc.sh | 3 ++-
10 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/addons/register_aws_secrets.go b/addons/register_aws_secrets.go
index ee5463903..9727bc89b 100644
--- a/addons/register_aws_secrets.go
+++ b/addons/register_aws_secrets.go
@@ -18,10 +18,10 @@
package addons
import (
- "github.com/apache/camel-k/addons/vault"
+ "github.com/apache/camel-k/addons/vault/aws"
"github.com/apache/camel-k/pkg/trait"
)
func init() {
- trait.AddToTraits(vault.NewAwsSecretsManagerTrait)
+ trait.AddToTraits(aws.NewAwsSecretsManagerTrait)
}
diff --git a/addons/resume/zz_desc_generated.go b/addons/resume/zz_desc_generated.go
new file mode 100644
index 000000000..cfb741edf
--- /dev/null
+++ b/addons/resume/zz_desc_generated.go
@@ -0,0 +1 @@
+package resume
diff --git a/addons/resume/zz_generated_doc.go b/addons/resume/zz_generated_doc.go
new file mode 100644
index 000000000..cfb741edf
--- /dev/null
+++ b/addons/resume/zz_generated_doc.go
@@ -0,0 +1 @@
+package resume
diff --git a/addons/vault/aws_secrets_manager.go b/addons/vault/aws/aws_secrets_manager.go
similarity index 99%
rename from addons/vault/aws_secrets_manager.go
rename to addons/vault/aws/aws_secrets_manager.go
index 63841bd85..80f401e30 100644
--- a/addons/vault/aws_secrets_manager.go
+++ b/addons/vault/aws/aws_secrets_manager.go
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package vault
+package aws
import (
"strconv"
diff --git a/addons/vault/aws_secrets_manager_test.go b/addons/vault/aws/aws_secrets_manager_test.go
similarity index 99%
rename from addons/vault/aws_secrets_manager_test.go
rename to addons/vault/aws/aws_secrets_manager_test.go
index dce61d807..759a60d45 100644
--- a/addons/vault/aws_secrets_manager_test.go
+++ b/addons/vault/aws/aws_secrets_manager_test.go
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-package vault
+package aws
import (
"testing"
diff --git a/addons/vault/aws/zz_desc_generated.go b/addons/vault/aws/zz_desc_generated.go
new file mode 100644
index 000000000..a1f9c0e3b
--- /dev/null
+++ b/addons/vault/aws/zz_desc_generated.go
@@ -0,0 +1 @@
+package aws
diff --git a/addons/vault/aws/zz_generated_doc.go b/addons/vault/aws/zz_generated_doc.go
new file mode 100644
index 000000000..a1f9c0e3b
--- /dev/null
+++ b/addons/vault/aws/zz_generated_doc.go
@@ -0,0 +1 @@
+package aws
diff --git a/pkg/apis/camel/v1/trait/zz_desc_generated.go b/pkg/apis/camel/v1/trait/zz_desc_generated.go
new file mode 100644
index 000000000..8bb8d4480
--- /dev/null
+++ b/pkg/apis/camel/v1/trait/zz_desc_generated.go
@@ -0,0 +1 @@
+package trait
diff --git a/pkg/apis/camel/v1/trait/zz_generated_doc.go b/pkg/apis/camel/v1/trait/zz_generated_doc.go
new file mode 100644
index 000000000..8bb8d4480
--- /dev/null
+++ b/pkg/apis/camel/v1/trait/zz_generated_doc.go
@@ -0,0 +1 @@
+package trait
diff --git a/script/gen_doc.sh b/script/gen_doc.sh
index bd029d5a2..686b47eea 100755
--- a/script/gen_doc.sh
+++ b/script/gen_doc.sh
@@ -29,5 +29,6 @@ go run ./cmd/util/doc-gen \
--input-dirs github.com/apache/camel-k/addons/keda \
--input-dirs github.com/apache/camel-k/addons/master \
--input-dirs github.com/apache/camel-k/addons/threescale \
- --input-dirs github.com/apache/camel-k/addons/tracing
+ --input-dirs github.com/apache/camel-k/addons/tracing \
+ --input-dirs github.com/apache/camel-k/addons/vault/aws
echo "Generating traits documentation... done!"
[camel-k] 01/03: Added Support AWS Secrets Manager Vault from Camel
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch backport-aws-sec-manager-vault-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b725b65f24de2f017587055bacf2c2030da02f66
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 27 12:31:16 2022 +0200
Added Support AWS Secrets Manager Vault from Camel
---
addons/register_aws_secrets.go | 27 +++++++++
addons/vault/aws_secrets_manager.go | 97 +++++++++++++++++++++++++++++++
addons/vault/aws_secrets_manager_test.go | 99 ++++++++++++++++++++++++++++++++
pkg/apis/camel/v1/common_types.go | 2 +
4 files changed, 225 insertions(+)
diff --git a/addons/register_aws_secrets.go b/addons/register_aws_secrets.go
new file mode 100644
index 000000000..ee5463903
--- /dev/null
+++ b/addons/register_aws_secrets.go
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package addons
+
+import (
+ "github.com/apache/camel-k/addons/vault"
+ "github.com/apache/camel-k/pkg/trait"
+)
+
+func init() {
+ trait.AddToTraits(vault.NewAwsSecretsManagerTrait)
+}
diff --git a/addons/vault/aws_secrets_manager.go b/addons/vault/aws_secrets_manager.go
new file mode 100644
index 000000000..63841bd85
--- /dev/null
+++ b/addons/vault/aws_secrets_manager.go
@@ -0,0 +1,97 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package vault
+
+import (
+ "strconv"
+
+ v1 "github.com/apache/camel-k/pkg/apis/camel/v1"
+ traitv1 "github.com/apache/camel-k/pkg/apis/camel/v1/trait"
+ "github.com/apache/camel-k/pkg/trait"
+ "github.com/apache/camel-k/pkg/util"
+ "k8s.io/utils/pointer"
+)
+
+// The Secrets Manager trait can be used to use secrets from AWS Secrets Manager
+//
+// The AWS Secrets Manager trait is disabled by default.
+//
+// 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"
+//
+// +camel-k:trait=aws-secrets-manager.
+
+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
+ AccessKey string `property:"access-key,omitempty"`
+ // The AWS Secret Key to use
+ SecretKey string `property:"secret-key,omitempty"`
+ // The AWS Region to use
+ Region string `property:"region,omitempty"`
+ // The adapter-specific policy to use when filling the cache (use: minimizing / maximizing). Check
+ // the component documentation if unsure
+ UseDefaultCredentialsProvider *bool `property:"use-default-credentials-provider,omitempty"`
+}
+
+type awsSecretsManagerTrait struct {
+ trait.BaseTrait
+ Trait `property:",squash"`
+}
+
+func NewAwsSecretsManagerTrait() trait.Trait {
+ return &awsSecretsManagerTrait{
+ BaseTrait: trait.NewBaseTrait("aws-secrets-manager", trait.TraitOrderBeforeControllerCreation),
+ }
+}
+
+func (t *awsSecretsManagerTrait) Configure(environment *trait.Environment) (bool, error) {
+ if !pointer.BoolDeref(t.Enabled, false) {
+ return false, nil
+ }
+
+ if !environment.IntegrationInPhase(v1.IntegrationPhaseInitialization) && !environment.IntegrationInRunningPhases() {
+ return false, nil
+ }
+
+ if t.UseDefaultCredentialsProvider == nil {
+ t.UseDefaultCredentialsProvider = pointer.Bool(false)
+ }
+
+ return true, nil
+}
+
+func (t *awsSecretsManagerTrait) Apply(environment *trait.Environment) error {
+ if environment.IntegrationInPhase(v1.IntegrationPhaseInitialization) {
+ util.StringSliceUniqueAdd(&environment.Integration.Status.Capabilities, v1.CapabilityAwsSecretsManager)
+ // Add the Camel Quarkus AWS Secrets Manager
+ util.StringSliceUniqueAdd(&environment.Integration.Status.Dependencies, "mvn:org.apache.camel.quarkus:camel-quarkus-aws-secrets-manager")
+ }
+
+ if environment.IntegrationInRunningPhases() {
+ environment.ApplicationProperties["camel.vault.aws.accessKey"] = t.AccessKey
+ environment.ApplicationProperties["camel.vault.aws.secretKey"] = t.SecretKey
+ environment.ApplicationProperties["camel.vault.aws.region"] = t.Region
+ environment.ApplicationProperties["camel.vault.aws.defaultCredentialsProvider"] = strconv.FormatBool(*t.UseDefaultCredentialsProvider)
+ }
+
+ return nil
+}
diff --git a/addons/vault/aws_secrets_manager_test.go b/addons/vault/aws_secrets_manager_test.go
new file mode 100644
index 000000000..dce61d807
--- /dev/null
+++ b/addons/vault/aws_secrets_manager_test.go
@@ -0,0 +1,99 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package vault
+
+import (
+ "testing"
+
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/utils/pointer"
+
+ v1 "github.com/apache/camel-k/pkg/apis/camel/v1"
+ "github.com/apache/camel-k/pkg/trait"
+ "github.com/apache/camel-k/pkg/util/camel"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestAwsSecretsManagerTraitApply(t *testing.T) {
+ e := createEnvironment(t, camel.QuarkusCatalog)
+ aws := NewAwsSecretsManagerTrait()
+ secrets, _ := aws.(*awsSecretsManagerTrait)
+ secrets.Enabled = pointer.Bool(true)
+ secrets.UseDefaultCredentialsProvider = pointer.Bool(false)
+ secrets.Region = "eu-west-1"
+ secrets.AccessKey = "access-key"
+ secrets.SecretKey = "secret-key"
+ ok, err := secrets.Configure(e)
+ assert.Nil(t, err)
+ assert.True(t, ok)
+
+ err = secrets.Apply(e)
+ assert.Nil(t, err)
+
+ assert.Empty(t, e.ApplicationProperties["quarkus.jaeger.enabled"])
+ assert.Equal(t, "eu-west-1", e.ApplicationProperties["camel.vault.aws.region"])
+ assert.Equal(t, "access-key", e.ApplicationProperties["camel.vault.aws.accessKey"])
+ assert.Equal(t, "secret-key", e.ApplicationProperties["camel.vault.aws.secretKey"])
+ assert.Equal(t, "false", e.ApplicationProperties["camel.vault.aws.defaultCredentialsProvider"])
+}
+
+func TestAwsSecretsManagerTraitNoDefaultCreds(t *testing.T) {
+ e := createEnvironment(t, camel.QuarkusCatalog)
+ aws := NewAwsSecretsManagerTrait()
+ secrets, _ := aws.(*awsSecretsManagerTrait)
+ secrets.Enabled = pointer.Bool(true)
+ secrets.Region = "eu-west-1"
+ secrets.AccessKey = "access-key"
+ secrets.SecretKey = "secret-key"
+ ok, err := secrets.Configure(e)
+ assert.Nil(t, err)
+ assert.True(t, ok)
+
+ err = secrets.Apply(e)
+ assert.Nil(t, err)
+
+ assert.Empty(t, e.ApplicationProperties["quarkus.jaeger.enabled"])
+ assert.Equal(t, "eu-west-1", e.ApplicationProperties["camel.vault.aws.region"])
+ assert.Equal(t, "access-key", e.ApplicationProperties["camel.vault.aws.accessKey"])
+ assert.Equal(t, "secret-key", e.ApplicationProperties["camel.vault.aws.secretKey"])
+ assert.Equal(t, "false", e.ApplicationProperties["camel.vault.aws.defaultCredentialsProvider"])
+}
+
+func createEnvironment(t *testing.T, catalogGen func() (*camel.RuntimeCatalog, error)) *trait.Environment {
+ t.Helper()
+
+ catalog, err := catalogGen()
+ assert.Nil(t, err)
+
+ e := trait.Environment{
+ CamelCatalog: catalog,
+ ApplicationProperties: make(map[string]string),
+ }
+
+ it := v1.Integration{
+ ObjectMeta: metav1.ObjectMeta{
+ Name: "test",
+ },
+ Status: v1.IntegrationStatus{
+ Phase: v1.IntegrationPhaseDeploying,
+ },
+ }
+ e.Integration = &it
+ return &e
+}
diff --git a/pkg/apis/camel/v1/common_types.go b/pkg/apis/camel/v1/common_types.go
index 4a585256c..2e7e485a4 100644
--- a/pkg/apis/camel/v1/common_types.go
+++ b/pkg/apis/camel/v1/common_types.go
@@ -306,6 +306,8 @@ const (
CapabilityMaster = "master"
// CapabilityResumeKafka defines the resume capability
CapabilityResumeKafka = "resume-kafka"
+ // CapabilityAwsSecretsManager defines the aws secrets manager capability
+ CapabilityAwsSecretsManager = "aws-secrets-manager"
)
// +kubebuilder:object:generate=false
[camel-k] 03/03: Added docs for AWS Secrets Manager Vault from Camel
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch backport-aws-sec-manager-vault-1.10.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 772f7005141456f0427c7bfdbcb695341e514253
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 28 13:37:14 2022 +0200
Added docs for AWS Secrets Manager Vault from Camel
---
addons/vault/aws/aws_secrets_manager.go | 1 -
docs/modules/ROOT/nav.adoc | 1 +
docs/modules/traits/pages/aws-secrets-manager.adoc | 57 ++++++++++++++++++++++
pkg/resources/resources.go | 4 +-
resources/traits.yaml | 32 ++++++++++++
5 files changed, 92 insertions(+), 3 deletions(-)
diff --git a/addons/vault/aws/aws_secrets_manager.go b/addons/vault/aws/aws_secrets_manager.go
index 80f401e30..dfb2e22f1 100644
--- a/addons/vault/aws/aws_secrets_manager.go
+++ b/addons/vault/aws/aws_secrets_manager.go
@@ -36,7 +36,6 @@ import (
// -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"
//
// +camel-k:trait=aws-secrets-manager.
-
type Trait struct {
traitv1.Trait `property:",squash"`
// Enables automatic configuration of the trait.
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index d209dd259..d03ac1ffa 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -52,6 +52,7 @@
// Start of autogenerated code - DO NOT EDIT! (trait-nav)
** xref:traits:3scale.adoc[3scale]
** xref:traits:affinity.adoc[Affinity]
+** xref:traits:aws-secrets-manager.adoc[Aws Secrets Manager]
** xref:traits:builder.adoc[Builder]
** xref:traits:camel.adoc[Camel]
** xref:traits:container.adoc[Container]
diff --git a/docs/modules/traits/pages/aws-secrets-manager.adoc b/docs/modules/traits/pages/aws-secrets-manager.adoc
new file mode 100644
index 000000000..0b65c1d28
--- /dev/null
+++ b/docs/modules/traits/pages/aws-secrets-manager.adoc
@@ -0,0 +1,57 @@
+= Aws Secrets Manager Trait
+
+// Start of autogenerated code - DO NOT EDIT! (description)
+The Secrets Manager trait can be used to use secrets from AWS Secrets Manager
+
+The AWS Secrets Manager trait is disabled by default.
+
+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"
+
+
+This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.
+
+// End of autogenerated code - DO NOT EDIT! (description)
+// Start of autogenerated code - DO NOT EDIT! (configuration)
+== Configuration
+
+Trait properties can be specified when running any integration with the CLI:
+[source,console]
+----
+$ kamel run --trait aws-secrets-manager.[key]=[value] --trait aws-secrets-manager.[key2]=[value2] integration.groovy
+----
+The following configuration options are available:
+
+[cols="2m,1m,5a"]
+|===
+|Property | Type | Description
+
+| aws-secrets-manager.enabled
+| bool
+| Can be used to enable or disable a trait. All traits share this common property.
+
+| aws-secrets-manager.auto
+| bool
+| Enables automatic configuration of the trait.
+
+| aws-secrets-manager.access-key,omitempty
+| string
+| The AWS Access Key to use
+
+| aws-secrets-manager.secret-key,omitempty
+| string
+| The AWS Secret Key to use
+
+| aws-secrets-manager.region,omitempty
+| string
+| The AWS Region to use
+
+| aws-secrets-manager.use-default-credentials-provider,omitempty
+| bool
+| The adapter-specific policy to use when filling the cache (use: minimizing / maximizing). Check
+the component documentation if unsure
+
+|===
+
+// End of autogenerated code - DO NOT EDIT! (configuration)
diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go
index da5f0b800..fd82a9cb0 100644
--- a/pkg/resources/resources.go
+++ b/pkg/resources/resources.go
@@ -170,9 +170,9 @@ var assets = func() http.FileSystem {
"/manager/operator-deployment.yaml": &vfsgen۰CompressedFileInfo{
name: "operator-deployment.yaml",
modTime: time.Time{},
- uncompressedSize: 2725,
+ uncompressedSize: 2752,
- compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x56\x4f\x8f\xe2\xc6\x13\xbd\xfb\x53\x3c\xe1\xcb\xae\x34\xc3\x9f\x3d\xad\xfc\x3b\xf9\x37\x30\x59\x94\x09\x20\xcc\x66\xb4\xa7\xa8\x69\x17\xb8\x45\xbb\xdb\xe9\x2e\xc3\x92\x4f\x1f\xb5\xc1\x0c\x30\x7f\xb2\x1b\x8d\x14\x9f\xb0\xab\xea\xd5\x7b\xaf\xaa\x6d\x62\xdc\xbe\xdf\x15\xc5\x78\x50\x92\x8c\xa7\x1c\x6c\xc1\x05\x21\xad\x84\x2c\x08\x99\x5d\xf1\x4e\x38\xc2\xbd\xad\x4d\x2e\x58\x59\x83\x0f\x69\x76\xff\x11\xb5\xc9\xc9\xc1\x [...]
+ compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x56\x4d\x8f\xe2\x46\x10\xbd\xfb\x57\x3c\xe1\xcb\xae\x34\x98\x61\x4f\x2b\xe7\xe4\x0c\x4c\xd6\xca\xc6\x20\xcc\x66\xb4\xa7\xa8\x69\x17\x76\x8b\x76\xb7\xd3\xdd\x86\x25\xbf\x3e\x6a\x83\x19\x60\x3e\x92\x89\x46\x8a\x4f\xd8\x55\xf5\xea\xd5\x7b\xd5\x36\x21\x86\xef\x77\x05\x21\xbe\x0a\x4e\xca\x52\x01\xa7\xe1\x2a\x42\xd2\x30\x5e\x11\x72\xbd\x76\x3b\x66\x08\xf7\xba\x55\x05\x73\x42\x2b\x7c\x48\xf2\xfb\x8f\x68\x55\x41\x06\x5a\x [...]
},
"/manager/operator-service-account.yaml": &vfsgen۰CompressedFileInfo{
name: "operator-service-account.yaml",
diff --git a/resources/traits.yaml b/resources/traits.yaml
index 2f52eb1dc..5d0383c68 100755
--- a/resources/traits.yaml
+++ b/resources/traits.yaml
@@ -65,6 +65,38 @@ traits:
description: Defines a set of pods (namely those matching the label selector,
relative to the given namespace) that the integration pod(s) should not be co-located
with.
+- name: aws-secrets-manager
+ platform: false
+ profiles:
+ - Kubernetes
+ - Knative
+ - OpenShift
+ description: 'The Secrets Manager trait can be used to use secrets from AWS Secrets
+ Manager The AWS Secrets Manager trait is disabled by default. 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"'
+ properties:
+ - name: enabled
+ type: bool
+ description: Can be used to enable or disable a trait. All traits share this common
+ property.
+ - name: auto
+ type: bool
+ description: Enables automatic configuration of the trait.
+ - name: access-key,omitempty
+ type: string
+ description: The AWS Access Key to use
+ - name: secret-key,omitempty
+ type: string
+ description: The AWS Secret Key to use
+ - name: region,omitempty
+ type: string
+ description: The AWS Region to use
+ - name: use-default-credentials-provider,omitempty
+ type: bool
+ description: 'The adapter-specific policy to use when filling the cache (use:
+ minimizing / maximizing). Check the component documentation if unsure'
- name: builder
platform: true
profiles: