Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
AIStor is adding cluster encryption of data at rest. Its admin API needs actions that a policy can allow or deny. Add five cluster-wide admin actions, all AIStor extensions: - admin:ClusterEncryptionEnable and admin:ClusterEncryptionDisable turn encryption of new writes on and off. - admin:ClusterEncryptionRotateKey adds a version to the drive key. - admin:ClusterEncryptionStatus reads the cluster encryption status, the encryption of an object version, and the status of the job that encrypts existing data. - admin:ClusterEncryptionRewrite starts, stops, pauses and resumes that job. The actions take no resource. admin:* and admin:ClusterEncryption* match them. Built-in policies grant them as follows: - consoleAdmin: all five, through admin:*. - infraAdmin: Status and Rewrite. - securityAuditAdmin: Status. - No other built-in policy grants any of them. Enable, Disable and RotateKey stay with consoleAdmin because they change how data is protected. Status is read-only, so the audit role gets it. Rewrite is the long-running job that infraAdmin already manages for other background work. Signed-off-by: Andreas Auernhammer <git@aead.dev>
35a8f1e to
0b0c172
Compare
AIStor is adding cluster encryption of data at rest. Its admin API needs actions that a policy can allow or deny.
Add five cluster-wide admin actions, all AIStor extensions:
The actions take no resource. admin:* and admin:ClusterEncryption* match them.
Built-in policies grant them as follows:
Enable, Disable and RotateKey stay with consoleAdmin because they change how data is protected. Status is read-only, so the audit role gets it. Rewrite is the long-running job that infraAdmin already manages for other background work.
Summary by CodeRabbit