Skip to main content
Guardian
Docs
ChangelogFAQContact
Download
Guardian

AI-generated code governance for small engineering teams. Enforce team policies and approve releases with confidence.

Product

  • Changelog
  • Docs
  • FAQ
  • Contact

Resources

  • Getting Started
  • Security
  • Configuration
  • Guru AI
  • Monitoring

Legal

  • Privacy Policy

© 2026 Guardian Project. All rights reserved.

Designed & Developed bySenol Dogan

Secret Redaction | Guardian

Sections

Features

Guru: Release Decision AssistantProject MonitoringReviews & Fix ProposalsCLI ToolMCP Server

General

Getting Started

Operations

InstallationAuthenticationUpdatesConfigurationMigration Guide

Security

SecuritySecret Redaction

Support

Troubleshooting
Documentation

Secret Redaction

How Guardian protects secrets and PII before AI analysis

Overview

Guardian automatically detects and masks sensitive data before sending code to any AI provider. This runs both in the desktop app and CLI.

Protected Patterns (19+)

API Keys

PatternExampleRedacted As
OpenAIsk-abc...xyz[REDACTED_OPENAI_KEY]
OpenAI Projectsk-proj-abc...[REDACTED_OPENAI_KEY]
Anthropicsk-ant-abc...[REDACTED_ANTHROPIC_KEY]
GitHub Tokenghp_abc..., gho_, ghu_, ghs_[REDACTED_GITHUB_TOKEN]
GitHub PATgithub_pat_abc...[REDACTED_GITHUB_TOKEN]
AWS Access KeyAKIA0123456789ABCDEF[REDACTED_AWS_ACCESS_KEY]
GCP API KeyAIzaSyABC...[REDACTED_GCP_KEY]
Stripesk_live_abc..., sk_test_abc...[REDACTED_STRIPE_KEY]
Slack Tokenxoxb-abc..., xoxp-, xoxa-[REDACTED_SLACK_TOKEN]
npm Tokennpm_abc...[REDACTED_NPM_TOKEN]

Structured Secrets

PatternDescription
Private KeysPEM blocks (-----BEGIN...PRIVATE KEY-----)
JWTBase64-encoded JWT tokens
KV Secretsapi_key = "...", token: '...'
Database URLspostgres://, mysql://, mongodb://

PII

PatternDescription
EmailAny email address
Phone (E.164)International format
Phone (NANP)North American format
Phone (TR)Turkish mobile numbers

Sensitive File Detection

Files with these names or extensions are automatically excluded from AI analysis:

  • .env, .env.local, .env.production
  • .key, .pem, .p12, .pfx
  • id_rsa, id_ed25519, credentials, secrets

Configuration

Redaction is always-on and cannot be disabled. This is a security design decision — Guardian will never send unredacted secrets to any AI provider.

On This Page

OverviewProtected Patterns (19+)API KeysStructured SecretsPIISensitive File DetectionConfiguration