Skip to content

fix(security): 2 improvements across 2 files#5031

Open
tomaioo wants to merge 2 commits into
adcontextprotocol:mainfrom
tomaioo:fix/security/hardcoded-database-credentials-in-script
Open

fix(security): 2 improvements across 2 files#5031
tomaioo wants to merge 2 commits into
adcontextprotocol:mainfrom
tomaioo:fix/security/hardcoded-database-credentials-in-script

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 26, 2026

Summary

fix(security): 2 improvements across 2 files

Problem

Severity: Critical | File: scripts/gen-member-illustrations.ts:L6

Multiple scripts contain hardcoded PostgreSQL connection strings with plaintext credentials (postgresql://adcp:localdev@localhost:62576/adcp_registry). These credentials are embedded directly in source code rather than being loaded from environment variables or a secrets manager, making them visible in version control and accessible to anyone with repository access.

Solution

Move all database credentials to environment variables (e.g., process.env.DATABASE_URL) and validate their presence at runtime. Use a shared configuration module that enforces secure credential loading.

Changes

  • scripts/gen-member-illustrations.ts (modified)
  • scripts/regen-illustrations.ts (modified)

tomaioo added 2 commits May 25, 2026 23:21
- Security: Hardcoded Database Credentials in Scripts
- Security: Hardcoded Database Credentials in Regen Script

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
- Security: Hardcoded Database Credentials in Scripts
- Security: Hardcoded Database Credentials in Regen Script

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@aao-ipr-bot
Copy link
Copy Markdown

aao-ipr-bot Bot commented May 26, 2026

IPR Policy Agreement Required

@tomaioo — thanks for the contribution. Before this PR can be merged, the AgenticAdvertising.Org IPR Policy requires your agreement.

To agree, post a new comment on this PR with the exact phrase:

I have read the IPR Policy

Your signature is recorded once and covers all contributions to AAO repositories. See signatures/README.md for what gets recorded and why.

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.

1 participant