Skip to content

Credential injection / SecretSpec (--allow-dbus is too coarse for accessing system keyring) #10

Description

@sshine

--allow-dbus is meant to replace --allow-xdg-runtime for accessing the keyring, e.g. for gh CLI access because it stores the access token there. Unfortunately, giving access to the entire D-Bus and even the entire keyring is still grossly insecure.

Mature sandboxing systems use credential injection which in the Nix world translates to SecretSpec which also has a Keyring Provider.

Tasks:

  • Provide a happy path towards extracting the gh CLI authentication via SecretSpec
  • Investigate making an agent-proxy that is built into the CLI but runs outside the sandbox

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