Skip to content

Support for Azure Government Cloud in azure-blob CAS backend #2495

@JeffResc

Description

@JeffResc

Summary

Currently, the chainloop cas-backend add azure-blob command only works with the default commercial Azure environment (*.blob.core.windows.net).
When attempting to register an Azure Blob backend in the Azure Government Cloud (*.blob.core.usgovcloudapi.net), Chainloop fails with DNS resolution errors:

failed to create Blob storage Container: 
Put "https://<account>.blob.core.windows.net/...": 
dial tcp: lookup <account>.blob.core.windows.net: no such host

This happens because Chainloop always assumes the public Azure cloud endpoint and does not provide a way to specify an alternate endpoint or cloud environment.

Steps to Reproduce

chainloop cas-backend add azure-blob \
  --client-id <client-id> \
  --client-secret <secret> \
  --tenant <tenant-id> \
  --storage-account <gov-storage-account> \
  --container chainloop-cas \
  --name azure-blob-usgov

Result:
Fails with DNS error because it tries to reach .blob.core.windows.net instead of .blob.core.usgovcloudapi.net.

Expected Behavior

Allow specifying Azure sovereign cloud environments, at minimum, the Azure Government endpoint (core.usgovcloudapi.net), so that users with US Gov storage accounts can register them as valid CAS backends.

Proposed Solution

Add one of the following:

  • A new flag, e.g.:
    • --endpoint-suffix core.usgovcloudapi.net
    • or --cloud azuregovernment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions