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"
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