Security policy
Karyo runs inside warehouses, where an inventory or access defect has physical consequences. Security reports take priority over feature work.
Reporting a vulnerability
Report it privately, and report it before you fix it or discuss it anywhere public.
Email the full report to [email protected]. The same address receives a conduct concern (CODE_OF_CONDUCT.md). This repository is private (README), so GitHub's researcher-facing "Report a vulnerability" form and a repository security advisory are unavailable. Leave the report out of an issue, pull request, discussion, commit message or branch name: the issue forms refuse a security report, and each of those is visible to every approved reader as soon as it is opened or pushed, and it stays in history after the fix ships.
The owner verified on 2026-10-20 that a message sent to [email protected] arrives (release readiness).
A report is most useful when it states:
- the affected version or commit, and which engine capability (if any) it involves;
- how the stack was deployed;
- the privilege the attacker starts from: unauthenticated, an authenticated user with a given role, an OPS or BUSINESS_UNIT_USER principal, a Business Unit user in a multi-unit instance, or an integrating system;
- the request or screen, the configuration involved, and the smallest reproduction you have;
- the impact you believe follows from it.
Remove real credentials, licence tokens, customer records and client values from anything you attach.
What counts as a security problem
Karyo is tenanted by silo, with Business Units inside one Company installation, so the sharpest edges are the ones that cross an isolation boundary. Identity and tenancy describes the real model. Treat these as reportable:
- Business Unit isolation failures. A positive
business_unit_ididentifies a Business Unit. Reading, writing or counting another unit's stock, orders, documents or journal entries is a security defect, not a filtering bug. Configuration key 0 is the Company layer; treating it as an administrator or a Business Unit row is a defect. - Authorization failures. Stored grants and
principal_kind(OPS or BUSINESS_UNIT_USER) are independent. Provider roles grant nothing. Missing claims use the stored principal's kind and affiliation. A claim that widens them, or a missing action check, is a defect. - Identity and token handling. Claim mappers drifting between the realm's token-issuing
clients, or between the development and production realms; the
karyo-adminuser-management identity reaching thekaryo-backendaudit identity's scope, or the reverse. - Licensing mixed into access. Karyo no longer uses licences
(ADR 0030).
A licence setting or
GET /api/v1/licensedeciding whether a request is allowed, or standing in for a role, owner-scope or principal-kind check, is a defect. The public verification key, kept for the signing tooling, has one home, inlibs/karyo-license; a second copy is a defect. - Audit integrity. Losing actor attribution on a background or scheduler path, or a stock mutation that should reach the inventory journal and does not.
- Secret exposure. A credential or private key committed to this repository, or a default that carries a usable credential into production.
- Vulnerable dependencies in what ships. Judged against the assembled application and its two
images, not against the whole dependency graph. The Quarkus platform is applied as an enforced
platform and overrides ordinary version constraints, so a dependency fix that does not go through
the root build's
securityFloorcan be silently undone.
Out of scope: findings that need access already equivalent to what they demonstrate; issues in a third-party dependency with no exploitable path through Karyo (report those upstream); and testing against an installation you do not operate without its operator's permission. There is no bug bounty.
Supported versions
Security fixes are made on main and ship at once in their own release, outside the
release schedule. Only the most recent release is
supported. Older releases are not patched; upgrading is the remediation.
What happens after you report
The maintainers acknowledge the report, assess whether it reproduces, and tell you what they intend to do. Until the fix is released, the detail stays in the private correspondence. The fix lands with a regression test that fails for the right reason on the old behaviour. When the fix is released you are credited unless you ask not to be credited.
Nobody weakens a gate, grants a role, resets a database or rotates a key to make a fix pass.
Deploying Karyo safely
Deploying Karyo describes the supported path, and the checks it
describes are load-bearing rather than advisory. The production realm ships with no human users and
no fixed credentials; the first administrator is provisioned from one-time bootstrap credentials
that must then be retired. A deployment sets KARYO_PUBLIC_ORIGIN to its real, credential-free
origin, keeps the realm's exact callback URLs rather than widening them into wildcards, and
terminates TLS in front of the stack.