Skip to content

fix(recipe): set the component token for GG_CONFIG runs - #17

Merged
mbreissi merged 1 commit into
mainfrom
fix/component-token
Jul 28, 2026
Merged

fix(recipe): set the component token for GG_CONFIG runs#17
mbreissi merged 1 commit into
mainfrom
fix/component-token

Conversation

@mbreissi

Copy link
Copy Markdown
Contributor

What

recipe.yaml's ComponentConfiguration.DefaultConfiguration.component block was the one
configuration surface in this repo without component.token.

Core resolves the UNS {component} token as component.token from the active config document,
falling back to the last segment of the reverse-DNS Greengrass component name when it is absent —
and that fallback is PascalCase. So a --platform GREENGRASS -c GG_CONFIG run published under the
PascalCase name, while this repo's k8s ConfigMap and every FILE config already carried the
lower-kebab token, and every doc here documents the kebab topics.

Change

One addition to recipe.yaml: the token, set to the same lower-kebab value the repo's other
configuration surfaces already use, with a comment explaining why it is set explicitly rather than
derived.

Not a breaking wire change. The token value is unchanged from what this repo already publishes
under on the FILE and CONFIGMAP paths — this only makes the Greengrass path agree with them.

Standard

schema/edgecommons-config-schema.json pins component.token to ^[a-z0-9]+(?:-[a-z0-9]+)*$.
PascalCase belongs only to the Greengrass component name, which never reaches the wire.
Same fix as mtconnect-adapter#5.

The Greengrass recipe's DefaultConfiguration was the one configuration surface
without `component.token`. With no token set, the library falls back to the short
form of the Greengrass component name, which is reverse-DNS PascalCase — so a
GG_CONFIG run published under the PascalCase name while the k8s ConfigMap and
every FILE config in this repo already carried the lower-kebab token, and every
doc in the repo documents the kebab topics.

Set the token explicitly in the recipe, matching the value the other surfaces
already use. Purely additive: no other surface changes, and the kebab token was
already what non-Greengrass deployments published under.
@mbreissi
mbreissi merged commit 989f560 into main Jul 28, 2026
4 checks passed
@mbreissi
mbreissi deleted the fix/component-token branch July 28, 2026 17:24
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.

1 participant