adm: Suport proxy accounts #883

Merged
fyrchik merged 1 commit from alexvanin/frostfs-node:feature/proxy-accounts into master 2024-09-04 19:51:05 +00:00
Owner
  • Deploy FrostFS ID and Policy contracts with Proxy contract admin by default
  • Add morph add-proxy-account and morph remove-proxy-account commands to manage list in proxy contract

Related to #880 so maybe it's worth to wait this PR first.
If this PR conflicts with frostfs-adm expectations, feel free to decline.

- Deploy FrostFS ID and Policy contracts with Proxy contract admin by default - Add `morph add-proxy-account` and `morph remove-proxy-account` commands to manage list in proxy contract Related to https://git.frostfs.info/TrueCloudLab/frostfs-node/pulls/880 so maybe it's worth to wait this PR first. If this PR conflicts with frostfs-adm expectations, feel free to decline.
alexvanin force-pushed feature/proxy-accounts from 5d14df1fef to c00953b27a 2023-12-21 09:31:12 +00:00 Compare
alexvanin requested review from storage-core-committers 2023-12-21 10:04:38 +00:00
alexvanin requested review from storage-core-developers 2023-12-21 10:04:39 +00:00
dkirillov reviewed 2023-12-21 10:15:49 +00:00
@ -0,0 +46,4 @@
return fmt.Errorf("can't get NNS contract info: %w", err)
}
proxyHash, err := nnsResolveHash(wCtx.ReadOnlyInvoker, cs.Hash, proxyContract+".frostfs")
Member

We have a lot of code +".frsotfs" across the morph package. Can we define one constant for that (or function that forms full contact name)?

We have a lot of code `+".frsotfs"` across the `morph` package. Can we define one constant for that (or function that forms full contact name)?
Author
Owner

Added contractDomain in 44e60deba3

Added `contractDomain` in https://git.frostfs.info/TrueCloudLab/frostfs-node/commit/44e60deba3ef8971bee71aa8d00606e9bda7c06b
dkirillov approved these changes 2023-12-21 10:16:07 +00:00
dkirillov left a comment
Member

LGTM

LGTM
Owner

Maybe proxy-add-account and proxy-remove-account to group them in help and make similar to other things (netmap-*)

Maybe `proxy-add-account` and `proxy-remove-account` to group them in help and make similar to other things (netmap-*)
fyrchik approved these changes 2023-12-21 10:17:43 +00:00
alexvanin force-pushed feature/proxy-accounts from c00953b27a to 44e60deba3 2023-12-21 10:59:56 +00:00 Compare
dkirillov approved these changes 2023-12-21 11:09:58 +00:00
acid-ant approved these changes 2023-12-21 11:24:19 +00:00
fyrchik approved these changes 2023-12-21 11:55:38 +00:00
@ -91,6 +91,10 @@ const (
deployMethodName = "deploy"
)
func contractDomain(contract string) string {
Owner

I am not too strong in naming, but maybe domainOf?

I am not too strong in naming, but maybe `domainOf`?
Author
Owner

Sure, looks even better.

Sure, looks even better.
fyrchik marked this conversation as resolved
alexvanin force-pushed feature/proxy-accounts from 44e60deba3 to b1eab1de54 2023-12-21 12:04:14 +00:00 Compare
fyrchik approved these changes 2023-12-21 12:24:15 +00:00
fyrchik merged commit b1eab1de54 into master 2023-12-21 12:25:11 +00:00
fyrchik referenced this pull request from a commit 2023-12-21 12:25:14 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
4 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-node#883
No description provided.