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/01/25 17:41:51 UTC

[camel-kamelets] branch 735-default-cred-provider created (now 7ffb9c7)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch 735-default-cred-provider
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


      at 7ffb9c7  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source

This branch includes the following new commits:

     new 6d9eb9e  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
     new edba496  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
     new 7ffb9c7  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source

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-kamelets] 01/03: Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 735-default-cred-provider
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6d9eb9e5d068d5a4945df2b002192bde6096b010
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 25 18:17:44 2022 +0100

    Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
---
 kamelets/aws-s3-source.kamelet.yaml                        | 14 ++++++++++----
 .../src/main/resources/kamelets/aws-s3-source.kamelet.yaml | 14 ++++++++++----
 2 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/kamelets/aws-s3-source.kamelet.yaml b/kamelets/aws-s3-source.kamelet.yaml
index c049040..6d7cf7c 100644
--- a/kamelets/aws-s3-source.kamelet.yaml
+++ b/kamelets/aws-s3-source.kamelet.yaml
@@ -17,8 +17,6 @@ spec:
       Receive data from AWS S3.
     required:
       - bucketNameOrArn
-      - accessKey
-      - secretKey
       - region
     type: object
     properties:
@@ -80,6 +78,13 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: Set whether the S3 client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
   dependencies:
     - "camel:aws2-s3"
     - "camel:kamelet"
@@ -88,12 +93,13 @@ spec:
       uri: "aws2-s3:{{bucketNameOrArn}}"
       parameters:
         autoCreateBucket: "{{autoCreateBucket}}"
-        secretKey: "{{secretKey}}"
-        accessKey: "{{accessKey}}"
+        secretKey: "{{?secretKey}}"
+        accessKey: "{{?accessKey}}"
         region: "{{region}}"
         includeBody: "{{includeBody}}"
         ignoreBody: "{{ignoreBody}}"
         deleteAfterRead: "{{deleteAfterRead}}"
         prefix: "{{?prefix}}"
+        useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
       steps:
       - to: "kamelet:sink"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
index c049040..6d7cf7c 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
@@ -17,8 +17,6 @@ spec:
       Receive data from AWS S3.
     required:
       - bucketNameOrArn
-      - accessKey
-      - secretKey
       - region
     type: object
     properties:
@@ -80,6 +78,13 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: Set whether the S3 client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
   dependencies:
     - "camel:aws2-s3"
     - "camel:kamelet"
@@ -88,12 +93,13 @@ spec:
       uri: "aws2-s3:{{bucketNameOrArn}}"
       parameters:
         autoCreateBucket: "{{autoCreateBucket}}"
-        secretKey: "{{secretKey}}"
-        accessKey: "{{accessKey}}"
+        secretKey: "{{?secretKey}}"
+        accessKey: "{{?accessKey}}"
         region: "{{region}}"
         includeBody: "{{includeBody}}"
         ignoreBody: "{{ignoreBody}}"
         deleteAfterRead: "{{deleteAfterRead}}"
         prefix: "{{?prefix}}"
+        useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
       steps:
       - to: "kamelet:sink"

[camel-kamelets] 02/03: Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 735-default-cred-provider
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit edba49665bf5a691370798c380ff606e929c3f5c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 25 18:30:04 2022 +0100

    Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
---
 kamelets/aws-s3-source.kamelet.yaml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/kamelets/aws-s3-source.kamelet.yaml b/kamelets/aws-s3-source.kamelet.yaml
index 6d7cf7c..1b63ebf 100644
--- a/kamelets/aws-s3-source.kamelet.yaml
+++ b/kamelets/aws-s3-source.kamelet.yaml
@@ -14,7 +14,11 @@ spec:
   definition:
     title: "AWS S3 Source"
     description: |-
-      Receive data from AWS S3.
+      Receive data from AWS S3 Bucket.
+
+      Access Key/Secret Key are the basic method for authenticating to the AWS S3 Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+      
+      When using a default Credentials Provider the S3 client will load the credentials through this provider and won't use the static credential. This is reason for not having the access key and secret key as mandatory parameter for this Kamelet.
     required:
       - bucketNameOrArn
       - region

[camel-kamelets] 03/03: Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 735-default-cred-provider
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 7ffb9c706ae4dc797dda812aad1e347ab4757275
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 25 18:39:00 2022 +0100

    Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
---
 .../src/main/resources/kamelets/aws-s3-source.kamelet.yaml          | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
index 6d7cf7c..1b63ebf 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml
@@ -14,7 +14,11 @@ spec:
   definition:
     title: "AWS S3 Source"
     description: |-
-      Receive data from AWS S3.
+      Receive data from AWS S3 Bucket.
+
+      Access Key/Secret Key are the basic method for authenticating to the AWS S3 Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+      
+      When using a default Credentials Provider the S3 client will load the credentials through this provider and won't use the static credential. This is reason for not having the access key and secret key as mandatory parameter for this Kamelet.
     required:
       - bucketNameOrArn
       - region