Skip to content

Change workspace scripts volume permission to 555

Issue: Convert existing Workspaces internal script log... (#520867 - closed) • Chad Woolley • 18.0

What does this MR do and why?

References

Screenshots or screen recordings

See that scripts volume is 555 and variables volume is still 774:

gitlab-workspaces@workspace-4-1-cxsirh-7c84d7878f-qpmcq:/$ cd /workspace-scripts/..data
gitlab-workspaces@workspace-4-1-cxsirh-7c84d7878f-qpmcq:/workspace-scripts/..data$ ls -al
total 16
drwxr-sr-x 2 root root 120 May  7 18:45 .
drwxrwsrwt 3 root root 160 May  7 18:45 ..
-r-xr-xr-x 1 root root 365 May  7 18:45 gl-init-tools-command
-r-xr-xr-x 1 root root 435 May  7 18:45 gl-run-poststart-commands.sh
-r-xr-xr-x 1 root root 704 May  7 18:45 gl-sleep-until-container-is-running-command
-r-xr-xr-x 1 root root 574 May  7 18:45 gl-start-sshd-command
gitlab-workspaces@workspace-4-1-cxsirh-7c84d7878f-qpmcq:/workspace-scripts/..data$ cd /.workspace-data/variables/file/..data
gitlab-workspaces@workspace-4-1-cxsirh-7c84d7878f-qpmcq:/.workspace-data/variables/file/..data$ ls -al
total 12
drwxr-sr-x 2 root root 100 May  7 18:47 .
drwxrwsrwt 3 root root 140 May  7 18:47 ..
-rwxrwxr-- 1 root root 470 May  7 18:47 gl_git_credential_store.sh
-rwxrwxr-- 1 root root  26 May  7 18:47 gl_token
-rwxrwxr-- 1 root root   7 May  7 18:47 gl_workspace_reconciled_actual_state.txt

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Chad Woolley

Merge request reports

Loading