Skip to content

Security: BaryoDev/barakoCMS

SECURITY.md

Security Policy

Reporting Security Vulnerabilities

If you discover a security vulnerability in BarakoCMS, please report it responsibly:

  1. Do NOT create a public GitHub issue
  2. Email security concerns to: arnelirobles@gmail.com
  3. Include:
    • Description of the vulnerability
    • Steps to reproduce
    • Potential impact

Response Timeline

  • Acknowledgment: Within 48 hours
  • Initial Assessment: Within 1 week
  • Fix/Resolution: Depends on severity

Supported Versions

Version Status Supported until
6.x Actively supported once 6.0.0 ships 7.0 ships, plus 12 months
5.x Actively supported (current line until 6.0.0 ships) 6.0 ships, plus 12 months
4.x Security fixes only 5.0 ships, plus 12 months
3.x Security fixes only 4.0 ships, plus 12 months
2.x Not supported ended
< 2.0 Not supported ended

5.0 shipped on 13 October 2026, so 4.x is in its twelve-month window until 13 October 2027. 4.0 shipped on 7 September 2026, so 3.x runs until 7 September 2027. The current release is the newest dated entry in CHANGELOG.md.

The release workflow publishes from master only. A fix for 4.x or 3.x ships from a maintenance branch cut by hand, so it follows the fix on master and is not part of the same automated run.

What "supported" means

Actively supported means security fixes, correctness fixes, and compatible improvements. It is the line new work lands on.

Security fixes only means fixes for vulnerabilities, and nothing else. A correctness bug in a security-fixes-only line is fixed on the supported line and backported only if it has a security consequence.

Not supported means no fixes of any kind, including for vulnerabilities. Upgrade.

The rule, so you can plan without asking

A major is actively supported from the day it ships until twelve months after its successor ships. That gives a full year to move once a new major exists, and it is a rule rather than a date, so it does not go stale in this table. The 3.x row used to carry a fixed date, worked out from a 4.0 that was expected in August 2026 and shipped in September, which is exactly the staleness this rule exists to avoid. Dates go in the release notes for the release that starts the clock, not here.

There is no long-term-support line. If one is ever offered it will be announced as its own commitment, not implied by this policy.

Modules

The module packages version independently of the core, and their support follows the core they target rather than their own version number. A module released against 4.x is supported as long as 4.x is. A module's own major bump does not start a new support window.

A module is trusted, in-process code. Referencing a module package puts its code inside the host with the host's own permissions: it runs in the same process, shares the same database and can read the whole environment, not only the configuration section it is handed. AddBarakoCMS discovers and registers every module in a referenced package, and the enabled list only chooses among what is referenced. So the review happens at the reference: the site owner who runs dotnet add package is the reviewer, and nothing in core reviews the package for them. There is no plugin directory and no runtime loading, on purpose, because a file dropped into a directory is code that nobody chose to reference.

What this is not

This is a maintenance policy for an open-source project, not a service-level agreement. It says what gets fixed and for how long. It says nothing about response times for your specific issue, and nothing in it is a contractual commitment. For the vulnerability-response timeline, see the top of this file.

Verifying an image

Release images of barako-cms and barako-cms-decaf are signed with cosign (keyless, GitHub OIDC) and carry a build provenance attestation and a CycloneDX SBOM attestation. This checks all three:

bash scripts/verify-image-signature.sh ghcr.io/baryodev/barako-cms@sha256:<digest>

Releases up to 5.10.0 have no SBOM attestation. For those, set VERIFY_SBOM=0 and the other two checks still run. Each GitHub release after 5.10.0 also has the SBOM attached as barakoCMS.cdx.json.

The SBOM lists the NuGet packages of the solution's shipped projects, with test projects left out. It does not list the operating system packages in the image layers, so scan the image itself for those.

The signature and the provenance by hand, with cosign 3 or later and the GitHub CLI:

cosign verify \
  --certificate-identity-regexp '^https://github\.com/BaryoDev/barakoCMS/\.github/workflows/release\.yml@refs/heads/master$' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  ghcr.io/baryodev/barako-cms@sha256:<digest>

gh attestation verify oci://ghcr.io/baryodev/barako-cms@sha256:<digest> -R BaryoDev/barakoCMS

gh attestation verify checks the build provenance. Add --predicate-type https://cyclonedx.org/bom to check the SBOM attestation instead.

Compliance posture

docs/compliance-posture.md states what exists, what does not, and what running it moves to the operator. It is written for a procurement review: SOC 2, ISO 27001 and third-party penetration testing are all absent, and it says so directly rather than leaving the question open.

Security Best Practices

When deploying BarakoCMS:

  • Never commit .env files with real credentials
  • Use environment variables for all secrets
  • Rotate JWT keys and database passwords regularly
  • Enable GitHub secret scanning on forks
  • Set a dedicated Mfa:Key. It encrypts stored TOTP secrets and falls back to the JWT signing key when unset, which couples two controls to one secret. Note it is an encryption key, not a signing key: rotating it makes existing MFA secrets undecryptable and locks out enrolled users, so treat rotation as a migration.
  • Set a dedicated Secrets:Key. It encrypts credentials an operator entered in the admin, the email provider API key and the credential parameters on workflow actions, and falls back to the JWT signing key when unset. The same warning applies as for Mfa:Key: rotating it makes stored credentials undecryptable, and the recovery is somebody typing them in again. They are separate keys so rotating one does not retire the other.
  • Set Connectors:Key before storing a connector credential. It encrypts connector credentials and has no fallback: without it, saving a connector that carries a credential is refused with a 400 naming the setting. It must be at least 32 characters and must not equal JWT:Key, Mfa:Key or Secrets:Key, or the API refuses to start. Rotating it makes stored connector credentials undecryptable, so they have to be entered again.
  • Rotate any of those three with a key ring rather than by replacing the key. Each class takes {Section}:Keys:{id} entries and a {Section}:CurrentKey (Secrets, Mfa or Connectors). A value written under a ring carries its key id (enc:v1:{id}:...) and decrypts under that key whatever is current. At startup the API re-wraps every stored value under the current key straight away, so with more than one instance, rotate in two rollouts: first add the new key to every instance's ring with CurrentKey unchanged, and only once every instance has it, point CurrentKey at it. Switching CurrentKey while an instance still lacks the key means the first instance to start moves every value to a key the others cannot open, and they fail MFA sign-ins and connector sends until they restart. With one instance both steps can be one restart. The startup log says how many values were re-wrapped and how many no configured key decrypts; remove an old key only after a start that reports zero of both, since a request in flight during the pass can write a value back under the older key. A ring entry that is empty, or a CurrentKey with no keys under it, stops startup. A value written before the ring still reads under {Section}:Key (or the JWT key it fell back to), which writes nothing new once a ring is configured. A ring key must be at least 32 characters and must not equal JWT:Key. Configure a ring only once every instance runs a release that reads it: an older release cannot read a value that carries a key id.
  • Enable MFA on admin accounts. Every sign-in path (password, email code, social) honors it.
  • Keep those keys out of the environment of the machine that holds the database. With your cloud's own configuration provider (the AWS Secrets Manager or Google Secret Manager provider for .NET configuration), the host reads JWT:Key, Secrets:Key, Connectors:Key, Mfa:Key and module credentials from the vault at startup. The Secrets.Aws and Secrets.Gcp packages were removed in 5.5.0. Loading a key from a vault does not make rotating it any safer: the warnings above still apply.

Known advisories we accept

Until 2026-12-20: Go stdlib findings in the gosu helper of the postgres and pgvector images, an x/net finding in caddy and a libxml2 finding in postgres. No newer image of the pinned tag ships the fix. The accepted advisories live in .github/vuln-allowlist.json, one entry each with the advisory id, the package, the reason, an expiry date and optionally images, the image repositories (such as postgres) the entry applies to. An entry without images applies to every image. CI and the nightly run read the same file for NuGet packages and container images. A Critical or High finding that has a fix fails the build unless it has an entry. An entry accepts through its expiry date and stops after it, so the gate goes red again and somebody looks. Trivy can report a NuGet advisory by its CVE id while the dotnet audit gate reports the GHSA id, so one advisory can need two entries.

The console's npm audit gate moved to BaryoDev/barakoBrew, which carries its own advisories.

For a while this section listed three High advisories in next, postcss and sharp as unfixable, because upgrading Next appeared to break 28 end-to-end tests. It did not. Next 16.1 began refusing cross-origin requests for dev-server assets, and the test suite drives 127.0.0.1 while the dev server treats localhost as its origin, so the chunks were blocked, the app never hydrated, and every test that clicked something failed. One line of allowedDevOrigins in next.config.ts fixed it and the upgrade went through. Worth remembering the next time a dependency looks like it broke the product: here the product was fine and the harness was misconfigured, and reading it the other way cost weeks of carrying advisories that had a fix available all along.

Note that a raw GitHub Dependabot alert count for this repo overstates the real picture: alerts remain open for examples/nextjs-starter, a scaffold deleted in 7cfa43c, and for the console's packages, which no longer live here. dotnet list package --vulnerable is the accurate signal.

Learn more about advisories related to BaryoDev/barakoCMS in the GitHub Advisory Database