Skip to content

Service: redact database password in startup log, publish sha image tag - #34

Merged
kevinelliott merged 1 commit into
mainfrom
claude/project-thread-xlxhmp
Nov 14, 2026
Merged

kevinelliott merged 1 commit into
mainfrom
claude/project-thread-xlxhmp

Conversation

@kevinelliott

@kevinelliott kevinelliott commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Kevin · project thread

Summary

Preparation for running the coverage service in production (stack definition is in airframesio/stack).

  • The startup banner printed DATABASE_URL verbatim, password included. It now prints postgres://user:***@host/db. Staging never hit this because it sets no database URL.
  • The Docker Push job now also tags ghcr.io/airframesio/coverage-service:sha-<commit>, so production can pin an immutable image. :latest is unchanged, so staging keeps working as before.

Verification

  • npm run typecheck and npm test (14 tests) pass in service.
  • The redaction was checked against a URL with a password and one without.
  • The new tag only takes effect on the push to main, so it is not exercised by this PR's CI.

Screenshots

None: a log line and a CI tag, no UI.


Generated by Claude Code


Note

Low Risk
Log redaction and an extra CI image tag only; no auth, data, or runtime behavior changes beyond safer logging.

Overview
Hardens production prep for the coverage service with two small operational changes.

Startup logging no longer prints the full DATABASE_URL. The banner now masks credentials (e.g. postgres://user:***@host/db) via a regex on the connection string, so passwords don’t appear in logs.

Docker publish on main still pushes ghcr.io/airframesio/coverage-service:latest and additionally tags sha-${{ github.sha }}, giving deployments an immutable image reference while staging can keep using :latest.

Reviewed by Cursor Bugbot for commit 408bf58. Bugbot is set up for automated code reviews on this repo. Configure here.

The startup banner printed DATABASE_URL verbatim, including the password.
CI now also pushes coverage-service:sha-<commit> so production can pin an
immutable tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PS44Q7WRmAzMJLhi44dzdo
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2338f7d-a805-49ae-ac7b-f3967c1dc538
Commits

Reviewing files that changed from the base of the PR and between 27ef8e6 and 408bf58.

Files selected for processing: 2

  • .github/workflows/service.yml
  • service/src/index.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kevinelliott kevinelliott self-assigned this Nov 14, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying airframes-coverage with  Cloudflare Pages  Cloudflare Pages

Latest commit: 408bf58
Status: ✅  Deploy successful!
Preview URL: https://70007406.airframes-coverage.pages.dev
Branch Preview URL: https://claude-project-thread-xlxhmp.airframes-coverage.pages.dev

View logs

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Cursor Bugbot completed successfully with no findings that need human review, so this change meets the approval criteria.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kevinelliott
kevinelliott merged commit c174921 into main Nov 14, 2026
10 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.

2 participants