Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
reposync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
cronjobs
reposync
Commits
2c2bfa33
Verified
Commit
2c2bfa33
authored
2 years ago
by
Alex Iribarren
Browse files
Options
Downloads
Patches
Plain Diff
Set legacy crypto policy for old SHA1 keys
parent
4f47f8a1
No related branches found
No related tags found
1 merge request
!230
Set legacy crypto policy for old SHA1 keys
Pipeline
#4862178
passed
2 years ago
Stage: prepare
Stage: build
Stage: deploy_test
Stage: deploy
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reposync/Dockerfile
+4
-2
4 additions, 2 deletions
reposync/Dockerfile
with
4 additions
and
2 deletions
reposync/Dockerfile
+
4
−
2
View file @
2c2bfa33
FROM
gitlab-registry.cern.ch/linuxsupport/alma9-base:latest
RUN
yum
install
-y
yum-utils bc diffutils python3-requests
\
RUN
yum
install
-y
yum-utils bc diffutils python3-requests
crypto-policies-scripts
\
&&
yum clean all
RUN
rm
-rf
/etc/yum.repos.d/
*
COPY
gpgkeys/ /etc/pki/rpm-gpg/
RUN
find /etc/pki/rpm-gpg/
-type
f
-exec
rpm
--import
{}
\;
# We still have plenty of gpg keys with SHA1 signatures, so we need the LEGACY crypto policy
RUN
update-crypto-policies
--set
LEGACY
\
&&
find /etc/pki/rpm-gpg/
-type
f
-exec
rpm
--import
{}
\;
COPY
*.sh /root/
COPY
*.py /root/
COPY
prod.repos.d/ /root/prod.repos.d/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment