Skip to content

allowMissing for Infisical#878

Merged
theoephraim merged 1 commit into
mainfrom
feature/allowmissing-infisical
Jul 11, 2026
Merged

allowMissing for Infisical#878
theoephraim merged 1 commit into
mainfrom
feature/allowmissing-infisical

Conversation

@philmillman

Copy link
Copy Markdown
Member

Summary

Adds allowMissing to @varlock/infisical-plugin, matching the behavior already shipped for 1Password in #586.

Closes #875.

When allowMissing is truthy, Infisical 404 / not-found errors resolve to undefined instead of throwing. That makes optional Infisical-backed secrets work with Varlock's normal composition tools (fallback(), @required=false, forEnv(), etc.). Auth failures, permission errors, and other non-not-found errors still throw.

  • infisical(allowMissing=true) — per-call override
  • @initInfisical(allowMissing=...) — instance-level default (supports dynamic values like forEnv(development))
  • Per-call allowMissing overrides the instance default

Example

# @initInfisical(
#   projectId=$INFISICAL_PROJECT_ID,
#   environment=dev,
#   clientId=$INFISICAL_CLIENT_ID,
#   clientSecret=$INFISICAL_CLIENT_SECRET
# )
# ---

# Optional provider secret: use Infisical when present, otherwise undefined
RESEND_API_KEY=fallback(infisical(allowMissing=true), undefined)

@github-actions

Copy link
Copy Markdown
Contributor

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/infisical-plugin 2.0.1 → 2.1.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
varlock-website 24af6bb Commit Preview URL

Branch Preview URL
Jul 11 2026, 02:41 PM

@pkg-pr-new

pkg-pr-new Bot commented Jul 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@varlock/infisical-plugin@878

commit: 24af6bb

@theoephraim

Copy link
Copy Markdown
Member

lgtm - we may want to think about solving this in a more generalized way rather than per plugin, but it might be hard to do that... So likely just doing it per plugin for now

@theoephraim theoephraim merged commit a5614c3 into main Jul 11, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] allowMissing for Infisical plugin (infisical() / @initInfisical)

2 participants