Skip to content

feat(trigger): restrict the link to scopes - #3

Merged
agustincelentano merged 1 commit into
mainfrom
feat/trigger-assignable-to-scope
Aug 7, 2026
Merged

feat(trigger): restrict the link to scopes#3
agustincelentano merged 1 commit into
mainfrom
feat/trigger-assignable-to-scope

Conversation

@agustincelentano

Copy link
Copy Markdown
Contributor

What

specs/links/trigger.json.tpl now declares assignable_to: "scope" instead of "any".

Why

The trigger derives its target function from the bound scope:

<scope_id>-<application_slug>-<scope_slug>   truncated to 64

Those values arrive as tags, and only when the link is bound to a scope. Created at application level the context has no tags.scope_id, so there is no function to wire and the link fails. Today nothing prevents that: the user creates the link, waits, and then reads the error.

connect stays on "any" — it is bound at application level and that is correct.

Not effective yet

service_definition copies six fields from the link template and drops the rest, assignable_to among them, so the API keeps receiving the default "any". That is what nullplatform/tofu-modules#477 fixes; until it lands and this repo's ref is bumped in the implementation, this declaration has no effect. The README says so, so the gap is not silent.

The target function is derived from the bound scope, so a link created at
application level arrives without tags.scope_id and has nothing to wire.

Takes effect once the registering module forwards the field; service_definition
does not yet (nullplatform/tofu-modules#477).
@agustincelentano
agustincelentano merged commit 91beb15 into main Aug 7, 2026
6 checks passed
@agustincelentano
agustincelentano deleted the feat/trigger-assignable-to-scope branch August 7, 2026 17:37
@github-actions github-actions Bot mentioned this pull request Aug 7, 2026
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