Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10203

[CBM] The "username/password" Service Principal authentication method for Azure is missing one required environment variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.2
    • 7.1.1
    • tools
    • 1

    Description

      What is the issue?
      Currently the "username/password" Service Principal authentication method for Azure is missing the AZURE_TENANT_ID environment variable. Looking at the new Azure SDK code, this variable is required for all Service Principal authentication methods:

      // NewEnvironmentCredential creates an EnvironmentCredential. Pass nil to accept default options.
      func NewEnvironmentCredential(options *EnvironmentCredentialOptions) (*EnvironmentCredential, error) {
      	if options == nil {
      		options = &EnvironmentCredentialOptions{}
      	}
      	tenantID := os.Getenv("AZURE_TENANT_ID")
      	if tenantID == "" {
      		return nil, errors.New("missing environment variable AZURE_TENANT_ID")
      	}
       
      ...
      

      but in the SDK library's documentation it is not listed: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#section-readme

      We need to update our documentation to reflect the real required environment variables and not the ones documented.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            maks.januska Maksimiljans Januska
            maks.januska Maksimiljans Januska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty