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

Check file permissions #90

Open
aidanheerdegen opened this issue May 30, 2024 · 2 comments
Open

Check file permissions #90

aidanheerdegen opened this issue May 30, 2024 · 2 comments

Comments

@aidanheerdegen
Copy link
Member

There should be regular automated checks of correct file permissions, e.g. that ACLs are correctly set on restricted deployment directories (UM licensing) and that other important files are read-only, e.g. ACCESS-NRI/ACCESS-OM2#72

@CodeGat
Copy link
Contributor

CodeGat commented Jun 3, 2024

@aidanheerdegen, I can make this an automated check for build-cd. We should come up with a structure of what files need to be checked and what they are being checked for, eg:

  • vk83(/prerelease)?/apps/spack/.*/restricted/.* should have <insert long string of permissions>
  • <whereever the inputs are, as regex> should have <something else>

@CodeGat
Copy link
Contributor

CodeGat commented Jun 3, 2024

From a meeting with @aidanheerdegen :

  • These shall be callable scripts in vk83/admin
  • These should be on.workflow_dispatch and on.schedule
  • Look into options for nice input for getfacl (-t)
  • In terms of what should be checked:
    • restricted folder, enforce existing acls
    • inputs:
      • access-om2, JRA-55: no w for anyone. Look into just setting the mask.
      • Rest g:r-X
    • apps: g:r-X for all
      • spack/* should be g:r-X
    • modules/payu should be as set
    • Everything else require g:r-X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants