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/07/04 09:51:13 UTC
[camel-kamelets] branch main updated (8b8a1518 -> 86697a55)
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 8b8a1518 Revisit support level label for all the Kamelets - Remaining Kamelets
new 138b9005 Jira source Kamelet supporting oauth
new b54cf2ae Jira source Kamelet supporting oauth
new 86697a55 Jira source Kamelet supporting oauth
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:
docs/modules/ROOT/nav.adoc | 1 +
.../jira-oauth-source.kamelet.yaml | 50 ++++++++++++++++------
...kamelet.yaml => jira-oauth-source.kamelet.yaml} | 50 ++++++++++++++++------
3 files changed, 73 insertions(+), 28 deletions(-)
copy library/camel-kamelets/src/main/resources/kamelets/jira-source.kamelet.yaml => kamelets/jira-oauth-source.kamelet.yaml (78%)
copy library/camel-kamelets/src/main/resources/kamelets/{jira-source.kamelet.yaml => jira-oauth-source.kamelet.yaml} (78%)
[camel-kamelets] 03/03: Jira source Kamelet supporting oauth
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 86697a5549138a1abc2c47c049fc3804fddbaebf
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 4 11:43:59 2022 +0200
Jira source Kamelet supporting oauth
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index bb6140f8..eac83996 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -90,6 +90,7 @@
* xref:is-tombstone-filter-action.adoc[]
* xref:jira-add-comment-sink.adoc[]
* xref:jira-add-issue-sink.adoc[]
+* xref:jira-oauth-source.adoc[]
* xref:jira-source.adoc[]
* xref:jira-transition-issue-sink.adoc[]
* xref:jira-update-issue-sink.adoc[]
[camel-kamelets] 01/03: Jira source Kamelet supporting oauth
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 138b9005fe0e9be65e49a1a246138ac9c33f2f92
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 8 10:13:39 2022 +0200
Jira source Kamelet supporting oauth
---
kamelets/jira-oauth-source.kamelet.yaml | 108 +++++++++++++++++++++
.../kamelets/jira-oauth-source.kamelet.yaml | 102 +++++++++++++++++++
2 files changed, 210 insertions(+)
diff --git a/kamelets/jira-oauth-source.kamelet.yaml b/kamelets/jira-oauth-source.kamelet.yaml
new file mode 100644
index 00000000..634dda3a
--- /dev/null
+++ b/kamelets/jira-oauth-source.kamelet.yaml
@@ -0,0 +1,108 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: jira-oauth-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTguMDMwODY3NSUiIHkxPSIwLjE2MDU5OTU3MiUiIHgyPSI1OC44ODc3MDYyJSIgeTI9IjQwLjc2NTUyNDYlIi [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "JIRA"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Jira oauth Source"
+ description: |-
+ Receive notifications about new issues from Jira through OAuth authentication.
+ required:
+ - jiraUrl
+ - accessToken
+ - verificationCode
+ - consumerKey
+ - privateKey
+ - jql
+ type: object
+ properties:
+ jiraUrl:
+ title: Jira URL
+ description: The URL of your instance of Jira
+ type: string
+ example: http://my_jira.com:8081
+ accessToken:
+ title: Username
+ description: The access token generated by the Jira server.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ verificationCode:
+ title: Password
+ description: The verification code from Jira generated in the first step of the authorization proccess.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ consumerKey:
+ title: Password
+ description: The consumer key from Jira settings.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ privateKey:
+ title: Password
+ description: The private key generated by the client to encrypt the conversation to the server.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ jql:
+ title: JQL
+ description: A query to filter issues
+ type: string
+ example: project=MyProject
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:jackson"
+ - "camel:jira"
+ - "camel:kamelet"
+ - "mvn:com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.5"
+ template:
+ from:
+ uri: "jira:newIssues"
+ parameters:
+ jiraUrl: "{{jiraUrl}}"
+ accessToken: "{{accessToken}}"
+ verificationCode: "{{verificationCode}}"
+ privateKey: "RAW({{privateKey}})"
+ consumerKey: "{{consumerKey}}"
+ jql: "{{jql}}"
+ steps:
+ - marshal:
+ json:
+ library: Jackson
+ module-class-names: com.fasterxml.jackson.datatype.joda.JodaModule
+ - to: "kamelet:sink"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
new file mode 100644
index 00000000..74cafa79
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
@@ -0,0 +1,102 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: jira-oauth-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iOTguMDMwODY3NSUiIHkxPSIwLjE2MDU5OTU3MiUiIHgyPSI1OC44ODc3MDYyJSIgeTI9IjQwLjc2NTUyNDYlIi [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "JIRA"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Jira oauth Source"
+ description: |-
+ Receive notifications about new issues from Jira.
+ required:
+ - jiraUrl
+ type: object
+ properties:
+ jiraUrl:
+ title: Jira URL
+ description: The URL of your instance of Jira
+ type: string
+ example: http://my_jira.com:8081
+ accessToken:
+ title: Username
+ description: The username to access Jira
+ type: string
+ x-descriptors:
+ - urn:camel:group:credentials
+ verificationCode:
+ title: Password
+ description: The password to access Jira
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ consumerKey:
+ title: Password
+ description: The password to access Jira
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ privateKey:
+ title: Password
+ description: The password to access Jira
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ - urn:camel:group:credentials
+ jql:
+ title: JQL
+ description: A query to filter issues
+ type: string
+ example: project=MyProject
+
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:jackson"
+ - "camel:jira"
+ - "camel:kamelet"
+ - "mvn:com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.5"
+ template:
+ from:
+ uri: "jira:newIssues"
+ parameters:
+ jiraUrl: "{{jiraUrl}}"
+ accessToken: "{{accessToken}}"
+ verificationCode: "{{verificationCode}}"
+ privateKey: "{{privateKey}}"
+ consumerKey: "{{consumerKey}}"
+ jql: "{{jql}}"
+ steps:
+ - marshal:
+ json:
+ library: Jackson
+ module-class-names: com.fasterxml.jackson.datatype.joda.JodaModule
+ - to: "kamelet:sink"
[camel-kamelets] 02/03: Jira source Kamelet supporting oauth
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 b54cf2ae28388ea80e7e4dfda8f887a1eb5fb091
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 4 11:43:06 2022 +0200
Jira source Kamelet supporting oauth
---
.../kamelets/jira-oauth-source.kamelet.yaml | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
index 74cafa79..634dda3a 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/jira-oauth-source.kamelet.yaml
@@ -30,9 +30,14 @@ spec:
definition:
title: "Jira oauth Source"
description: |-
- Receive notifications about new issues from Jira.
+ Receive notifications about new issues from Jira through OAuth authentication.
required:
- jiraUrl
+ - accessToken
+ - verificationCode
+ - consumerKey
+ - privateKey
+ - jql
type: object
properties:
jiraUrl:
@@ -42,13 +47,15 @@ spec:
example: http://my_jira.com:8081
accessToken:
title: Username
- description: The username to access Jira
+ description: The access token generated by the Jira server.
type: string
+ format: password
x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
- urn:camel:group:credentials
verificationCode:
title: Password
- description: The password to access Jira
+ description: The verification code from Jira generated in the first step of the authorization proccess.
type: string
format: password
x-descriptors:
@@ -56,7 +63,7 @@ spec:
- urn:camel:group:credentials
consumerKey:
title: Password
- description: The password to access Jira
+ description: The consumer key from Jira settings.
type: string
format: password
x-descriptors:
@@ -64,7 +71,7 @@ spec:
- urn:camel:group:credentials
privateKey:
title: Password
- description: The password to access Jira
+ description: The private key generated by the client to encrypt the conversation to the server.
type: string
format: password
x-descriptors:
@@ -75,7 +82,6 @@ spec:
description: A query to filter issues
type: string
example: project=MyProject
-
types:
out:
mediaType: application/json
@@ -91,7 +97,7 @@ spec:
jiraUrl: "{{jiraUrl}}"
accessToken: "{{accessToken}}"
verificationCode: "{{verificationCode}}"
- privateKey: "{{privateKey}}"
+ privateKey: "RAW({{privateKey}})"
consumerKey: "{{consumerKey}}"
jql: "{{jql}}"
steps: