[#414] authmate: Support setting policy chain #414

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:poc/new_authmate into master 2024-07-08 12:14:43 +00:00
Member

Signed-off-by: Denis Kirillov d.kirillov@yadro.com

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov self-assigned this 2024-07-02 08:54:28 +00:00
dkirillov changed title from WIP: [#XX] authmate: Support setting policy chain to WIP: [#414] authmate: Support setting policy chain 2024-07-02 08:55:40 +00:00
dkirillov force-pushed poc/new_authmate from dc3105bd44 to e02958dcab 2024-07-02 09:00:55 +00:00 Compare
dkirillov changed title from WIP: [#414] authmate: Support setting policy chain to [#414] authmate: Support setting policy chain 2024-07-02 09:01:53 +00:00
dkirillov requested review from storage-services-committers 2024-07-02 09:03:08 +00:00
alexvanin approved these changes 2024-07-08 10:50:37 +00:00
alexvanin left a comment
Owner

Looks great, tested it with frostfs-aio. Consider some naming changes in this PR.

Looks great, tested it with frostfs-aio. Consider some naming changes in this PR.
@ -0,0 +42,4 @@
const walletContractPassphraseCfg = "wallet.contract.passphrase"
func initRegisterUserCmd() {
registerUserCmd.Flags().String(walletFlag, "", "Path to the wallet that will be owner of the credentials")
Owner

More like Path to the wallet with account of the user that will be registered in FrostFS ID contract?

More like `Path to the wallet with account of the user that will be registered in FrostFS ID contract?`
alexvanin marked this conversation as resolved
@ -0,0 +43,4 @@
func initRegisterUserCmd() {
registerUserCmd.Flags().String(walletFlag, "", "Path to the wallet that will be owner of the credentials")
registerUserCmd.Flags().String(addressFlag, "", "Address of the wallet account")
Owner

Maybe Address of the user wallet that will be registered in FrostFS ID contract

Maybe `Address of the user wallet that will be registered in FrostFS ID contract`
alexvanin marked this conversation as resolved
@ -0,0 +47,4 @@
registerUserCmd.Flags().String(frostfsIDContractFlag, "frostfsid.frostfs", "FrostfsID contract hash (LE) or name in NNS to register public key in contract")
registerUserCmd.Flags().String(proxyContractFlag, "proxy.frostfs", "Proxy contract hash (LE) or name in NNS to use when interact with frostfsid contract")
registerUserCmd.Flags().String(namespaceFlag, "", "Namespace to register public key in frostfsid contract and add policy chains")
registerUserCmd.Flags().String(frostfsIDNameFlag, "", "Subject name to set for public key in frostfsid contract")
Owner

Can we just call it a --name or --username?

We also don't use subject term much here, so I would stick with user or use subject everywhere else.

Can we just call it a `--name` or `--username`? We also don't use `subject` term much here, so I would stick with `user` or use `subject` everywhere else.
alexvanin marked this conversation as resolved
dkirillov force-pushed poc/new_authmate from e02958dcab to 70eedfc077 2024-07-08 11:13:33 +00:00 Compare
alexvanin merged commit 70eedfc077 into master 2024-07-08 12:14:43 +00:00
alexvanin deleted branch poc/new_authmate 2024-07-08 12:14:47 +00:00
alexvanin added this to the v0.30.0 milestone 2024-07-16 11:24:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#414
No description provided.