frostfsid: Restrict keys to a single subject #123

Merged
fyrchik merged 1 commit from achuprov/frostfs-contract:bugfix/restrict_primary_key into master 2024-11-14 12:24:05 +00:00
Member

Close #118
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

Close #118 Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov added 1 commit 2024-10-30 15:02:46 +00:00
[#118] frostfsid: Restrict keys to a single subject
All checks were successful
DCO action / DCO (pull_request) Successful in 43s
Code generation / Generate wrappers (pull_request) Successful in 1m30s
Tests / Tests (pull_request) Successful in 1m33s
71bb3a65b7
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov force-pushed bugfix/restrict_primary_key from 71bb3a65b7 to a98caa7210 2024-10-30 15:03:38 +00:00 Compare
fyrchik reviewed 2024-10-31 06:55:59 +00:00
@ -604,6 +604,44 @@ func TestFrostFSID_GroupManagement(t *testing.T) {
})
}
func TestAdditionalKeyFromPrimarySubject(t *testing.T) {
Owner

@achuprov have you used coverage to see whether test covers everything you have written?

@achuprov have you used coverage to see whether test covers everything you have written?
Author
Member

Yes, all modified branches are covered by tests. Test coverage is 83% for Frostfid and 86% for NNS.

Yes, all modified branches are covered by tests. Test coverage is 83% for `Frostfid` and 86% for `NNS`.
fyrchik marked this conversation as resolved
aarifullin reviewed 2024-10-31 07:38:59 +00:00
@ -97,2 +97,4 @@
groupCounterKey = 'c'
namespaceGroupsNamesPrefix = 'm'
// allAddressPrefix contains all keys and signifies that the key has been used.
allAddressPrefix = 'A'
Member

Please, add this prefix to scheme within doc.go

Please, add this prefix to scheme within `doc.go`
Author
Member

added

added
achuprov force-pushed bugfix/restrict_primary_key from a98caa7210 to 68e011efce 2024-11-08 08:12:51 +00:00 Compare
achuprov force-pushed bugfix/restrict_primary_key from 68e011efce to 874a8cc321 2024-11-08 14:18:25 +00:00 Compare
acid-ant reviewed 2024-11-11 05:59:53 +00:00
@ -215,1 +222,4 @@
addressKey := addressKey(contract.CreateStandardAccount(key))
if storage.Get(ctx, addressKey) != nil {
panic("key is occupied")
Member

Can the error message be more specific?

Can the error message be more specific?
acid-ant approved these changes 2024-11-11 06:00:07 +00:00
Dismissed
fyrchik approved these changes 2024-11-11 08:17:13 +00:00
Dismissed
Owner

What about migration?

What about migration?
aarifullin approved these changes 2024-11-11 08:29:55 +00:00
Dismissed
achuprov force-pushed bugfix/restrict_primary_key from 874a8cc321 to e47a12f3a6 2024-11-13 18:29:33 +00:00 Compare
achuprov dismissed acid-ant's review 2024-11-13 18:29:33 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

achuprov dismissed fyrchik's review 2024-11-13 18:29:33 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

achuprov dismissed aarifullin's review 2024-11-13 18:29:33 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

achuprov force-pushed bugfix/restrict_primary_key from e47a12f3a6 to 7a8c64b966 2024-11-13 18:35:28 +00:00 Compare
acid-ant approved these changes 2024-11-14 06:12:54 +00:00
fyrchik approved these changes 2024-11-14 12:23:36 +00:00
fyrchik merged commit 7a8c64b966 into master 2024-11-14 12:24:05 +00:00
alexvanin approved these changes 2024-11-14 14:04:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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-contract#123
No description provided.