Skip to content

kars up fails on Azure: ACR trustPolicy is hardcoded to enabled, which Azure now rejects #515

Description

@appliedi

Summary

kars up cannot complete on Azure. The ARM deployment fails because modules/acr.bicep sets the ACR Content Trust policy unconditionally, and Azure now rejects that value.

Version

  • @kars-runtime/cli@0.1.26 (latest published at time of writing)
  • --release v0.1.26
  • Azure CLI 2.85.0

Error

ContentTrustUnsupported: The value 'enabled' for property 'status' in 'trustPolicy'
is not supported. Content Trust is being deprecated and will be completely removed
on March 31, 2028. Refer to https://aka.ms/acr/dctdeprecation

Surfaced as a nested failure under the <baseName>-acr deployment.

Root cause

dist/deploy/bicep/modules/acr.bicep:

policies: {
  trustPolicy: {
    type: 'Notary'
    status: 'enabled'
  }
}

This is unconditional. It is also baked into the compiled main.json. There is no CLI flag or Bicep parameter that disables it, so no supported configuration avoids the failure.

Reproduction

npx @kars-runtime/cli@0.1.26 up \
  --region <region> \
  --resource-group <rg> \
  --cluster-name <name> \
  --release v0.1.26 \
  --yes

Fails during az deployment group create.

Impact

Blocks first deployment entirely. Because v0.1.26 is the latest published release, there is no newer artifact to move to.

Note that the deployment fails after ACR, Log Analytics, Application Insights and an Azure OpenAI account have already been created, and these are not rolled back (filed separately).

Suggested fix

Remove the trustPolicy block. Content Trust / Notary v1 is deprecated; the modern equivalent is Notation + cosign-style artifact signing verified at admission, which is orthogonal to the registry policy.

Removing the block locally was sufficient to get past this error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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