Skip to content

Possibility to require a prompt when using the nomad CLI for taking action (i.e. "are you sure? yes") #25824

Open
@msherman13

Description

@msherman13

Proposal

Add the option to require user-confirmation before applying changes with the nomad CLI. For example restarting a job. Read-only actions like listing jobs or services should not require the prompt.

Use-cases

Currently, it is quite easy to use the nomad CLI to take actions in the cluster, which we love. However, in our use-case, we have a staging cluster and a production cluster and they can both be modified from our development machines. It would be great for us if we could somehow configure the CLI to require a user-confirmation prompt before taking action on the production cluster, but not require it for the staging cluster.

Attempted Solutions

We have some bash scripts wrapping the CLI to do this, but we don't have any way to require its usage by devs.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Triaging

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions