Chaffelson / nipyapi

A convenient Python wrapper for Apache NiFi
Other
243 stars 76 forks source link

Calling Parameters requires system-diagnotics policy #266

Closed cgmckeever closed 2 years ago

cgmckeever commented 3 years ago

Description

Discussion: https://apachenifi.slack.com/archives/C0L9VCD47/p1616013709036400

When accessing nipyapi.parameters.list_all_parameter_contexts() the following error is recieved

HTTP response body: No applicable policies could be found.

which bubbles down further to

DEBUG:nipyapi.nifi.rest:response body: Unable to view system diagnostics. Contact the system administrator.

What I Did

Verified I was authenticating as I thought I was

{'access_status': {'identity': 'CN=nifi-admin, OU=NIFI',
                   'message': 'You are already logged in.',
                   'status': 'ACTIVE'}}

RESOLVED by adding permission

Urgency

limited

cgmckeever commented 3 years ago

Bootstrapping security policies also resolves the issue

Chaffelson commented 2 years ago

Check is made less overzealous in the new 0.19 release