Skip to content

feat: implement secure defaults audit as release checklist gate (#797) - #887

Merged
Nanle-code merged 2 commits into
Nanle-code:masterfrom
JemimahEkong:feat/issue-797-secure-defaults-audit
Aug 31, 2026
Merged

feat: implement secure defaults audit as release checklist gate (#797)#887
Nanle-code merged 2 commits into
Nanle-code:masterfrom
JemimahEkong:feat/issue-797-secure-defaults-audit

Conversation

@JemimahEkong

Copy link
Copy Markdown
Contributor

Closes #797

Summary

Adds a formal secure-defaults audit that runs in CI on every push/PR and gates release tagging, backed by automated checks plus a maintainer attestation checklist for the items that can't be verified by code alone.

What was implemented

  1. SECURE_DEFAULTS_AUDIT.md — 15 automated checks (A1–A15) verified by CI, plus 8 manual attestation items (M1–M8) requiring maintainer sign-off, with an attestation template and release process integration instructions.

  2. tests/secure_defaults_audit.rs — 20+ automated tests covering:

Category Checks
Telemetry Opt-out respected, local-only (no network code), env var override
AI Telemetry Cloud aggregation disabled, cloud endpoint empty, env var override
Feature Flags Metrics enabled, retention capped at 30 days
Friendbot Absent on mainnet, present on testnet, absent on docker-testnet
Network Default is testnet, passphrases validated, HTTPS on public networks
Plugin Trust Sources restricted to known repos, HTTPS only
Wallet Security Encryption opt-in (default None)
Config Schema version current
File Permissions Source check for 0600 mode
  1. CI Integration:

    • secure-defaults job in .github/workflows/ci.yml — runs on every push/PR
    • secure-defaults gate in .github/workflows/release.yml — blocks release tagging until audit passes
  2. Documentation Updates:

    • CI_ENFORCEMENT.md — job description, regression table, merge requirements
    • CONTRIBUTING.md — audit command in code quality checks
    • CONTRIBUTOR_QUICK_REFERENCE.md — quick reference table, CI pipeline list

…e-code#797)

Add automated tests and documentation verifying that StarForge ships with
privacy-respecting, secure defaults before each release.

- Add `SECURE_DEFAULTS_AUDIT.md` with full checklist (automated + manual)
- Add `tests/secure_defaults_audit.rs` with 20+ automated checks covering:
  - Telemetry opt-out and local-only guarantees
  - AI telemetry cloud disabled by default
  - Friendbot restricted to testnet only
  - Default network is testnet
  - Plugin trust sources restricted to known repos
  - Wallet encryption is opt-in
  - File permissions restricted (0600)
  - Network passphrases validated
- Add `secure-defaults` CI job to `.github/workflows/ci.yml`
- Add `secure-defaults` gate to `.github/workflows/release.yml` (blocks release tagging)
- Update `CI_ENFORCEMENT.md` with job documentation and merge requirements
- Update `CONTRIBUTING.md` and `CONTRIBUTOR_QUICK_REFERENCE.md` with audit commands

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@JemimahEkong Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Manuelshub

Copy link
Copy Markdown
Collaborator

@JemimahEkong Please resolve conflict!!!

1 similar comment
@Manuelshub

Copy link
Copy Markdown
Collaborator

@JemimahEkong Please resolve conflict!!!

@JemimahEkong

Copy link
Copy Markdown
Contributor Author

@Manuelshub conflicts resolved. kindly review

@Nanle-code
Nanle-code merged commit 00dcd99 into Nanle-code:master Aug 31, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Advancement] Implement secure defaults audit as a release checklist gate

3 participants