Skip to content

Conversation

@mohsinm-dev
Copy link
Contributor

Fixes the incorrect directory name pattern in .dockerignore that could lead to credential exposure in Docker images.

The .dockerignore file contained an incorrect path pattern:

  • Incorrect: run-with-google-adk/google-mcp-security-agent/.env (hyphens)
  • Actual directory: run-with-google-adk/google_mcp_security_agent/ (underscores)

This mismatch caused .env files containing sensitive credentials to be included in Docker images.

Fixed the directory pattern and added comprehensive patterns to exclude all environment and credential files.

Resolves #192

Fix incorrect directory name pattern (google-mcp-security-agent -> google_mcp_security_agent)
and add comprehensive patterns to exclude environment and credential files.

Resolves google#192
@dandye dandye closed this pull request by merging all changes into google:main in b35db88 Nov 18, 2025
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.

Incorrect .dockerignore results in .env file being included in Docker image

2 participants