Skip to content

Configuration Profiles

Use profiles to switch between configurations.

Defining Profiles

# oxideshield.yaml
profiles:
  development:
    guards:
      pattern:
        enabled: true
        severity_threshold: low
    logging:
      level: debug

  production:
    guards:
      pattern:
        enabled: true
        severity_threshold: high
    logging:
      level: warn

  testing:
    guards:
      pattern:
        enabled: false

Using Profiles

# Environment variable
export OXIDESHIELD_PROFILE=production

# CLI flag
oxideshield guard --profile production --input "test"