Repository navigation
feat(plugins): add plugin store with install, lockfile and update - #1727
Open
developerkunal wants to merge 2 commits into
Open
developerkunal wants to merge 2 commits into
developerkunal wants to merge 2 commits into
Conversation
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
October 24, 2026 15:30
b1305ac to
d4fc42e
Compare
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 2, 2026 11:12
d4fc42e to
6aed7ae
Compare
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 2, 2026 19:35
5000141 to
456114d
Compare
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 24, 2026 11:33
456114d to
220bf76
Compare
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 24, 2026 12:03
220bf76 to
85ab3c0
Compare
bkiran6398
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 27, 2026 06:23
85ab3c0 to
a0246d8
Compare
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
November 30, 2026 17:24
a0246d8 to
7150366
Compare
Adds internal/plugins/store, which downloads a plugin archive from the signed registry index, verifies it, extracts it safely and records it in plugins.lock.json. Verify re-checks the installed binary and manifest before every run. The file lock moves into a shared filelock package, and engines evaluation and libc detection are added to the plugins package.
developerkunal
force-pushed
the
DXCDT-2603/plugin-store
branch
from
December 1, 2026 17:11
7150366 to
942c821
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
Adds
internal/plugins/store, which installs plugins from the signed registry index, records them in a lockfile and checks them again before they run. This is a library only, so nothing changes for users yet. The commands and process launching come in later PRs of the stack.On disk.
plugins.lock.jsonholds the active and previous version of each plugin, whether it is pinned, and the hashes of its files and permissions. A damaged lockfile is an error and is never replaced automatically. Each version lives understore/<registry>/<name>/<version>/with private permissions.Checked on install
enginesmust be met.plugin.json. Directories, links and unsafe names are rejected.plugin.jsonmust match the registry record, including the recomputed permissions hash, so the manifest that runs is the one the registry showed the user.Consent. A callback runs before the download when the plugin is new or its permissions hash differs from the active version, and a refusal stops the install. A nil callback proceeds, because approvals come in a later PR.
Versions. An exact version pins the plugin, and
UpdateAllskips pinned plugins.Updatenever moves backwards.Verify before every run.
Verifyhashes the binary and manifest against the lockfile, requires the version directory to hold only those two regular files, and checks that the consent hash still matches. On Unix it also refuses group or world writable files and extra hard links. It cannot close the gap between hashing and starting the binary.Existing code. The file lock moves into a shared
filelockpackage. Theenginescheck compares only theMAJOR.MINOR.PATCHcore, so>=1.39.0passes on beta builds, and adevCLI skips it.📚 References
DXCDT-2603. This is part of the plugin framework stack of 11 PRs and builds on the PR below it, DXCDT-2602.
🔬 Testing
The new code is covered by unit tests.
📝 Checklist