Skip to content

Specify and check adherence to build phase command permissions #3

Description

@PappasBrent

Users should be able to specify what shell commands and sytem calls a build phase has permission to access, and use Foreman to check whether the phase follows these permissions.

For instance, to restrict a testing phase from using the head command, a user would write this:

[
  {
    "name": "test",
    "commands": [["make", "check"]],
    "permissions": {
      "command": {
        "restricted": ["head"]
      }
    }
  }
]

I imagine we could implement the checking functionality with strace.
We may want to start with only specifying system call permissions at first before moving on to arbitrary commands.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions