Skip to content

Support environment variables or secrets for PostHog integration API key #609

@tamerc

Description

@tamerc

Hi Mintlify team 👋

I’m adding a PostHog integration and following the documentation provided. The current setup requires including the apiKey directly in the config:

"integrations": {
  "posthog": {
    "apiKey": "YOUR_POSTHOG_PROJECT_API_KEY",
    "apiHost": "optional"
  }
}

I’d like to avoid committing the API key to source control for security reasons. Is there a way to use environment variables or a secrets manager to reference the key instead of hardcoding it?

If this isn’t currently supported, I’d love to request this as a feature — it would be really helpful for teams trying to keep secrets out of versioned configs.

Thanks for the great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions