mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
The supply-chain section said the publish workflow runs on every push to main. That trigger was removed in v1.4.34, when the squash-merge and the release tag each kicked off their own build of the same SHA; the workflow has fired on v* tags only since. Pull requests still build the image, and do not publish it.
76 lines
3.1 KiB
Markdown
76 lines
3.1 KiB
Markdown
# Security Policy
|
|
|
|
## Supported Versions
|
|
|
|
Only the latest release on the `main` branch is actively supported with security updates.
|
|
|
|
| Version | Supported |
|
|
| ------- | --------- |
|
|
| Latest | Yes |
|
|
| Older | No |
|
|
|
|
## Reporting a Vulnerability
|
|
|
|
If you discover a security vulnerability, please report it responsibly.
|
|
|
|
**Do not open a public GitHub issue for security vulnerabilities.**
|
|
|
|
Instead, send an email to **security@bombeck.io** with:
|
|
|
|
- A description of the vulnerability
|
|
- Steps to reproduce
|
|
- Potential impact
|
|
- Suggested fix (if any)
|
|
|
|
## Response Timeline
|
|
|
|
- **Acknowledgement**: Within 72 hours
|
|
- **Initial assessment**: Within 1 week
|
|
- **Fix and disclosure**: Coordinated with reporter, typically within 30 days
|
|
|
|
## Scope
|
|
|
|
The following are in scope:
|
|
|
|
- Authentication and session management
|
|
- Data encryption and secret handling
|
|
- API authorization and access control
|
|
- Cross-site scripting (XSS), CSRF, and injection vulnerabilities
|
|
- Information disclosure
|
|
|
|
Out of scope:
|
|
|
|
- Denial of service attacks
|
|
- Social engineering
|
|
- Vulnerabilities in third-party dependencies (report upstream)
|
|
- Issues requiring physical access to the server
|
|
|
|
## Security Architecture
|
|
|
|
HealthLog is designed with security as a core principle:
|
|
|
|
- **Passkey-first authentication** (WebAuthn/FIDO2) with password fallback
|
|
- **AES-256-GCM encryption** for all stored secrets (OAuth tokens, API keys, VAPID keys)
|
|
- **Argon2id** password hashing with zxcvbn strength validation
|
|
- **HMAC-SHA256** hashed API tokens
|
|
- **Server-side sessions** in PostgreSQL (HttpOnly, SameSite=Strict, 30-day sliding expiry)
|
|
- **Rate limiting** on authentication and external-facing endpoints
|
|
- **Security headers**: CSP with nonces, HSTS, X-Frame-Options DENY, Permissions-Policy
|
|
- **Proxy-level route protection** via `proxy.ts` (session cookie validation on all non-public paths)
|
|
|
|
For more details, see the [security documentation](https://docs.healthlog.dev/security/overview/).
|
|
|
|
## Supply Chain
|
|
|
|
HealthLog Docker images are built and published from this repository's CI:
|
|
|
|
- **Source**: [`.github/workflows/docker-publish.yml`](.github/workflows/docker-publish.yml) — publishes on every `v*` tag; pull requests build the image without publishing it
|
|
- **Registry**: [`ghcr.io/mbombeck/healthlog`](https://github.com/MBombeck/HealthLog/pkgs/container/healthlog)
|
|
- **Architectures**: `linux/amd64` and `linux/arm64`
|
|
- **Provenance attestation**: each image carries a [SLSA build provenance](https://slsa.dev/spec/v1.0/provenance) statement linking it back to the GitHub Actions run, the commit SHA, and the workflow definition
|
|
- **SBOM**: each image includes a [Software Bill of Materials](https://docs.docker.com/build/metadata/attestations/sbom/) you can inspect with `docker buildx imagetools inspect ghcr.io/mbombeck/healthlog:latest --format '{{ json .SBOM }}'`
|
|
|
|
To pin to a specific version in production, replace `:latest` with the released tag in your `docker-compose.yml`, e.g. `ghcr.io/mbombeck/healthlog:1.3.2`. Pinning is recommended for self-hosters who want explicit control over upgrades.
|
|
|
|
If you discover a tampered or unexpected image, please report it as a vulnerability via the email above.
|