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

feat: (IAC-1476) DAC - Security scan 2024.06 #558

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

dhoucgitter
Copy link
Member

Update tools and cli version to remediate Critical and many High security vulnerabilities reported by the recent Aqua Scan, see full results in the internal ticket.

Final scan result has: 0 Critical, 18 High security vulnerabilities.

@dhoucgitter dhoucgitter added the enhancement New feature or request label Jun 17, 2024
@dhoucgitter dhoucgitter self-assigned this Jun 17, 2024
@@ -54,7 +54,7 @@ RUN pip install -r ./requirements.txt \
&& pip cache purge \
&& chmod -R g=u /etc/passwd /etc/group /viya4-deployment/ \
&& chmod 755 /viya4-deployment/docker-entrypoint.sh \
&& git config --system --add safe.directory /viya4-deployment
&& git config --system --add safe.directory /viya4-deployment ||:
Copy link
Contributor

Choose a reason for hiding this comment

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

Was the addition||: needed? Shouldn't we stop the Docker build if this command fails rather than ignoring the error?

Copy link
Member Author

@dhoucgitter dhoucgitter Jun 18, 2024

Choose a reason for hiding this comment

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

@jarpat, it is a change that I often make to allow building the docker image if the folder docker build is run from is not a first-class repository folder, ie. a work-tree folder. If that is the case, the git config --system command will fail but and the docker image will fail to create, however, since this line was added as a workaround to fix a git cli vulnerability in an earlier git version, it may be OK to completely remove this line now. I will do a quick search and post back, interested on your thoughts with doing that and what risk we might incur if any. I have run the resulting viy4-deployment container with that change in the past with no obvious ill effect.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that change is fine now that I'm aware of the reasoning behind it.

@dhoucgitter dhoucgitter merged commit 863fc72 into staging Jun 20, 2024
3 checks passed
@dhoucgitter dhoucgitter deleted the feat/iac-1476 branch June 20, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants