-
Notifications
You must be signed in to change notification settings - Fork 251
Support NAS access point RAM authentication with AK/SK #1562
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
base: master
Are you sure you want to change the base?
Conversation
| ossInterceptors[opts.FuseType]..., | ||
| ) | ||
| } else { | ||
| ossfsMounter = mounter.NewProxyMounter(socketPath, ns.rawMounter) |
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.
Here it looks a bit odd. Mounter is a relatively high-level abstraction that includes both CmdMounter and ProxyMounter. If we define a function like NewForMounter, it should be used to create any type of mounter, instead NewProxyMounter. Or we can still use the NewOssCmdMounter?
| } | ||
|
|
||
| func (i OssfsSecretInterceptor) BeforeMount(req *mounter.MountOperation) (*mounter.MountOperation, error) { | ||
| filePath, err := utils.SaveOssSecretsToFile(req.Secrets, req.FsType) |
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.
Seems that both ProxyMounter and CmdMounter rely on SaveOssSecretsToFile. Can we reuse the Interceptor for the former?
… mount proxy servers
99f9de7 to
2cfc19d
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: iltyty The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| return op, nil | ||
| } | ||
|
|
||
| tmpDir, err := os.MkdirTemp("", "alinas-") |
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.
os.TempDir
| } | ||
|
|
||
| klog.V(4).InfoS("Created alinas credential file", "path", credFilePath) | ||
| op.Options = append(op.Options, "ram_config_file="+credFilePath) |
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.
Test mounting two APs on the same node with different AK/SKs.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Primary Changes:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: