Skip to content

"Read(~/.ssh/**)" too restrictive? #36

Description

@compojoom

I was wondering from security perspective - isn't "Read(~/.ssh/**)" too restrictive? We want to protect accidental key leakage, but with this rule we also prevent reading known_hosts.

and known_hosts is necessary if one wants to do "git push". In sandbox mode my process dies with:

The push failed due to a sandbox restriction on reading ~/.ssh/known_hosts. Let me retry without the sandbox.

What about something like this:

      "Read(~/.ssh/id_*)",
      "Read(~/.ssh/config)",
      "Read(~/.ssh/authorized_keys)",

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions