-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Use --insecure to download ca-certificates
source where necessary
#12172
Conversation
Review period skipped due to |
21ec17d
to
babc97e
Compare
@Bo98 Maybe provide some big warning here? |
Given the user can do nothing about it, I'm not sure what that will really add. We don't warn when using plain HTTP mirrors, and we still verify the download via sha256 checksumming. |
I think it's good practise to let them know that we are passing |
Oh right a notification type rather than "you're doing something bad". |
@Bo98 Yeh, something like |
Maybe error out too if I'm on old macOS and have |
|
Makes sense, yea 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks. Feel feel free to create a release when this stuff drops 👍🏻
"because we need it installed to download securely." | ||
@insecure_warning_shown = true | ||
end | ||
args += ["--insecure"] if meta[:insecure] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args += ["--insecure"] if meta[:insecure] | |
args += ["--insecure"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, will fix that.
This is no longer necessary as of Homebrew/brew#12172.
This is no longer necessary as of Homebrew/brew#12172. Closes #86415. Signed-off-by: Bo Anderson <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
opoo "Using --insecure with curl to download `ca-certificates` " \ | ||
"because we need it installed to download securely." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think it's required (and it might be too late anyway) but I wonder if it's worth adding a line that says something letting the user know that checksums are still being checked. I worry that this reads too much like "hey we're going to download some stuff that might not be safe we don't know 🤷" when in reality we're a lot more confident that this is actually going to be okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree: #12182
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?We've not been able to provide a HTTP mirror for this, so the second best solution is to pass
--insecure
while downloading, so it can indeed be downloaded when system CA certs are broken.