Skip to content
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

Move all identity APIs under /namespaces #804

Merged
merged 27 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1a6ea05
Move all identity APIs under /namespaces
awrichar May 6, 2022
fc8a3ac
Clean up some comments and vars in Identity Manager
awrichar May 6, 2022
ffeb8eb
Clean up which identity APIs are deprecated
awrichar May 6, 2022
11a690d
Move all identities to namespaces
awrichar May 9, 2022
1f0dd96
Remove namespace broadcast and remaining usage of system namespace
awrichar May 10, 2022
6ff70c9
Replace default namespace with current namespace in /status response
awrichar May 10, 2022
5c7af54
Add namespace to identity db indexes
awrichar May 10, 2022
0877770
Remove "ns/{namespace}/" prefix from custom identity DIDs
awrichar May 10, 2022
227fb90
Factor out NamespaceManager
awrichar May 12, 2022
0ec47ac
Merge remote-tracking branch 'origin/main' into identity
awrichar May 12, 2022
bc39a53
Minor coverage fix for Namespace Manager
awrichar May 12, 2022
5fd6e7e
Restore spelling of "/network/diddocs" route
awrichar May 12, 2022
df4b932
Move namespace config parsing to Namespace Manager
awrichar May 13, 2022
a32c772
Merge remote-tracking branch 'origin/main' into identity
awrichar May 13, 2022
5a21068
Don't allow "/" in custom identity names
awrichar May 16, 2022
01852f8
Merge branch 'main' of github.com:hyperledger/firefly into identity
awrichar May 27, 2022
a3c34cb
Move /network/action to namespace
awrichar May 26, 2022
5ad89c8
Add networkVersion to blockchain contract
awrichar May 26, 2022
6ac8749
Replace "legacySystemIdentities" flag with new NetworkVersion query
awrichar May 26, 2022
8068c7f
Use uint8 for network version
awrichar May 31, 2022
2d21ccb
Variable cleanup in blockchain connectors
awrichar May 31, 2022
8ce0786
Minor optimization of ff_system identity lookup
awrichar May 31, 2022
341620b
Merge remote-tracking branch 'origin/main' into identity
awrichar May 31, 2022
27c308f
Re-word error message
awrichar May 31, 2022
f24271d
Clean up multi-party org configuration
awrichar Jun 1, 2022
5205fa6
Merge remote-tracking branch 'origin/main' into identity
awrichar Jun 1, 2022
f15ac92
Clarify between "default key" and "multiparty root key"
awrichar Jun 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ $(eval $(call makemock, internal/shareddownload, Manager, shareddow
$(eval $(call makemock, internal/shareddownload, Callbacks, shareddownloadmocks))
$(eval $(call makemock, internal/definitions, DefinitionHandler, definitionsmocks))
$(eval $(call makemock, internal/events, EventManager, eventmocks))
$(eval $(call makemock, internal/namespace, Manager, namespacemocks))
$(eval $(call makemock, internal/networkmap, Manager, networkmapmocks))
$(eval $(call makemock, internal/assets, Manager, assetmocks))
$(eval $(call makemock, internal/contracts, Manager, contractmocks))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;
DROP INDEX identities_did;
CREATE UNIQUE INDEX identities_did ON identities(did);

DROP INDEX verifiers_value;
CREATE UNIQUE INDEX verifiers_value ON verifiers(vtype, value);
COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;
DROP INDEX identities_did;
CREATE UNIQUE INDEX identities_did ON identities(namespace, did);

DROP INDEX verifiers_value;
CREATE UNIQUE INDEX verifiers_value ON verifiers(namespace, vtype, value);
COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DROP INDEX identities_did;
CREATE UNIQUE INDEX identities_did ON identities(did);

DROP INDEX verifiers_value;
CREATE UNIQUE INDEX verifiers_value ON verifiers(vtype, value);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DROP INDEX identities_did;
CREATE UNIQUE INDEX identities_did ON identities(namespace, did);

DROP INDEX verifiers_value;
CREATE UNIQUE INDEX verifiers_value ON verifiers(namespace, vtype, value);
12 changes: 12 additions & 0 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,12 @@ nav_order: 3
|---|-----------|----|-------------|
|type|The Identity plugin to use|`string`|`<nil>`

## identity.manager

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|legacySystemIdentities|Whether the identity manager should resolve legacy identities registered on the ff_system namespace|`boolean`|`<nil>`

## identity.manager.cache

|Key|Description|Type|Default Value|
Expand Down Expand Up @@ -626,6 +632,12 @@ nav_order: 3
|description|A description for the namespace|`string`|`<nil>`
|name|The name of the namespace (must be unique)|`string`|`<nil>`

## namespaces.predefined[].org

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|key|A default signing key for blockchain transactions within the namespace (overrides top-level org.key)|`string`|`<nil>`

## node

|Key|Description|Type|Default Value|
Expand Down
Loading