- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Interacting with Nifi Paramater Context using InvokeHTTP - Getting error
- Labels:
-
Apache NiFi
Created 03-20-2025 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Team,
I am trying to develop a flow to update the Parameter context on the fly using the InvokeHTTP Processor. Based on the screenshot i have configured the same. However i am getting unAuthorized Error.
My URL format is like : https://<nifi-host>:<port>/nifi-api/parameter-contexts/<context-id>
Error Screenshot.
Created 03-20-2025 10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@rajivswe_2k7
The error you shared points to an authorization issue.
With a secured (https) enabled NiFi all actions must be performed by an authenticated and authorized user/client.
When using the invokeHTTP processor the configured SSL Context service keystore provides the authenticated client via the clientAuth private key entry.
That client is not authorized view on the specific parameter context.
So while your user that authenticated into the NiFi UI may be authorized to create and modify a parameter context, that does not mean a processor executed by that user nor inherits some special authorization.
Your client derived from the keystore will need to be authorized to both view and modify the parameter context. You should check the nifi-user.log for the not authorized action which will show you the client identity which is missing the required authorizations on the parameter context.
Please help our community grow. 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
