Skip to content

terraform/settings: preserve blob_storage.managed_prefix on enterprise read#226

Draft
wasaga wants to merge 1 commit intomainfrom
denism/eng-3942-terraform-enterprise-settings-converter-drops
Draft

terraform/settings: preserve blob_storage.managed_prefix on enterprise read#226
wasaga wants to merge 1 commit intomainfrom
denism/eng-3942-terraform-enterprise-settings-converter-drops

Conversation

@wasaga
Copy link
Copy Markdown
Collaborator

@wasaga wasaga commented Apr 22, 2026

The enterprise read path for blob_storage was dropping the managed_prefix field, leaving it null in state even when the API returned a value. Enterprise users who set managed_prefix saw a perpetual diff on plan.

The write path and the non-enterprise read path already handle the field correctly — this brings the enterprise read path in line. A regression test covers the converter.

Fixes ENG-3942.

dst, diagnostics := types.ObjectValue(BlobStorageSettingsObjectType().AttrTypes, map[string]attr.Value{
"bucket_uri": types.StringPointerValue(src.BucketUri),
"managed_prefix": types.StringNull(),
"managed_prefix": types.StringPointerValue(src.ManagedPrefix),
Copy link
Copy Markdown
Contributor

@alexandreLamarre alexandreLamarre Apr 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

managed_prefix is set by the console's cluster config syncer. It expects to match the uuid assigned to a particular cluster, since the blob store encodes that information (separating recordings by pomerium instance).

perhaps there is a way to ignore this setting completely from the provider's state? Idk

The intention was to only allow core's local config to override this field, as a mitigation/workaround for bad syncer state or other issues

alexandreLamarre added a commit that referenced this pull request Apr 28, 2026
…der API (#227)

#226 (comment)

managed_prefix is managed internally by the cluster syncer, so should be
omitted from the terraform provider API surface area
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants