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:42:42 UTC

[camel-kamelets] branch main updated (971c39e -> 0bab919)

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

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


    from 971c39e  Fix #729 to use toD for dynamic to eip
     new cc71e06  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
     new 6a8f7a9  Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Source
     new 0bab919  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.


Summary of changes:
 kamelets/aws-s3-source.kamelet.yaml                  | 20 +++++++++++++++-----
 .../resources/kamelets/aws-s3-source.kamelet.yaml    | 20 +++++++++++++++-----
 2 files changed, 30 insertions(+), 10 deletions(-)

[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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit cc71e06a3b33ede2f0ce51fd5af17195a696830e
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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6a8f7a9744254bd5f807040047b0d513d912cdbd
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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0bab919912f45107c27a1c540df65ea7daf60478
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