Repository navigation
PFM-ISSUE-34294 - Research and design for the runtime-generated .npmrc and DOT_NPMRC cutover - #193
Open
vladimir-arsov wants to merge 3 commits into
Conversation
…npmrc and DOT_NPMRC cutover Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…T_NPMRC becomes a deprecated fallback use-npmrc delegates to write-npmrc.sh: with jfrog-token it writes the cplace-npm virtual as registry plus the token as _authToken; with only dot-npmrc it writes that content with a deprecation warning; with neither it fails before npm ci. fe-install-deps passes both secrets, both optional. pr-checks runs shellcheck and bats over the new script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… templates and README drop DOT_NPMRC All eight reusables that run use-npmrc declare JFROG_TOKEN and DOT_NPMRC as optional and pass both; fe-release-flow's nested install-deps gets both. write-npmrc.bats covers every input case, whitespace tokens, overwrite and mode 600. The templates pass JFROG_TOKEN and no DOT_NPMRC; the README documents JFROG_TOKEN as the install credential (read on the cplace-npm virtual), marks DOT_NPMRC deprecated and adds the migration steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vladimir-arsov
requested review from
alekhya-cplace,
senthanal and
slaven3kopic
as code owners
December 3, 2026 16:07
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.
Relates to PFM-ISSUE-34294 and PFM-ISSUE-33675
Specs only, no workflow or code changes. The implementation follows in later PRs.
Summary
This PR adds the research and design for replacing the stored
DOT_NPMRCsecret with a~/.npmrcthat is generated while the workflow runs. Both documents are underspecs/2026-12-01_PFM-ISSUE-34294_jfrog-npmrc-secret-cutover/.Key design decisions:
JFROG_TOKENis used for both installing and publishing. No separate read secret is introduced, and 33675 AC1 and AC3 (separate read and publish secrets) are dropped on purpose.use-npmrcis rewritten in place: it writesregistry=and_authTokenfor thecplace-npmvirtual into~/.npmrc, with the URL taken from the committedJFROG_NPM_PROXYconstant. It keeps thereplace-registry-host=neverline and the foreign-registry warning.JFROG_TOKENis passed, it wins. If onlyDOT_NPMRCis passed, it is used as a fallback with a deprecation warning. If neither is passed, the job fails with an explicit error. This mirrors the 34293 pattern.DOT_NPMRCreference once callers have migrated. Release branches pin their ownuse-npmrc, so they are not affected. Deleting the repo secrets is left to a separate cleanup ticket.clone-cplace-fe, thencplace-remote-filesystem-feandcplace-project-planning-feas the reference repos.Developer Checklist:
to Guidelines (specs only, no changelog entry)
🤖 Generated with Claude Code