8000 fix(mfile): a Box Type's constraints can name keys no entry may set · Issue #4070 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(mfile): a Box Type's constraints can name keys no entry may set #4070

Backlog

Description

@agent-137

What happens

A Box Type's constraints table can name any key, including keys that #4067 stops accepting in an entry (for example restart or on_oom). Constraint keys are never validated, so a constraint on a key no box can set is silently meaningless.

[box_types.ci]
extends = "task"
[box_types.ci.constraints]
restart = "never"

Expected

Validate a type's constraints keys against the keys an entry may set. Refuse an unknown or removed key with exit 3, naming [box_types.<type>.constraints] and the key, with the same hint an entry gets.

Found while scoping #4067 (arch C2 on #4067).


This is a residual of epic #2236 (BOX).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0