-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add note to submodules kata about security workaround #366
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,14 @@ This allows you to grab source changes directly, as well as _pushing_ them back. | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ## Setup | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| > NOTE: | ||||||||||||||||||||||||||||||||||
| > Unfortunately for us, 2.38.1 introduces a change (due to CVE-2022-39253) that disables git submodule add using the file protocol. | ||||||||||||||||||||||||||||||||||
| > as the setup script for this exercise relies on cloning a local repository, it will only work if you specifically allow this before running the script. | ||||||||||||||||||||||||||||||||||
| > `git config --global protocol.file.allow always` | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| > If you want to remove this "openening" afterwards, you should wait until you are done with the whole exercise, and then run: | ||||||||||||||||||||||||||||||||||
| > `git config --global --unset protocol.file.allow` | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+8
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Approve the addition of the Git security workaround note. The note clearly explains the necessary steps to adjust Git configuration due to the new security restriction. However, consider adding a warning about the potential security implications of enabling the Consider adding the following warning for clarity and safety: +> WARNING: Enabling `protocol.file.allow` globally can expose your system to security risks. Only enable this setting when necessary and ensure to revert it as described.Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| 1. Run `source setup.sh` (or `.\setup.ps1` in PowerShell) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| > NOTE: If running setup.sh on windows, you can run into problems by sourcing the setup script. Instead, run `./setup.sh`, and the folders would be created correctly. | ||||||||||||||||||||||||||||||||||
|
JKrag marked this conversation as resolved.
Outdated
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.