Skip to content

fix: allow Domain and Group in catalog rules#24

Merged
scotwells merged 1 commit into
mainfrom
fix/catalog-rules-allow-domain-group
Jul 2, 2026
Merged

fix: allow Domain and Group in catalog rules#24
scotwells merged 1 commit into
mainfrom
fix/catalog-rules-allow-domain-group

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

Allow Domain and Group from catalog locations

Staging Backstage discovers the infra catalog-info.yaml but rejects entities from it, logging:

Entity group:default/infrastructure … is not of an allowed kind for that location

Cause

catalog.rules gated location-sourced entities to Component/System/API/Resource/Location. Entities defined inside a discovered catalog-info.yaml are children of that Location and are checked against this allow-list, so the snapshot's Domain (7) and Group (3) entities are refused. Because the file leads with kind: Group, the rules check trips on the first entity.

Note this only affects entities declared in catalog files — org data imported by the githubOrg provider is emitted directly by the provider and bypasses catalog.rules, which is why Users/Teams import fine while in-file Groups do not.

Fix

Add Domain and Group to the allow-list so a repo's descriptor can declare its owning team and domain taxonomy alongside its components.

Related

  • Discovery enablement: datum-cloud/infra#3012
  • Catalog snapshot the rule was blocking: datum-cloud/infra#3017
  • Tracking: datum-cloud/infra#2967

The catalog.rules allow-list gated location-sourced entities to
Component/System/API/Resource/Location, so Domain and Group entities
declared inside a discovered catalog-info.yaml were rejected with "not of
an allowed kind for that location". The infra catalog snapshot leads with
a Group, which trips this on the very first entity.

Add Domain and Group to the allow-list so a repo descriptor can declare
its owning team and domain taxonomy. Provider-emitted org data (githubOrg
users/teams) is unaffected — it bypasses catalog.rules.

Claude-Session: https://claude.ai/code/session_01NMSkwUcaTmZr7S5XmV2aFG
@scotwells
scotwells requested a review from ecv July 2, 2026 17:53
@scotwells
scotwells enabled auto-merge July 2, 2026 17:53
@scotwells
scotwells merged commit d12533d into main Jul 2, 2026
9 checks passed
@scotwells
scotwells deleted the fix/catalog-rules-allow-domain-group branch July 2, 2026 17:56
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