feat:Add config-driven Fabric-X namespaces - #828
MaryamArif7 wants to merge 13 commits into
Conversation
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
|
Hi @umegbewe Id like to clarify a few things regarding this PR
4.Right now we are doing something like this below :Just like this ref Make File But the flaw with this approach is that we type the ploicies by hand everytime we add them even tho fablo already knows every org's MSP name from orgs[] what do you think if we should go with this ? we can do somethig like this with this we can add a helper fun ,resolvePolicy which can input the orgs with namespace names and return this |
"namespaces": [
{ "name": "mynamespace", "orgs": ["Org1", "Org2"] }
]advanced override can be "namespaces": [
{ "name": "custom", "policy": "AND('Org1MSP.member')" }
]I’d avoid allowing both orgs and policy in the same namespace for now |
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
|
This PR needs tests @MaryamArif7 add tests for:
Good work so far! |
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
|
@umegbewe While testing, a namespace named audit-ns failed at runtime. tracing it back to the actual Fabric-X source code showed that namespace IDs are restricted to lowercase letters, digits, and underscores only, no hyphens, with a 60 character limit. That rule lives in fxconfig ,so i have added those validation in valid/index file,extendedconfig and tests files. Local testing With the default namespace Namespace init
Namespace list
With multiple namespaces added Namespace init This initializes every namespace declared in the config file.
Namespace list This shows all the namespaces that were created.
Targeted namespace init ./fablo.sh namespace init audit_ns
Validation checks
|
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
fix: review fixes Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
ab94683 to
e6edaf9
Compare
Signed-off-by: Maryam Arif <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
hi @umegbewe namespaceInit.test.ts |








fixes #819
This PR adds support for configuring Fabric-X namespaces through the Fablo configuration.
Changes
This makes it easier to set up Fabric-X namespaces without needing to configure them manually.
Changed files