Skip to content

Feature/closed mode#93

Merged
dpetran merged 7 commits intomainfrom
feature/closed-mode
Sep 18, 2024
Merged

Feature/closed mode#93
dpetran merged 7 commits intomainfrom
feature/closed-mode

Conversation

@dpetran
Copy link
Contributor

@dpetran dpetran commented Sep 17, 2024

https://github.com/fluree/core/issues/112

This adds closed-mode support to server.

There are now two new config keys:

  • ["http", "rootIdentities"]: an array of keypair ids
  • ["http", "closedMode"]: a boolean flag to enable closed-mode

When closed mode is enabled:

  • every request is required to be signed
  • only a root identity is allowed to create ledgers
  • non-root identities are not allowed to claim other identities

In this implementation it is specified that requests from root identities will NOT be called with wrap-policy. However, server does not call wrap-policy on its own, so I've left that for future work.

@dpetran dpetran requested a review from a team September 17, 2024 21:35
Copy link
Contributor

@zonotope zonotope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚪

@dpetran dpetran merged commit 23f5f5d into main Sep 18, 2024
@dpetran dpetran deleted the feature/closed-mode branch September 18, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants