Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Storage
Commits
24dfcef1
Commit
24dfcef1
authored
1 year ago
by
Danylo Vanin (EPAM)
Committed by
Mikhail Piatliou (EPAM)
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[GONRG-7389] Moved bootstrap to non-root
parent
5b690c37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!744
Upgraded packages to mitigated vulns in netty, guava, snakeyaml
,
!722
[GONRG-7389] Moved bootstrap to non-root
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devops/gc/deploy/templates/bootstrap-deployment.yaml
+3
-0
3 additions, 0 deletions
devops/gc/deploy/templates/bootstrap-deployment.yaml
provider/storage-gc/bootstrap/Dockerfile
+5
-0
5 additions, 0 deletions
provider/storage-gc/bootstrap/Dockerfile
with
8 additions
and
0 deletions
devops/gc/deploy/templates/bootstrap-deployment.yaml
+
3
−
0
View file @
24dfcef1
...
...
@@ -38,5 +38,8 @@ spec:
-
secretRef
:
name
:
{{
.Values.conf.bootstrapSecretName | quote
}}
{{
- end
}}
securityContext
:
allowPrivilegeEscalation
:
false
runAsNonRoot
:
true
serviceAccountName
:
{{
.Values.data.bootstrapServiceAccountName | quote
}}
{{
- end
}}
This diff is collapsed.
Click to expand it.
provider/storage-gc/bootstrap/Dockerfile
+
5
−
0
View file @
24dfcef1
...
...
@@ -16,5 +16,10 @@ RUN apt-get update \
&& chmod +x download-data.sh \
&& chmod +x bootstrap_storage.sh \
&& ./download-data.sh
RUN
groupadd
-g
10001
-r
nonroot
\
&&
useradd
-d
/opt
-g
10001
-r
-u
10001 nonroot
RUN
chown
-R
10001:10001 /opt
USER
10001:10001
CMD
["/bin/bash", "-c", "/opt/bootstrap_storage.sh && sleep 365d"]
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