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

Add manifest entry for dangerous grade images (new) #1541

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions providers/base/units/image/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ flags: preserve-locale
id: image/model-grade
category_id: image
_summary: Check that the model grade is correctly set
imports: from com.canonical.plainbox import manifest
requires:
lsb.distributor_id == "Ubuntu Core" and int(lsb.release) >= 20
manifest.dangerous_grade_core_image == 'False'
_purpose:
Images with the 'dangerous' grade (the lowest of all available grades)
results in certain security measures being relaxed.
Expand Down
5 changes: 5 additions & 0 deletions providers/base/units/image/manifest.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
unit: manifest entry
id: dangerous_grade_core_image
_name: Image is using 'dangerous' grade (should be set to 'No' unless you're doing SRU testing)
_prompt: Does this setup have the following configuration?
value-type: bool
Loading