adm: Suport proxy accounts #883
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#883
Loading…
Reference in a new issue
No description provided.
Delete branch "alexvanin/frostfs-node:feature/proxy-accounts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
morph add-proxy-account
andmorph remove-proxy-account
commands to manage list in proxy contractRelated to #880 so maybe it's worth to wait this PR first.
If this PR conflicts with frostfs-adm expectations, feel free to decline.
5d14df1fef
toc00953b27a
@ -0,0 +46,4 @@
return fmt.Errorf("can't get NNS contract info: %w", err)
}
proxyHash, err := nnsResolveHash(wCtx.ReadOnlyInvoker, cs.Hash, proxyContract+".frostfs")
We have a lot of code
+".frsotfs"
across themorph
package. Can we define one constant for that (or function that forms full contact name)?Added
contractDomain
in44e60deba3
LGTM
Maybe
proxy-add-account
andproxy-remove-account
to group them in help and make similar to other things (netmap-*)c00953b27a
to44e60deba3
@ -91,6 +91,10 @@ const (
deployMethodName = "deploy"
)
func contractDomain(contract string) string {
I am not too strong in naming, but maybe
domainOf
?Sure, looks even better.
44e60deba3
tob1eab1de54