Skip to content

feat(config): add safe-exec profile fields - #3

Closed
pshickeydev wants to merge 1 commit into
openshift:mainfrom
pshickeydev:feat/safe-exec-profile-fields
Closed

pshickeydev wants to merge 1 commit into
openshift:mainfrom
pshickeydev:feat/safe-exec-profile-fields

Conversation

@pshickeydev

@pshickeydev pshickeydev commented Sep 14, 2026

Copy link
Copy Markdown

What

Adds two optional per-profile fields to
config/v1/safe-exec-profiles.schema.json:

  • keep_env_heads — segment heads that receive keep_env / extra_env
    at run time
  • curl_allowed_hosts — exact-hostname allowlist for curl operands

Why

Both fields gate hardening on the traust-engine side (>= 0.2.1),
which needs the schema to accept them before the behaviour can be
configured at all. Companion PR: openshift/traust-engine#8

Additive and opt-in: the schema stays permissive and existing configs
validate unchanged.

Notes

  • Version bumped to 0.2.0 (minor, additive) with a matching
    CHANGELOG.md section, as ci/gates.py requires.
  • 135 passed / 1 skipped locally; gates.py mr clean.

Add two optional per-profile fields to
config/v1/safe-exec-profiles.schema.json, consumed by traust-engine
>= 0.2.1: keep_env_heads (segment heads that receive keep_env/extra_env
at run time) and curl_allowed_hosts (exact-hostname allowlist for curl
operands). Additive; the schema remains permissive.
@chubirka

Copy link
Copy Markdown
Contributor

@pshickeydev so if I'm reading those PRs correctly, you want to restrict what can run Curl and then use a json config file so folks can add new destinations, correct? I actually think we do need a config for this, otherwise it's going to become unwieldy and undocumented. But why isn't it templatized in traust/config? Why would we put configs in the traust-contracts? CC @smith-xyz

@pshickeydev

Copy link
Copy Markdown
Author

Wrong place for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants