Created 04-29-2024 06:29 PM
Hi,
I am trying to integrate Nifi with slack by using putSlack processor.While doing so i have configured webhook url and webhook text. But while running i got PKIX certificate validation.
So i have added slack cert in keyStore and added SSL context service property like below in putSlack.
This time i didn't get certificate exception. But process failed with below error:
Unable to find any details regarding this issue. Could anyone please help.
Created 04-29-2024 11:25 PM
@Vikas-Nifi Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @SAMSAL @cotopaul @MattWho who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 04-30-2024 05:59 AM
@Vikas-Nifi
Looks like you added SSL Context Service as a custom dynamic property in this processor.
SSL Context Service was added to the PutSlack processor in Apache NiFi 1.24:
https://issues.apache.org/jira/browse/NIFI-12277
You can't use Dynamic properties to add controller service references in any NiFi processor. Processor code is required for this. This processor treats dynamic properties in a specific way:
The processing of that dynamic property is what is causing your json parsing exception.
This processor was deprecated newer versions of Apache NiFi in favor of the new PublishSlack processor. Looks like you will need to upgrade to Apache NiFi 1.24 or newer to use the SSL Context service in PutSlack or use the PublishSlack processor.
Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 06-20-2024 01:36 PM
@MattWho : Updated the NiFi version to 1.26.0.
I am trying to test it in local (haven't deployed in to environment server). Added the channel name and webhookURL (which generated under "companyName.slack.com")
But still getting below error:
o.apache.nifi.processors.slack.PutSlack : Failed to open connection
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I have added slack cert in to my truststore.
I am wondering, is there any specific certificate needs to be added in Truststore to get putSlack to work?.
Created 06-21-2024 04:19 AM