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

[1.27] Use rancher/permissions dependency #6141

Conversation

HarrisonWAffel
Copy link
Contributor

Proposed Changes

Remove the acl.Mkdir implementation and k3s acl dependencies in favor of the rancher/permissions repository. This change is associated to k3s-io/k3s#10297, which removes the k3s acl logic rke2 currently relies on.

Types of Changes

Tech Debt

Verification

This change can be verified by creating an RKE2 windows cluster and ensuring that the ACL set on the data directory only permits access to the local system and administrators.

Testing

I have built a custom RKE2 binary using this change and the associated k3s change. I've created a standalone cluster and confirmed that the data directory is properly created with the expected ACL. I've also rebooted the node and service and confirmed that no errors are seen.

Linked Issues

User-Facing Change

NONE

Further Comments

Signed-off-by: Harrison Affel <harrisonaffel@gmail.com>
@HarrisonWAffel HarrisonWAffel requested a review from a team as a code owner June 6, 2024 17:01
@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.11%. Comparing base (d3661b1) to head (b012529).

Additional details and impacted files
@@              Coverage Diff              @@
##           release-1.27    #6141   +/-   ##
=============================================
  Coverage         26.11%   26.11%           
=============================================
  Files                32       32           
  Lines              2684     2684           
=============================================
  Hits                701      701           
  Misses             1940     1940           
  Partials             43       43           
Flag Coverage Δ
inttests 9.76% <ø> (ø)
unittests 18.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brandond brandond merged commit 5006456 into rancher:release-1.27 Jun 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants