Repository navigation
feat(plugins): add plugin dev link and validate - #1735
Open
developerkunal wants to merge 1 commit into
Open
developerkunal wants to merge 1 commit into
developerkunal wants to merge 1 commit into
Conversation
developerkunal
force-pushed
the
DXCDT-2618/dev-link-validate
branch
from
October 24, 2026 15:30
e0f9e19 to
25df839
Compare
developerkunal
force-pushed
the
DXCDT-2618/dev-link-validate
branch
from
November 2, 2026 11:12
25df839 to
943d688
Compare
developerkunal
force-pushed
the
DXCDT-2618/dev-link-validate
branch
from
November 2, 2026 14:31
943d688 to
8c0ed25
Compare
- add `auth0 plugin dev validate` to check a plugin.json offline and list every problem with its path - add `auth0 plugin dev link` and `unlink` to run a local build as `auth0 <name>` in dev mode - run a linked plugin through the same proxy, scope enforcement and approval as an installed one, and ask for approval again when its permissions change - skip only the file hashes, the lockfile and the revocation list for a linked plugin, and print one line on stderr for every linked run - keep linked runs out of telemetry and mark linked plugins in `plugin list` and `plugin info` - store the links in `dev-links.json`, read only in dev mode and ignored when it is damaged - share the plugin ID check between the store and `dev validate`
developerkunal
force-pushed
the
DXCDT-2618/dev-link-validate
branch
from
November 2, 2026 19:40
8c0ed25 to
10645f4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
This adds
auth0 plugin dev validate,linkandunlink, so a plugin author can check aplugin.jsonoffline and run a local build asauth0 <name>before the plugin is published.The
devcommands are hidden and theplugingroup is left out of the generated docs, sodocs/does not change. They work only withAUTH0_CLI_PLUGIN_DEV_MODE=true. Only the exact valuetrueturns dev mode on, because this mode lets a plugin run without file verification. Without it the commands fail withplugin_dev_mode_requiredand links are ignored.auth0 plugin dev validate [path]plugin.json, or the file itself) the way it is checked when a plugin is published, and lists every problem with the path of its field. It also checks that the name does not collide with a core command, and with--binthat the executable can be run.--jsonand--json-compact, and fails withplugin_manifest_invalidon problems.auth0 plugin dev link [path]andunlink <plugin>linkvalidates the manifest and the executable (by default the file named like the plugin, or--bin), then records the link. A link that cannot be made fails withplugin_link_invalid.unlinkremoves the link, and fails withplugin_not_linkedwhen there is none.How a linked plugin runs
plugin approvenow also works for a linked plugin.Listing and info.
plugin listandplugin infomark linked plugins, andlinkedis a new boolean field in their JSON output. A plugin that is linked but not installed is described from its manifest.Storage. Links live in
dev-links.jsonin the plugins directory, with absolute paths and atomic writes, and the file is read only in dev mode. A damaged file registers no links and is never replaced automatically.The plugin ID rules that the store already used are now exported so
dev validateshares them.📚 References
DXCDT-2618. Part of the plugin framework stack of 11 PRs, and it builds on the PR below it, DXCDT-2610.
🔬 Testing
The new code is covered by unit tests.
📝 Checklist