Skip to content

Commit

Permalink
Make the default security policy baseline given onerous requirements …
Browse files Browse the repository at this point in the history
…of restricted on workshop creators.
  • Loading branch information
GrahamDumpleton committed May 6, 2022
1 parent 337d91a commit cd4c37b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ spec:
- nonroot
- anyuid
- custom
default: restricted
default: baseline
secondary:
type: array
items:
Expand Down Expand Up @@ -380,7 +380,7 @@ spec:
- nonroot
- anyuid
- custom
default: restricted
default: baseline
resources:
type: object
properties:
Expand Down
4 changes: 2 additions & 2 deletions session-manager/handlers/workshopsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def workshop_session_create(name, meta, spec, status, patch, logger, **_):
budget = "default"
limits = {}

namespace_security_policy = "nonroot"
namespace_security_policy = "baseline"

security_policy_mapping = {
"restricted": "restricted",
Expand All @@ -536,7 +536,7 @@ def workshop_session_create(name, meta, spec, status, patch, logger, **_):
}

def resolve_security_policy(name):
return security_policy_mapping.get(name, "restricted")
return security_policy_mapping.get(name, "baseline")

if workshop_spec.get("session"):
role = workshop_spec["session"].get("namespaces", {}).get("role", role)
Expand Down

0 comments on commit cd4c37b

Please sign in to comment.