hashicorp / hashicorp/nomad

feature request: Exclude `/` also from job names

Open
#19,072 3 comments 0 reactions 0 assignees View on GitHub
hcc/jira stage/needs-discussion theme/core type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Proposal
The proposal is to disallow slash `/` from job names.

### Use-cases
The use case is to use `job/group/task` format when referencing a task in a group within a job. Currently, job names are allowed to contain slashes, but group and task names are not. I think it would be great to also disallow task names to contain slashes, for easier referencing without any escaping. It would also make easier to make HTTP requests, where `/` is the URL parts separator.

### Attempted Solutions
The solution, like in the case of nomad web UI, is to visually distinguish job name from the separator. Another is to escape `\/` slash like in `sed`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Nomad's validation and HTTP reference paths for job, group, and task names. Confirm whether the requested restriction applies to job names, task names, or both, then define tests showing slash-free names work with job/group/task references and HTTP requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.