A tiny type mismatch was quietly breaking scaffolder runs and platform teams' mental models of authorization.
A recent Backstage patch fixes two operational bugs that have been causing real, hard-to-debug failures: scaffolder permission-policy matching failing when action-input identifiers were passed as numbers vs strings, and GitLab discovery relying on push payloads in ways that produced invalid catalog locations. Both changes are small in code, large in developer-experience impact.
The scaffolder problem is the more insidious one. Permission policies were doing exact-type matches against action-input identifiers. If your template passed an identifier as 123 (a number) but the policy expected "123" (a string), the match failed and the scaffolder returned a permission denial instead of the user-facing error you expect. That kind of type sensitivity produces nondeterministic failures: some callers (web form, API, CI) send strings, others send numbers, and the result is flaky scaffolding that looks like an authorization bug.
This is the right call to fix. Backstage is the surface where developer workflows collide with platform guardrails; silently failing scaffolder runs because of JSON-typing quirks is exactly the sort of UX rot platform teams need to stop. Upgrading to the patched release will remove a class of surprising 403s and reduce the time engineers spend second-guessing policy logic.
The GitLab discovery changes are less about developer ergonomics and more about robustness and trust.
Previously, the GitLab discovery entity provider sometimes derived catalog locations and refresh keys from push-event payload fields. Those payloads can be incomplete, malformed, or reflect paths that don't actually resolve in the repository — especially in monorepos, mirrors, or when push hooks are misconfigured. The patch switches discovery to obtain catalog locations and refresh keys from the project records fetched from the GitLab API, and it ignores committed file paths that do not resolve within the associated project.
Why that matters: deriving state from the authoritative GitLab API reduces false-positive locations and noisy catalog entries. But it also changes the provider's trust model. Discovery now requires reliable access to the GitLab API and correct project-scoped metadata. If your provider token lacks the necessary API-read permissions, or if you were depending on the old push-payload behavior to discover files across forks or mirrored repositories, you will see fewer—but more accurate—catalog locations.
What to check now
- Upgrade to the patched release. The scaffolder fix is behavioral: after upgrading, policies should match regardless of numeric/string representation.
- Audit the GitLab provider token: ensure it can read project metadata via the GitLab API (for example, a Personal Access Token with the api scope or equivalent permissions), and review rate limits if you run discovery across many projects.
- Test monorepo and fork scenarios: because discovery now ignores file paths that don't resolve in the project, CI hooks or mirrored workflows that previously relied on payload heuristics may stop creating catalog locations.
- Review any policy conditions that relied on numeric identifiers; they should work post-upgrade, but consider normalizing identifiers in templates to remove future ambiguity.
There is also a next-branch prerelease if you're experimenting with upcoming features; compare its behavior if you run edge or canary deployments.
My take: these fixes are overdue and sensible. Type-strict authorization checks in scaffolder were a reliability timebomb, and moving discovery to the API is the pragmatic choice for a catalog that's supposed to represent source truth, not malformed webhook noise. That said, platform teams should treat this as a behavioral change, not a drop-in patch: your GitLab tokens, monorepo layout, and any automation that relied on push-payload quirks deserve a quick audit.
If you manage Backstage at scale, expect fewer phantom catalog locations and fewer mysterious scaffolder 403s — but expect to spend an hour validating your GitLab provider configuration. That hour will pay for itself the first time a developer can actually scaffold without emailing platform on-call.