Skip to content

Don't allow pipelines or teams containing '/' to be set with the set_pipeline step - #9537

Merged
taylorsilva merged 2 commits into
masterfrom
issue-8475
Apr 20, 2026
Merged

taylorsilva merged 2 commits into
masterfrom
issue-8475

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Apr 17, 2026 •

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #8475

The set_pipeline step will now error if a pipeline name contains forward slashes /, which is what fly set-pipeline currently does.

ERROR: pipeline name cannot contain '/'

We do this same check in the fly set-pipeline command:

if strings.Contains(command.PipelineName, "/") {
err = errors.New("pipeline name cannot contain '/'")
}

I verified that we don't need to enforce this for resource or job names. Fly currently let's you set these and the UI does not break when resources or jobs have / in their name.

image

Update

fly set-team and the set_pipeline step will error on teams containing / as well now. Teams with this character already didn't work in the web UI. The fact we have no bug reports regarding this leads me to think that no one has tried making a team with a / in its name, so I don't think we're breaking anything for users.

Marking this as a breaking change though and will warn users to rename their teams before upgrading.

@taylorsilva
taylorsilva requested a review from a team April 17, 2026 22:01
@taylorsilva taylorsilva changed the title don't allow pipelines with '/' to be set with the set_pipeline step Don't allow pipelines with '/' to be set with the set_pipeline step Apr 18, 2026
@ceco556

ceco556 commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

I've tested the PR and it works as expected!

While testing, I also checked whether we have similar validation for fly set-team. It turns out we don’t, and this causes similar issue to the one with set_pipeline step.

Example

fly -t local set-team -n test/main --config team.yml

I get deprecation warning:

DEPRECATION WARNING:
  - team: 'test/main' is not a valid identifier: illegal character '/'

After creating a pipeline in the new team and attempting to open it, nothing happens. The URL is:

http://localhost:8080/teams/test/main/pipelines/test-pipeline

Should we add the same validation to fly set-team with this PR or open a new one?

@taylorsilva

Copy link
Copy Markdown
Member Author

Thanks for checking that! Let's add it to this PR, it's small and similar enough to pack together.

we do this same check in the `fly set-pipeline` command

Signed-off-by: Taylor Silva <[email protected]>
blocking this in `fly set-team` and `set_pipeline` step. Teams with
slashes `/` cannot be viewed in the UI either, so anyone that has
created a team like this probably deleted and recreated the team after
realizing this.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva taylorsilva changed the title Don't allow pipelines with '/' to be set with the set_pipeline step Don't allow pipelines or teams containing '/' to be set with the set_pipeline step Apr 18, 2026
@taylorsilva taylorsilva added this to the v8.2.0 milestone Apr 18, 2026

@ceco556 ceco556 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thank you!

@taylorsilva
taylorsilva merged commit 7371da6 into master Apr 20, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the issue-8475 branch April 20, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Step set-pipeline can take invalid/problematic target pipeline name (in conjunction with instanced pipelines)

2 participants