Skip to content

Security: SysuMirror/skein

Security

SECURITY.md

Security policy

Reporting a vulnerability

Please report security issues privately — do not open a public issue.

  • Preferred: GitHub's private vulnerability reporting, Security → Advisories → Report a vulnerability on this repository (this keeps the discussion private and lets us credit you).
  • Or email security@example.com (placeholder — the maintainers will replace this with a real address).

Please include what you can: affected version or commit, a description, steps to reproduce, configuration that matters (login method, whether nodes are involved), the impact you see, and any suggested fix. We will acknowledge the report, agree on a timeline with you, fix it on a private branch, and publish an advisory once a release with the fix is out. Please do not disclose the issue publicly before that.

Supported versions

The project is at an early stage: fixes land on develop and go out with the next release from main. Run a released version, not a random snapshot.

Credentials in this repository

Nothing secret belongs in git. The deployment keeps its credentials in one environment file outside the repository (mode 600), listed here so operators know what exists:

What Where it lives Scope it should have
SKEIN_TOKEN control plane env file the master machine credential: machine calls to /internal/* and the management CLI. It is not a human login.
SKEIN_NODE_TOKEN control plane and node env files node registration and transcript upload only
SKEIN_GITHUB_TOKEN control plane env file fine-grained token: Contents: Read, Pull requests: Read and write on the repositories Skein opens PRs against
SKEIN_AUTH_CLIENT_SECRET control plane env file the external identity service's client secret, if its verify/revoke API needs one
SKEIN_AUTH_PROXY_SECRET control plane and ingress config proves identity headers came from the trusted proxy
SKEIN_LLM_KEY control plane env file the model gateway key used by the Router
connector keys (skein_ct_…) each connector's own environment only what the public API offers; one key per connector
node deploy keys each node, one per repository write access to that one repository only

If a credential leaks: rotate it, then rewrite history if it was committed. Connector keys are stored as SHA-256 only, so rotate them with skein connector rotate <name>.

What the platform protects

  • Separate credentials per job. Workers on a node never see SKEIN_TOKEN; they get their own HOME and worktree and cannot call the control plane. Connectors get their own key and cannot use the master token, dispatch, review, cancel, or read other connectors' tickets.
  • Humans and machines are distinct. A signed-in person is resolved by the deployment's external authenticator and carries a role (member < admin < owner); the master token is a machine identity and cannot act as a person where attribution matters (review and the Router chat).
  • No password store. Skein stores no passwords and issues no login sessions. The external identity system owns credentials, expiry and sign-out; configure http, headers or a plugin as described in docs/authentication.md.
  • Trusted headers need a trusted proxy. With SKEIN_AUTH_PROVIDER=headers, only expose the control plane behind an ingress that strips client-supplied identity headers and sends X-Skein-Auth-Secret; otherwise anyone could impersonate a user.
  • Optional routes stay off. Integrations and trace ingestion are mounted only when configured.

Out of scope

  • Vulnerabilities in third-party dependencies — report those upstream; we bump versions.
  • Anything that requires control-plane admin access, root on a node, or the master token to begin with (those are trusted by definition; tell us anyway if the impact is bigger than that trust implies).

There aren't any published security advisories