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 all 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
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);
23 changes: 18 additions & 5 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,26 @@ nav_order: 2

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|defaultKey|A default signing key for blockchain transactions within this namespace|`string`|`<nil>`
|description|A description for the namespace|`string`|`<nil>`
|mode|The namespace mode. Valid values: gateway, multiparty|`string`|`<nil>`
|name|The name of the namespace (must be unique)|`string`|`<nil>`
|plugins|The list of plugins for this namespace|`string`|`<nil>`
|remoteName|The namespace name to be sent in plugin calls, if it differs from namespace name|`string`|`<nil>`

## namespaces.predefined[].multiparty

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|enabled|Enables multi-party mode for this namespace (defaults to true if an org name or key is configured, either here or at the root level)|`boolean`|`<nil>`

## namespaces.predefined[].multiparty.org

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|description|A description for the local root organization within this namespace|`string`|`<nil>`
|key|The signing key allocated to the root organization within this namespace|`string`|`<nil>`
|name|A short name for the local root organization within this namespace|`string`|`<nil>`

## node

|Key|Description|Type|Default Value|
Expand Down Expand Up @@ -677,10 +691,9 @@ nav_order: 2

|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|description|A description of the organization to which this FireFly node belongs|`string`|`<nil>`
|identity|`DEPRECATED` Please use `org.key` instead|`string`|`<nil>`
|key|The signing identity allocated to the organization (can be the same as the nodes)|`string`|`<nil>`
|name|The name of the organization to which this FireFly node belongs|`string`|`<nil>`
|description|A description of the organization to which this FireFly node belongs (deprecated - should be set on each multi-party namespace instead)|`string`|`<nil>`
|key|The signing key allocated to the organization (deprecated - should be set on each multi-party namespace instead)|`string`|`<nil>`
|name|The name of the organization to which this FireFly node belongs (deprecated - should be set on each multi-party namespace instead)|`string`|`<nil>`

## plugins

Expand Down
Loading