Skip to content

Commit 982f446

Browse files
Merge pull request #712 from dgraph-io/raphael/move-multinenancy
move multitenancy to admin
2 parents e3dc4c1 + e410463 commit 982f446

File tree

19 files changed

+198
-42
lines changed

19 files changed

+198
-42
lines changed

docusaurus-docs/docs/admin/admin-tasks/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Dgraph Alpha provides the following administrative endpoints:
1515
- **`/admin/config/cache_mb`** - Configure cache size
1616
- **`/admin/draining`** - Drain connections from a node
1717
- **`/admin/shutdown`** - Shutdown a single Alpha node
18-
- **`/admin/schema`** - Schema management
19-
- **`/admin/schema/validate`** - Validate schema
2018
- **`/alter`** - Apply schema updates and drop predicates
2119
- **`/login`** - Authenticate ACL users
2220
- **`/health`** - health status
@@ -33,7 +31,6 @@ The following administrative tasks are available:
3331
### Data Management
3432

3533
- **[Restrict Mutation Operations](restrict-mutation-operations)** - Control mutation permissions and enforce strict schema validation
36-
- **[Secure Alter Operations](secure-alter-operations)** - Protect schema updates and predicate drops with authentication
3734
- **[Export Database](export-database)** - Export data from Dgraph for backup, migration, or sharing
3835
- **[Delete Database](delete-database)** - Drop all data from the database
3936

docusaurus-docs/docs/admin/enterprise-features/multitenancy.md renamed to docusaurus-docs/docs/admin/admin-tasks/multitenancy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Enable multiple tenants to share a Dgraph cluster using logically s
66
Multi-tenancy enables multiple tenants to coexist in the same Dgraph cluster using `uint64` namespaces. Each tenant operates in its own namespace with logical data separation—data is stored in the same `p` directory but is not accessible across namespaces.
77

88
:::note
9-
**Enterprise Feature**: Multi-tenancy requires [Access Control Lists](access-control-lists) (ACL) to be enabled. See [License](license) for details.
9+
**Enterprise Feature**: Multi-tenancy requires [Access Control Lists](../../installation/configuration/enable-acl) (ACL) to be enabled.
1010
:::
1111

1212
Multi-tenancy builds upon ACL and scopes ACL policies to individual tenants. Access controls are applied per tenant to specific predicates or all predicates within that tenant. Tenants are logically separated; each client must authenticate within a tenant and can only access data as allowed by the tenant's ACL rules.
@@ -58,7 +58,7 @@ mutation {
5858
}
5959
```
6060

61-
This creates a namespace, automatically creates a guardian group for that namespace, and creates a `groot` user with the specified password (default is `password`) in the guardian group. Use these credentials to login and perform operations like [`addUser`](access-control-lists#create-a-regular-user).
61+
This creates a namespace, automatically creates a guardian group for that namespace, and creates a `groot` user with the specified password (default is `password`) in the guardian group. Use these credentials to login and perform[`user management opertions`](user-management-access-control).
6262

6363
### List Namespaces
6464

docusaurus-docs/docs/admin/admin-tasks/secure-alter-operations.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docusaurus-docs/docs/clients/csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var client = new DgraphClient(new Channel("127.0.0.1:9080", ChannelCredentials.I
2828

2929
### Multi-tenancy
3030

31-
In [multi-tenancy](../admin/enterprise-features/multitenancy) environments, Dgraph provides a new method `LoginRequest()`,
31+
In multi-tenants environments, Dgraph provides a method `LoginRequest()`,
3232
which will allow the users to login to a specific namespace.
3333

3434
In order to create a Dgraph client, and make the client login into namespace `123`:

docusaurus-docs/docs/clients/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func newClient() *dgo.Dgraph {
6363

6464
### Multi-tenancy
6565

66-
In [multi-tenancy](../admin/enterprise-features/multitenancy) environments, Dgraph provides a new method `LoginIntoNamespace()`,
66+
In multi-tenants environments, Dgraph provides the method `LoginIntoNamespace()`,
6767
which will allow the users to login to a specific namespace.
6868

6969
In order to create a dgo client, and make the client login into namespace `123`:

docusaurus-docs/docs/clients/java.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ dgraphClient.login(USER_ID, USER_PASSWORD);
6767

6868
### Multi-tenancy
6969

70-
If [multi-tenancy](../admin/enterprise-features/multitenancy) is enabled, by default the login method on client will login into the namespace `0`.
71-
In order to login into some other namespace, use the `loginIntoNamespace` method on the client:
70+
In multi-tenants environments, use the `loginIntoNamespace` method on the client:
7271

7372
```java
7473
dgraphClient.loginIntoNamespace(USER_ID, USER_PASSWORD, NAMESPACE);

docusaurus-docs/docs/clients/javascript/http.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ await clientStub.login();
7878

7979
Some Dgraph configurations require extra access tokens.
8080

81-
82-
Alpha servers can be configured with [Secure Alter Operations](../../admin/admin-tasks/secure-alter-operations).
81+
Alpha servers can be configured with [Secure Alter Operations](../../admin/security/admin-endpoint-security).
8382
In this case the token needs to be set on the client instance:
8483

8584
```js

docusaurus-docs/docs/clients/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ client = pydgraph.DgraphClient(client_stub)
3939

4040
### Multi-tenancy
4141

42-
In [multi-tenancy](../admin/enterprise-features/multitenancy) environments, PyDgraph provides a new method `login_into_namespace()`,
42+
In multi-tenants environments, PyDgraph provides the method `login_into_namespace()`,
4343
which will allow the users to login to a specific namespace.
4444

4545
In order to create a python client, and make the client login into namespace `123`:

docusaurus-docs/docs/installation/configuration/change-data-capture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The `operation` field specifies the drop operation: `attribute`, `type`, `data`,
8989

9090
## Multi-Tenancy
9191

92-
In a [multi-tenant environment](../../admin/enterprise-features/multitenancy), CDC events streamed to Kafka are distributed across Kafka partitions by the Kafka client based on the multi-tenancy namespace.
92+
In multi-tenants environment, CDC events streamed to Kafka are distributed across Kafka partitions by the Kafka client based on the multi-tenancy namespace.
9393

9494
## Limitations
9595

docusaurus-docs/docs_versioned_docs/version-v24.1/admin/admin-tasks/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Dgraph Alpha provides the following administrative endpoints:
1515
- **`/admin/config/cache_mb`** - Configure cache size
1616
- **`/admin/draining`** - Drain connections from a node
1717
- **`/admin/shutdown`** - Shutdown a single Alpha node
18-
- **`/admin/schema`** - Schema management
19-
- **`/admin/schema/validate`** - Validate schema
2018
- **`/alter`** - Apply schema updates and drop predicates
2119
- **`/login`** - Authenticate ACL users
2220
- **`/health`** - health status
@@ -33,7 +31,6 @@ The following administrative tasks are available:
3331
### Data Management
3432

3533
- **[Restrict Mutation Operations](restrict-mutation-operations)** - Control mutation permissions and enforce strict schema validation
36-
- **[Secure Alter Operations](secure-alter-operations)** - Protect schema updates and predicate drops with authentication
3734
- **[Export Database](export-database)** - Export data from Dgraph for backup, migration, or sharing
3835
- **[Delete Database](delete-database)** - Drop all data from the database
3936

0 commit comments

Comments
 (0)