Skip to main content

Secure software development

This page describes the controls SeguridadSI applies to the development, verification, release and update of Sugardaddy: which controls run, at which stage of the lifecycle, and which conditions block a change. It applies to both editions, Community and Cloud. Vulnerability reporting is covered in Product security information.

Development lifecycle​

Every change follows the same stages before it reaches a node:

StageControls
DesignDesign record for every security-relevant feature (threat, decision, scope). Threat model per component.
Pre-pushGit hook: formatting, generated inventories and secret scanning (gitleaks) on the commits being pushed. A detected secret blocks the push.
Continuous integrationStatic analysis, dependency analysis, secret scanning and configuration analysis on every push to the main branch and on a nightly schedule.
ReleaseImages built from the exact commit and scanned with Trivy, signed, with SLSA provenance and SBOM. A release missing any of these artefacts, or with a critical vulnerability that has a fix, is not signed.
DeploymentThe node updater installs only versions with a valid signature, no older than the installed one, and recorded in the public transparency log.

The nightly schedule detects vulnerabilities disclosed after the code was last changed.

Continuous integration controls​

AreaToolBlocking condition
SCA: GogovulncheckA vulnerable function is reachable from the code
SCA: npmnpm auditHigh or critical advisory in production dependencies
SCA: all lockfilesosv-scannerAny advisory without an accepted exception
SASTsemgrep, with project-specific rules (SQL, shell, paths, HTML output)New high-severity finding
Secret scanninggitleaks, full Git historyAny finding without an accepted exception
CI/CD workflow analysiszizmorDangerous triggers, template injection, credential persistence, excessive permissions
Shell scriptsShellCheckError-level finding
DockerfilesHadolintError-level finding
Container imagesTrivy, before every release is signed and nightly against the image registryCritical vulnerability with an available fix, or an image that cannot be scanned

ShellCheck and Hadolint warnings are also resolved, or recorded next to the code with their justification. In the public repository, GitHub CodeQL analyses the code on every push and OpenSSF Scorecard assesses the supply-chain practices of the project every week.

The automated test suite (more than 3,000 tests) runs on every push. It includes a build of the Community edition from source, database migrations from an empty schema and a regression test for every security finding that has been fixed. Before each release, an end-to-end test bench installs a node and exercises its decoys. Container escape tests are run against the decoys under AppArmor and gVisor.

Exception management​

Advisories without an available fix, or whose fix requires a major version upgrade, and advisories that do not affect the product may be accepted as exceptions. Each exception is recorded with a justification and a review date. Once the review date has passed, the exception no longer applies and the control blocks the build again until it is reassessed. Accepted advisories are published with each release in a VEX document, so that customers can apply the same assessment in their own scanners.

CI/CD pipeline hardening​

  • Pinned actions. Third-party GitHub Actions are referenced by full commit SHA, with the version recorded in a comment. Mutable tags are not used.
  • Least privilege. Workflows declare read-only permissions by default; jobs request additional permissions explicitly. Git credentials are not persisted after checkout.
  • Untrusted code. Pipelines do not run on pull requests from forks. Jobs run on ephemeral runners: a new container per job, built from a base image pinned by digest.
  • Restricted egress. CI jobs reach the internet only through a filtering proxy that allows HTTPS to an explicit list of package registries and services. Any other destination is refused and logged.
  • Tool integrity. Analysis tools are installed at pinned versions and verified against their published checksums before execution.

Software supply chain​

  • Lockfiles for every ecosystem (npm, Go, Rust, Python). CI installs exactly the locked versions.
  • Base images referenced by digest (image@sha256:…), not by tag.
  • Release cooldown. Automated dependency updates (Renovate) are proposed only for versions published at least 7 days earlier, to reduce exposure to compromised packages. Security advisories are received through Dependabot alerts.
  • Install scripts disabled. npm package install scripts are disabled (ignore-scripts) on development workstations and in image builds.
  • Component update policy with remediation deadlines by severity, which also apply to third-party libraries and images distributed with the product.

Container security​

  • Node services run as non-root users, with seccomp and AppArmor profiles and the minimum set of privileges required. A generated inventory of the privileges of each container is verified in CI.
  • Decoys are isolated from the node and from one another. A decoy escape is handled as a vulnerability.

Release integrity​

  • Signatures. Every image is signed with cosign. Release signing keys are held in a hardware security module (HSM).
  • Provenance. Every image carries a SLSA v1 provenance attestation identifying the source commit and build. A release is signed only if the provenance of all its images matches that commit.
  • SBOM and VEX. From version 0.33.6, every release has a sbom-v<version> Release in the public repository containing a CycloneDX SBOM for each image and a VEX document. The SBOM is also attached to each image as a signed attestation.
  • Transparency log. Every release is recorded, with a timestamp, in a public append-only transparency log. Nodes reject releases that are not recorded in it.
  • Rollback protection. Nodes do not install a version older than the one installed, which prevents a downgrade to a version with known vulnerabilities.

Community users can verify the signatures of a release with despliegue/nodo/verificar-version.sh.

Vulnerability management​

  • Reporting through a private channel: email or GitHub private vulnerability reporting. The procedure is set out in the security policy; the same contacts are published in the security.txt file of the Sugardaddy website.
  • Acknowledgement within 5 business days.
  • Remediation deadlines, from report to signed release: 7 days for critical or actively exploited vulnerabilities, 30 days for high and 90 days for medium severity.
  • Security advisories are published in the public repository once a fix is released, and affected customers are notified directly.
  • Support period: security updates for at least 5 years from the publication of each version.