WP Manifestindependent plugin directory
manifest / security / ai-connector-secure-layer

AI Connector Secure Layer

Keeps LLM API keys out of the WordPress database. Fetches keys from Pantheon Secrets or environment variables on-demand at the moment an LLM request fires — never stored in wp_options, never pre-loaded as a PHP constant.

by Chris Reynolds · github.com/jazzsequence/ai-connector-secure-layer · website

0stars
7.6kcomposer installs
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/jazzsequence/ai-connector-secure-layer/releases/download/1.0.0/ai-connector-secure-layer-1.0.0.zip

Also on Packagist as jazzsequence/ai-connector-secure-layer:

composer require jazzsequence/ai-connector-secure-layer

From the readme

AI Connector Secure Layer Keeps LLM API keys out of the WordPress database. Works with WordPress 7.0 AI Connectors and Pantheon Secrets. The problem WordPress 7.0 AI Connectors store API keys in wpoptions by default. A database dump, SQL injection, or any plugin vulnerability that exposes the database immediately exposes every API key on the site — with no active session required. How this plugin works Instead of storing keys in the database, the plugin fetches them on-demand from Pantheon Secrets (or environment variables) at the exact moment an LLM HTTP request is made — and only then. What this protects against: - Database dump — no key is ever written to wpoptions - Broad PHP execution — no PHP constant is defined; the key is not in any global - Idle requests — key only exists in memory during an active LLM API call What this does not protect against: - An attacker with PHP code execution who knows to call pantheongetsecret() directly can still retrieve the key. No server-side architecture can prevent this: the key must be available to PHP when the LLM call is made. See the detailed threat model notes in the Security Model section. Requirements - WordPress 7.0+ - PHP

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.0 May 27, 2026 ai-connector-secure-layer-1.0.0.zip 0