Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: Move npm CA file back to env variable #610

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Apr 1, 2024

Commit dbd7643 caused a regression: The cafile npmrc option only uses the given CA, while $NODE_EXTRA_CA_CERTS uses the given CA in addition. That broke fetching npm modules directly from github.com, which needs the system default CA lists.


Blocks cockpit-project/bots#6148 and also cockpit-project/bots#6160. See the former for debugging notes.

Commit dbd7643 caused a regression: The `cafile` npmrc option
*only* uses the given CA, while `$NODE_EXTRA_CA_CERTS` uses the given CA
*in addition*. That broke fetching npm modules directly from github.com,
which needs the system default CA lists.
@martinpitt
Copy link
Member Author

I rolled this out, retried the two bots tests, and they succeed now (at least they are past npm install at this time)

Copy link
Member

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh look, yaml!

👀

@allisonkarlitskaya allisonkarlitskaya merged commit dffc8d2 into main Apr 2, 2024
3 checks passed
@allisonkarlitskaya allisonkarlitskaya deleted the npm-ca branch April 2, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants