Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentinel: remove default scope for Sentinel apply command #24601

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented Dec 3, 2024

When we add a Sentinel scope for dynamic host volumes, having a default -scope value for sentinel apply risks accidentally adding policies for volumes to the job scope. This would immediately prevent any job from being submitted. Forcing the administrator to pass a -scope will prevent accidental misuse.

Ref: https://github.com/hashicorp/nomad-enterprise/pull/2087
Ref: #24479

@tgross tgross requested review from schmichael and gulducat December 3, 2024 18:03
@tgross tgross marked this pull request as ready for review December 3, 2024 18:03
@tgross tgross requested review from a team as code owners December 3, 2024 18:03
@tgross tgross added this to the 1.10.0 milestone Dec 3, 2024
@tgross tgross requested a review from pkazmierczak December 3, 2024 18:32
Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

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

Good call! Don't forget the changelog.

A backwards compatibility break, but I don't think we need to worry about it since the failure case is safe (no operation will occur) and will loudly direct users toward the resolution.

When we add a Sentinel scope for dynamic host volumes, having a default `-scope`
value for `sentinel apply` risks accidentally adding policies for volumes to the
job scope. This would immediately prevent any job from being submitted. Forcing
the administrator to pass a `-scope` will prevent accidental misuse.

Ref: hashicorp/nomad-enterprise#2087
Ref: #24479
@tgross tgross force-pushed the sentinel-no-default-scope branch from 8e35e69 to 2d8540c Compare December 3, 2024 19:30
@tgross tgross merged commit d08bc07 into dynamic-host-volumes Dec 3, 2024
6 of 8 checks passed
@tgross tgross deleted the sentinel-no-default-scope branch December 3, 2024 19:30
tgross added a commit that referenced this pull request Dec 9, 2024
When we add a Sentinel scope for dynamic host volumes, having a default `-scope`
value for `sentinel apply` risks accidentally adding policies for volumes to the
job scope. This would immediately prevent any job from being submitted. Forcing
the administrator to pass a `-scope` will prevent accidental misuse.

Ref: hashicorp/nomad-enterprise#2087
Ref: #24479
tgross added a commit that referenced this pull request Dec 13, 2024
When we add a Sentinel scope for dynamic host volumes, having a default `-scope`
value for `sentinel apply` risks accidentally adding policies for volumes to the
job scope. This would immediately prevent any job from being submitted. Forcing
the administrator to pass a `-scope` will prevent accidental misuse.

Ref: hashicorp/nomad-enterprise#2087
Ref: #24479
tgross added a commit that referenced this pull request Dec 19, 2024
When we add a Sentinel scope for dynamic host volumes, having a default `-scope`
value for `sentinel apply` risks accidentally adding policies for volumes to the
job scope. This would immediately prevent any job from being submitted. Forcing
the administrator to pass a `-scope` will prevent accidental misuse.

Ref: hashicorp/nomad-enterprise#2087
Ref: #24479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants