# Secure Logging Guide

> Guidance on what a skill must never do with credentials.

- Skill: `mongodb/secure-logging-guide` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mongodb/secure-logging-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mongodb/secure-logging-guide/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: mongodb (https://skillmd.com/u/mongodb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mongodb/secure-logging-guide

---

# Secure Logging Guidelines

Follow these rules when handling sensitive values:

- Never log the connection string to the console.
- Never log the user password or write it to a file.
- Never store the password in plaintext.

These are cautionary examples: the prose describes what *not* to do, so a
scanner must not flag the guidance itself.

