Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support authentication and SSL connections to NiFi #30

Open
davetorok opened this issue May 20, 2016 · 1 comment
Open

Support authentication and SSL connections to NiFi #30

davetorok opened this issue May 20, 2016 · 1 comment

Comments

@davetorok
Copy link

currently no way to deploy to an authenticated and SSL-enabled NiFi instance. Should allow for a username/password to be supplied securely (env properties preferred, or prompt for interactive access)

TEMPORARY WORKAROUND FOR GROOVY DEPLOY

  • Log into NiFi through the normal brower
  • in Chrome, open the Developer Tools
  • Look for some of the rest requests, you want the "Authorization: Bearer asdfasdfasdfasdf" request header
  • In NiFiDeploy.groovy around line 560, add the "ignoreSSLIssues" and "defaultRequestHeaders" lines
  • nifi = new RESTClient("$nifiHostPort/nifi-api/")
  • nifi.ignoreSSLIssues()
  • nifi.defaultRequestHeaders.'Authorization' = "Bearer blahblahblahUzI1NiJ9.eJhd(the whole token here"
  • groovy NiFiDeploy.groovy --file "/tmp/nifi-deploy.staging.withcreds.yml" --nifi-api "https:/MYSECUREHOST:8443/" --template "file:///tmp/nifi-deploy.xml"
@simonellistonball
Copy link

This should be fixed by #31 if you are using ssl client certificates for authentication. For kerberos, or basic auth, that will need a little extra work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants