Repository navigation
fix: audit batch 2 (MCP base URL, cron, backup, enc:v2, federation, sbom, oa import) - #425
Merged
Merged
Conversation
…tion, sbom, oa import) - MCP metadata/challenge/OIDC audience no longer use the localhost BASE_URL default - cron */n in day fields counts as wildcard (Vixie) - backup pages all lists, streams restore, redacts nested secrets, fails loudly - secret scan redacted_value never reveals a prefix - webhook status writes, quota release bounded by timeouts; replication ctx; MCP limiter cap - server.shutdownTimeout 0 rejected - crypto: HKDF-derived enc:v2 for new secrets, enc:v1 still readable - federation, sbom, license, oa import fixes; deadline-free vuln test
Coverage
Go by area
Web by area (lines)
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audit batch 2 fixes, one branch.
Fixed
WWW-Authenticateresource_metadataand the OIDC audience no longer use thehttp://localhost:8080default whenBASE_URLis unset (RBACConfig.BaseURLremoved; metadata derives the origin from the request viapublicurl).*/nin a day field counts as a wildcard (Vixie); table tests.json.DecoderToken/More) and inserts incrementally.ReleaseNbounded timeout (promote refund goes through it). Promote's pre-commit quota charge leaking on crash is corrected by the cleanup worker's periodicReconcileAllStorageUsage; documented in a comment.redacted_valueis now****.creds/connStr/conn_str; unredactable config fails the backup.server.shutdownTimeout0 is rejected in validation.mergeStream.poptakes the caller ctx; MCP limiter has a hard bucket cap.enc:v2(HKDF-SHA256) for new encryptions;enc:v1still decrypts. Older binaries cannot readenc:v2(rollback note in upgrading + storage docs).hardening_test.goreplaced; the others are a deadline-polling interval and a fake scannersleepunder test.foo@, self-dependency bom-ref, WITH exceptions),oa import(unsafe asset paths, npm scan cap). No issues in webhook/publish, search, replication core/store, vuln osv_mirror/updater/trivy_sbom, archive extraction (nothing is extracted to disk).Skipped (reasoned): non-numeric version suffix ordering in
sbom/version.go(needs a real deb/rpm/PEP 440 comparator), license(A OR B) AND Cprecedence (over-denies only),vuln.UpdaterStop-then-Start (design).Design questions (not changed): backup exports password and token hashes; webhook
ssl_verify=false.Checks
make fmt, lint (0 issues), deadcode, dup, docs-check;
go test -race -short ./internal/... ./cmd/... ./tests/...; integration (throwaway Postgres): backup, promote, federation, quota, webhook, secrets.tests/integrationS3 round-trip needs a Garage endpoint (CI).