-
Notifications
You must be signed in to change notification settings - Fork 306
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
DAOS-12100 control: Update admin cert key required perms #11271
Conversation
The admin certificate key may be owned by an admin group, rather than an individual user. In practice most private keys should be owner-read-only (0400), but the admin cert may also be readable by the admin group (0440). Required-githooks: true Features: control Signed-off-by: Kris Jacque <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Bug-tracker data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
Test stage Functional Hardware Medium completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-11271/3/testReport/(root)/ |
Test stage Functional Hardware Medium UCX Provider completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-11271/3/execution/node/1173/log |
src/control/security/pem.go
Outdated
MaxUserOnlyKeyPerm os.FileMode = 0400 | ||
MaxGroupKeyPerm os.FileMode = 0440 | ||
MaxCertPerm os.FileMode = 0664 | ||
MaxDirPerm os.FileMode = 0700 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a stupid question (not really familiar with this portion of the code).
Is the key file stored in the directory with MaxDirPerm ?
If yes, even with MaxGroupKeyPerm set, the user from the authorized group will not be able to access the key cert ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I think MaxDirPerm should be 0750 or "group" cannot get to the admin.key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see MaxDirPerm comment...
Features: control,security Required-githooks: true Signed-off-by: Kris Jacque <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No errors found by checkpatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-11271/4/execution/node/1220/log |
Test failures appear to be due to engine segfaults in racer/rebuild tests, seems unlikely that they are related to this patch. |
The admin certificate key may be owned by an admin group, rather than an individual user. In practice most private keys should be owner-read-only (0400), but the admin cert may also be readable by the admin group (0440). Features: control,security Signed-off-by: Kris Jacque <[email protected]>
…1294) The admin certificate key may be owned by an admin group, rather than an individual user. In practice most private keys should be owner-read-only (0400), but the admin cert may also be readable by the admin group (0440). Signed-off-by: Kris Jacque <[email protected]>
The admin certificate key may be owned by an admin group, rather than an individual user.
In practice most private keys should be owner-read-only (0400), but the admin cert may also be readable by the admin group (0440).
Required-githooks: true
Features: control
Signed-off-by: Kris Jacque [email protected]
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: