Skip to content

Launch-readiness docs: security incident runbook, env var sync, architecture, release process - #877

Merged
Akatenvictor merged 5 commits into
AudioBitsStellar:mainfrom
blackbutterflyy:docs/launch-readiness-866-869
Nov 25, 2026
Merged

Akatenvictor merged 5 commits into
AudioBitsStellar:mainfrom
blackbutterflyy:docs/launch-readiness-866-869

Conversation

@blackbutterflyy

Copy link
Copy Markdown
Contributor

Summary

Four launch-readiness documentation/DX issues from the Stellar Wave 11 batch:

  • Security incident runbook for credential and supply-chain compromise #866 (DOC-02) — docs/SECURITY_INCIDENT_RUNBOOK.md: credential inventory, a rotation checklist, supply-chain compromise handling, and a contacts section (this repo has no SECURITY.md/named contact yet, so it points at GitHub's private vulnerability reporting instead of inventing a name).
  • Sync .env.example, Dockerfile build args and docs/ENVIRONMENT_VARIABLES.md #867 (DOC-03) — syncs .env.example, the Dockerfile build ARGs and docs/ENVIRONMENT_VARIABLES.md, which had drifted (a stale/duplicated NEXT_PUBLIC_DYNAMIC_ENV_ID ARG, missing Stellar network vars, several documented-nowhere variables). Adds scripts/check-env-sync.mjs as an automated CI check (env-sync job in test.yml) so the three stay in sync going forward.
  • Architecture doc: listener, backend, chain and media data flow #868 (DOC-04) — docs/ARCHITECTURE.md: the listener/backend/chain/media lifecycle (auth, streaming, the two independent media paths, on-chain collection data, the AI quality gate), cross-linked from the README's existing architecture diagrams instead of duplicating them.
  • Release process and changelog hygiene #869 (DOC-05) — documents the release process (semantic-release via release.yml) and changelog hygiene in CONTRIBUTING.md, including which commit types actually trigger a release under the default preset and where the generated changelog ends up.

Each doc flags open questions as (verify) rather than asserting unconfirmed behavior, consistent with this repo's existing docs (e.g. api-contract.md).

Note for maintainers (not part of this PR's scope)

While validating these changes I found package-lock.json on main contains an unresolved git merge conflict (<<<<<<< HEAD / >>>>>>> 6ee986c, ~29 blocks) going back to the "Implement Stellar wallet integration" merge. It breaks npm ci for a clean checkout, and test.yml has been failing on every push to main since 2026-10-21 as a result. I didn't touch it here since it's unrelated to these four issues and resolving it correctly needs a maintainer call on which side's dependencies (e.g. @sentry/nextjs, which is imported in sentry.client.config.ts/instrumentation.ts but isn't in package.json at all) are the intended ones — happy to pick it up as a separate issue/PR if useful.

Test plan

  • node scripts/check-env-sync.mjs passes against the updated .env.example/Dockerfile/docs, and fails with a clear report when a variable is intentionally desynced (verified manually, then reverted).
  • Validated the edited package.json and .github/workflows/test.yml as valid JSON/YAML.
  • Checked docs/ENVIRONMENT_VARIABLES.md and CONTRIBUTING.md additions against prettier@3.6.2 (the pinned version) — no new formatting issues beyond what already exists on main.
  • Could not run npm run lint / npm test / the rest of the CI suite locally because npm ci fails on main due to the package-lock.json conflict noted above (pre-existing, not introduced by this PR).

Closes #866, Closes #867, Closes #868, Closes #869

…ompromise

Covers a credential inventory, a rotation checklist, supply-chain
compromise handling, and a contacts section pointing at GitHub private
vulnerability reporting since this repo has no SECURITY.md yet.

Closes AudioBitsStellar#866
…ES.md

.env.example was missing the Stellar network variables (NEXT_PUBLIC_
STELLAR_NETWORK and its four URL/passphrase overrides) even though
lib/stellarConfig.ts, lib/stellarNetwork.ts and friends already read
them. The Dockerfile carried a stale, duplicated NEXT_PUBLIC_DYNAMIC_ENV_ID
ARG/ENV pair that nothing in the source reads anymore, and was missing
NEXT_PUBLIC_FEATURE_ARTIST_PERKS and the five Stellar variables as build
ARGs, so a Docker build silently couldn't override them. Several
already-used variables (NEXT_PUBLIC_API_URL, NEXT_PUBLIC_SITE_URL,
NEXT_PUBLIC_MEDIA_HOST, NEXT_PUBLIC_IPFS_GATEWAY, NEXT_PUBLIC_API_MOCKING,
the Sentry variables, the playback-event variables) were never documented
in docs/ENVIRONMENT_VARIABLES.md.

Add scripts/check-env-sync.mjs and wire it into test.yml as a new
env-sync job so these three sources of truth can't drift out of sync
again silently.

Closes AudioBitsStellar#867
…a flow

Adds docs/ARCHITECTURE.md as the cross-cutting reference tying together
auth, streaming, the two independent media paths (backend CDN vs. IPFS
gateway), on-chain collection data, and the AI quality gate, with a
lifecycle walkthrough for each. Links out to the existing specialized
docs (api-contract.md, STELLAR_TRANSACTION_FLOW.md, IPFS_INTEGRATION.md,
LISTENER_WALLET_RELEASES_PLAYBACK.md) instead of duplicating them, and
cross-links from the README's existing Architecture Overview section.

Closes AudioBitsStellar#868
Explains the existing semantic-release pipeline in release.yml: which
Conventional Commit types trigger a release under its default
conventional-commits preset (notably that this repo's custom a11y and
security types do not, absent a .releaserc), that release notes land
as GitHub Releases rather than a committed CHANGELOG.md since no
changelog/git plugin is configured, and the one-conventional-commit-
per-PR hygiene that keeps those generated notes meaningful. Flags the
points a maintainer should verify (no releases observed yet, the
private-package / NPM_TOKEN tension) rather than asserting them as
confirmed behavior.

Closes AudioBitsStellar#869
@drips-wave

drips-wave Bot commented Nov 20, 2026

Copy link
Copy Markdown

@blackbutterflyy 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

@Akatenvictor
Akatenvictor self-requested a review as a code owner November 25, 2026 15:03
@Akatenvictor
Akatenvictor merged commit 590638c into AudioBitsStellar:main Nov 25, 2026
5 of 20 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

2 participants