Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

netlify-plugin-lockzero

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-plugin-lockzero

Netlify Build Plugin — inject LockZero secrets into the build environment

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

netlify-plugin-lockzero

Netlify Build Plugin that injects LockZero secrets into your build environment before any build commands run.

Installation

Via Netlify UI

  • Go to your site → Plugins → search for LockZero.
  • Click Install.
  • Configure the inputs under Site settings → Build & deploy → Environment.

Via netlify.toml

[[plugins]]
package = "netlify-plugin-lockzero"

  [plugins.inputs]
  # Reference an env var so the key is never committed to source control
  apiKey     = "${LOCKZERO_API_KEY}"
  namespaces = "openai,stripe,database"
  prefix     = ""          # optional — e.g. "LZ_" to namespace injected vars

Add LOCKZERO_API_KEY in Netlify → Site settings → Environment variables.

Inputs

NameRequiredDefaultDescription
apiKeyYesLockZero API key (lz_live_…)
namespacesYesComma-separated namespaces to inject (e.g. openai,stripe)
prefixNo""Optional prefix for injected variable names (e.g. LZ_)

How it works

In the onPreBuild lifecycle hook the plugin:

  • Calls GET https://api.lockzero.io/api/credentials/:namespace for each configured namespace.
  • Writes each key=value pair directly into process.env so the build command can read them.
  • Fails the build immediately if any namespace fetch fails (prevents silent missing-secret failures).
  • Logs a summary: LockZero: Injected 12 secrets from openai, stripe.

Development

npm install
npm run build

To test locally with the Netlify CLI:

npm install -g netlify-cli
netlify build --dry

Keywords

netlify-plugin

FAQs

Package last updated on 10 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts