Closed nimeshsubramanianv2 closed 1 year ago
Hi @nimeshsubramanianv2 sorry I've been out of the seat for a while dealing with Covid response work and childcare.
The anonymous response has come up before and I've been working to improve the security functions each time we spot a new case where it's not working as desired. Generally what is happening is your login and token are not being correctly set by the client, either through skipping a step or a bug on my part.
You can test if you are logged in using nipyapi.security.get_service_access_status
, if my suspicion is correct you will see that you are not logged in.
Also if @alopresto has a minute to look over what you're doing here he may have suggestions.
Closing as old, please reopen if the issue persists
Description
We are trying to leverage nipyapi to automate flow deployment, parameter context, and user management. We have NIFI containers deployed in EC2 instances fronted by an ALB and a DNS in route 53. Due to security requirements NIFI has been secured through OIDC. We have been trying to authenticate to NIFI using client certs.
Authentication is working fine through the UI(OIDC). We recreated certs and added the user("CN=admin,OU=NIFI") with appropriate permissions through the initial admin user (controlled through OIDC).
What I Did
The error we get is:
HTTP response body: Unknown user with identity 'anonymous'. Contact the system administrator
Nipyapi V0.14.1 gives us the same error.
Creation of certs:
Code:
Output:
Urgency
Please give a brief description of how critical this issue is to you.
We are trying to automate and harden our installation. Having this will help a lot of our use cases. Having read through other issues/PRs I know its doable. I just don't know what I am doing wrong. Help would be greatly appreciated and will help us move forward.