Skip to content

v1.1.0 - GitHub CI/CD Integration & Bearer Token Authentication

Latest

Choose a tag to compare

@Chaffelson Chaffelson released this 08 Dec 23:13
v1.1.0
4507a52

What's New

GitHub Flow Registry Support

Native support for NiFi's GitHub Flow Registry Client, enabling CI/CD workflows for versioned NiFi flows:

  • Git-specific versioning helpers: list_git_registry_buckets, get_git_registry_bucket, list_git_registry_flows, get_git_registry_flow, list_git_registry_flow_versions, deploy_git_registry_flow, update_git_flow_ver
  • Registry client management: ensure_registry_client and update_registry_client for idempotent configuration
  • Enhanced revert: revert_flow_ver now accepts wait=True for synchronous operation

Profile System Enhancements

  • "env" profile: Configure nipyapi entirely from environment variables - no profiles file required

    nipyapi.profiles.switch('env') # Reads NIFI_API_ENDPOINT, NIFI_BEARER_TOKEN, etc.

    • Bearer token authentication: Simplest auth method - just URL + token
      export NIFI_API_ENDPOINT=https://nifi.example.com/nifi-api
      export NIFI_BEARER_TOKEN=eyJhbGciOiJSUzI1NiIs...

    Canvas Improvements

  • Bulk controller service operations: schedule_all_controllers(pg_id, scheduled) for enabling/disabling all controller services

  • Processor updates: update_processor now accepts name param and auto_stop for handling running processors

Bug Fixes

  • Fixed test_create_controller leaving orphaned controller services
  • revert_flow_ver now refreshes revision internally to prevent stale errors

Installation

pip install --upgrade nipyapi

Related Projects

Full Changelog: v1.0.1...v1.1.0