aube doesn't handle nexus auth #519
|
Our .npmrc looks like: Where those are all environment variables set by sops and configure nexus. npm works fine, and |
Replies: 3 comments
|
#179 looks similar, and we do have quotes around the token, but removing the quotes does not change the outcome. Running at |
|
Confirmed — thanks for the clear repro. The issue is that aube's registry=${NEXUS_NPM_URL}
${NEXUS_NPM_AUTH_URL}:_auth=${NEXUS_NPM_TOKEN}
Fix is up at #521 — one-line change to also expand env vars in keys, plus a regression test using the same Nexus-style key shape. Should ship in the next release. If you'd like to verify locally before that, building This comment was generated by Claude. |
|
works in the latest version, thanks |
Confirmed — thanks for the clear repro. The issue is that aube's
.npmrcparser only ran${VAR}substitution on the value side of each line; pnpm/npm both expand${VAR}on keys and values. With your config:registry=...worked because the value was expanded, so aube found the right host. But${NEXUS_NPM_AUTH_URL}:_auth=...landed in the auth map under the literal${NEXUS_NPM_AUTH_URL}placeholder, so when aube went to fetch tarballs from your real Nexus host the per-URI lookup missed and the request went out unauthenticated → 401.Fix is up at #521 — one-line change to also expand env vars in keys, plus a regression t…