Skip to content

Be stricter in index routes verifications#924

Merged
Eijebong merged 1 commit intotaskcluster:mainfrom
Eijebong:better-routes-validation
Mar 24, 2026
Merged

Be stricter in index routes verifications#924
Eijebong merged 1 commit intotaskcluster:mainfrom
Eijebong:better-routes-validation

Conversation

@Eijebong
Copy link
Contributor

Some verification was added in #722 but for slashes only. Taskcluster is actually way stricter than that with what it accepts as index keys and it doesn't prevent task creations when index routes are invalid (taskcluster/taskcluster#6266).

The regex comes from the service iteself at
https://github.com/taskcluster/taskcluster/blob/62655d84d55680ffb8faa35e7deadee69f389efa/services/index/src/helpers.js#L8

Fixes #883

@Eijebong Eijebong requested a review from a team as a code owner March 23, 2026 23:54
@Eijebong Eijebong requested a review from hneiva March 23, 2026 23:54
Some verification was added in taskcluster#722 but for slashes only. Taskcluster is
actually way stricter than that with what it accepts as index keys and
it doesn't prevent task creations when index routes are invalid
(taskcluster/taskcluster#6266).

The regex comes from the service iteself at
https://github.com/taskcluster/taskcluster/blob/62655d84d55680ffb8faa35e7deadee69f389efa/services/index/src/helpers.js#L8

Fixes taskcluster#883
@Eijebong Eijebong force-pushed the better-routes-validation branch from 3f0ec6e to 1e06e1e Compare March 24, 2026 09:43
@Eijebong Eijebong enabled auto-merge (squash) March 24, 2026 09:44
@Eijebong Eijebong merged commit f3080c5 into taskcluster:main Mar 24, 2026
20 checks passed
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.

Taskgraph doesn't validate index routes well enough

2 participants