apache / apache/pulsar

allow tenant admin can operate in namespace level

Open
#18,090 1 comment 0 reactions 0 assignees View on GitHub
Stale
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Motivation

in v2/namespaces

just like

```
protected CompletableFuture internalUnloadNamespaceAsync() {
return validateSuperUserAccessAsync()
```

and

```
protected CompletableFuture internalSplitNamespaceBundleAsync(String bundleName,
boolean authoritative, boolean unload,
String splitAlgorithmName,
List splitBoundaries) {
return validateSuperUserAccessAsync()
```

we only need to validate tenantAllowOperation, we do not need the role is superUser

### Solution

we can check validateTenantOperationAsync

### Alternatives

no

### Anything else?

no

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start in the v2/namespaces entry points containing internalUnloadNamespaceAsync and internalSplitNamespaceBundleAsync. Compare their current validateSuperUserAccessAsync checks with validateTenantOperationAsync and determine which tenant-admin namespace operations should be allowed. Done means tenant admins can perform the intended namespace-level operations without requiring superuser status.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.