You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lexicons: azure, k8s, github, gitlab and fly do not keep published names when an upstream type shares a short name #5551
area:coreBuild pipeline, discovery, fold, components, CLIbugSomething isn't workingepic:ci-hardeningHardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed
Core's NamingStrategy takes reservedNames, which hands each published name back to its type before short names are contested. aws and cpln feed it from their committed surface snapshot, and gcp does after #5549. azure, k8s, github, gitlab and fly have a snapshot and do not, so an upstream type that shares a short name renames a type users already import, as the gcp upgrade to Config Connector v1.161.0 would have.
aws and cpln have a second gap that gcp's change closes: once every published type has its name back, a new type whose short name only published types share looks unique and takes the bare name, and the snapshot then keeps it. gcp gives a newcomer the name the collision rule gives it over the whole input unless a published type holds that name.
Expected: every lexicon with a surface snapshot reserves its published names, with the newcomer rule, from one shared helper in core.
Built in #5559 for azure and k8s: the naming step gcp uses now lives in core (publishedNamingConfig, readPublishedNames), and both generators read their surface snapshot so a new upstream type that shares a short name cannot take or move a published name.
No change for github and gitlab. Their types come from fixed lists in the lexicon, each with a fixed name, so an upstream schema cannot add a colliding type.
Left open, each needing a choice:
fly: every type is Fly::Machines::<Name>, so a new schema with the same short name gets the identical type name, and reserving the published one would declare it twice. The parser has to decide what the newcomer is called (keep its namespace in the name) or refuse the collision.
k8s interface-only names (nameDefinitions in lexicons/k8s/src/spec/parse.ts): a new definition with the same last segment can rename a published interface, and the surface snapshot does not record these names. They need recording, in the snapshot or a list of their own.
aws and cpln reserve published names with their own code and could move to the shared step.
area:coreBuild pipeline, discovery, fold, components, CLIbugSomething isn't workingepic:ci-hardeningHardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed
Activity
lex00 commentedon Nov 23, 2026
Built in #5559 for azure and k8s: the naming step gcp uses now lives in core (
publishedNamingConfig,readPublishedNames), and both generators read their surface snapshot so a new upstream type that shares a short name cannot take or move a published name.No change for github and gitlab. Their types come from fixed lists in the lexicon, each with a fixed name, so an upstream schema cannot add a colliding type.
Left open, each needing a choice:
Fly::Machines::<Name>, so a new schema with the same short name gets the identical type name, and reserving the published one would declare it twice. The parser has to decide what the newcomer is called (keep its namespace in the name) or refuse the collision.nameDefinitionsinlexicons/k8s/src/spec/parse.ts): a new definition with the same last segment can rename a published interface, and the surface snapshot does not record these names. They need recording, in the snapshot or a list of their own.Nothing collides in fly today.