streamnative/terraform-provider-pulsar

Support authentication using OAuth2

maxsxu opened this issue · 1 comments

Description

New or Affected Resource(s)

  • Just Provider Configuration

Potential Terraform Configuration

provider "pulsar" {
  web_service_url = "http://localhost:8080"
  key_file_path = "/path/to/privateKey"
  issuer_url = "https://dev-kt-aa9ne.us.auth0.com"
  audience = "https://dev-kt-aa9ne.us.auth0.com/api/v2/"
  client_id = "0Xx...Yyxeny",
}

References

Note that this implementation of oauth2 (based on pulsarctl) will store access tokens to ~/.pulsar/credentials (on linux; on mac/windows, the keyring component may use other strategies). That's probably fine, but worth documenting.