Skip to content

Marked /var/www as safe directory for Git#74

Merged
micszo merged 1 commit intomainfrom
add-git-safe-dir
Jul 5, 2023
Merged

Marked /var/www as safe directory for Git#74
micszo merged 1 commit intomainfrom
add-git-safe-dir

Conversation

@mnocon
Copy link
Copy Markdown
Contributor

@mnocon mnocon commented Jul 4, 2023

This PR solves the issues with the latest Docker images we had (ibexa/headless#3)

The newer images have newer Git version, which contains new security setting. More information:
https://github.blog/2022-04-12-git-security-vulnerability-announced/
https://stackoverflow.com/questions/71849415/i-cannot-add-the-parent-directory-to-safe-directory-in-git

Without marking the /var/www dir as safe the git operations fail (silently! which is the worst part) - and without a working git repository the recipes installation fails as well (recipes are not applied).

Tested in ibexa/headless#4

Copy link
Copy Markdown
Contributor

@micszo micszo left a comment

Choose a reason for hiding this comment

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

Thanks!

Don't we need it in 4.5.x-dev also? 🙂

@mnocon mnocon force-pushed the add-git-safe-dir branch from fa8b73b to a92b587 Compare July 4, 2023 13:21
@mnocon mnocon force-pushed the add-git-safe-dir branch from a92b587 to 38ec571 Compare July 4, 2023 13:23
@mnocon
Copy link
Copy Markdown
Contributor Author

mnocon commented Jul 4, 2023

Good catch, we do 😄 Added in 38ec571

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@micszo micszo merged commit b242c9b into main Jul 5, 2023
@micszo micszo deleted the add-git-safe-dir branch July 5, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants