Skip to content

Support authentication and SSL connections to NiFi #30

Description

@davetorok

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"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions