Skip to content
4 changes: 2 additions & 2 deletions api/Apis/CredentialsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ No authorization required

Delete a credential

Deletes a credential from the metastore. The caller must be a metastore admin or the owner of the credential.
Deletes a credential from the metastore. The caller must be a metastore admin, the credential owner, or have MANAGE on the credential.

### Parameters

Expand Down Expand Up @@ -128,7 +128,7 @@ No authorization required

Update a credential

Updates a credential.
Updates a credential. The caller must be a metastore admin, the credential owner, or have MANAGE on the credential.

### Parameters

Expand Down
4 changes: 2 additions & 2 deletions api/Apis/ExternalLocationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ No authorization required

Delete an external location

Deletes the specified external location from the metastore. The caller must be a metastore admin or the owner of the external location.
Deletes the specified external location from the metastore. The caller must be a metastore admin, the external location owner, or have MANAGE on the external location.

### Parameters

Expand Down Expand Up @@ -129,7 +129,7 @@ No authorization required

Update an external location

Updates an external location in the metastore. The caller must be the owner of the external location or a metastore admin.
Updates an external location in the metastore. The caller must be a metastore admin, the external location owner, or have MANAGE on the external location.

### Parameters

Expand Down
23 changes: 17 additions & 6 deletions api/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,10 @@ paths:
- Credentials
operationId: updateCredential
summary: Update a credential
description: Updates a credential.
description: |-
Updates a credential.
The caller must be a metastore admin, the credential owner,
or have MANAGE on the credential.
requestBody:
content:
application/json:
Expand All @@ -1311,7 +1314,10 @@ paths:
- Credentials
operationId: deleteCredential
summary: Delete a credential
description: Deletes a credential from the metastore. The caller must be a metastore admin or the owner of the credential.
description: |-
Deletes a credential from the metastore.
The caller must be a metastore admin, the credential owner,
or have MANAGE on the credential.
parameters:
- name: force
in: query
Expand Down Expand Up @@ -1409,7 +1415,10 @@ paths:
tags:
- External Locations
summary: Delete an external location
description: Deletes the specified external location from the metastore. The caller must be a metastore admin or the owner of the external location.
description: |-
Deletes the specified external location from the metastore.
The caller must be a metastore admin, the external location owner,
or have MANAGE on the external location.
operationId: deleteExternalLocation
parameters:
- name: force
Expand All @@ -1425,8 +1434,10 @@ paths:
tags:
- External Locations
summary: Update an external location
description: |
Updates an external location in the metastore. The caller must be the owner of the external location or a metastore admin.
description: |-
Updates an external location in the metastore.
The caller must be a metastore admin, the external location owner,
or have MANAGE on the external location.
operationId: updateExternalLocation
requestBody:
required: true
Expand Down Expand Up @@ -2794,7 +2805,7 @@ components:
- 'CREATE MANAGED STORAGE: Allows designating managed storage locations at catalog or schema levels.'
- 'CREATE STORAGE CREDENTIAL: Required privilege on the metastore to create storage credentials.'
- 'BROWSE: Allows discovery of metadata for a catalog and its descendants, or an external location, without usage grants. Does not permit data access.'
- 'MANAGE: Allows metadata and grant inspection, grant changes, supported metadata changes and deletion, and ownership transfer. Does not grant data access, execution, or object creation.'
- 'MANAGE: Allows full metadata and grant inspection, grant changes, supported metadata changes, and deletion. Managers can grant themselves other privileges, including data access. Data access, execution, and object creation still require their own privileges.'
- 'WRITE VOLUME: Permits creating, changing, and deleting files in volumes; also requires READ VOLUME and parent usage privileges.'
- 'CREATE MODEL VERSION: Allows publishing versions of registered models with USE CATALOG and USE SCHEMA.'
- 'READ METADATA: Permits reading full metadata and grants without data access or permission changes.'
Expand Down
22 changes: 19 additions & 3 deletions docs/server/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ corrected rules by default.
The setting covers:

- [Grant validation](#valid-privilege-grants): Reject new grants on the wrong object type.
Existing invalid grants can still be removed.
`MANAGE` grants are always validated. Existing invalid grants can still be removed.
- [Iceberg credentials](#table-credential-permissions): returning credentials from `loadTable`
or `loadCredentials` requires `USE CATALOG`, `USE SCHEMA`, and `SELECT`, or ownership at each level.
- Table metadata: `MODIFY` no longer substitutes for `SELECT` for table details, listings,
and existence checks across the UC REST, Delta, and Iceberg REST APIs. Existing usage and
ownership rules still apply.
- Volume rename: Also require permission to create volumes in the containing schema.
- Model rename: Also require permission to create models in the containing schema.
- Volume rename by an owner: Also require permission to create volumes in the containing schema.
- Model rename by an owner: Also require permission to create models in the containing schema.

The access checks apply only when `server.authorization=enable`.
Grant validation also applies when authorization is disabled.
Expand Down Expand Up @@ -239,6 +239,7 @@ Grant validation also runs when `server.authorization=disable`.
| `READ FILES`, `WRITE FILES`, `CREATE EXTERNAL TABLE` | External location, storage credential |
| `CREATE EXTERNAL VOLUME`, `CREATE MANAGED STORAGE` | External location |
| `READ METADATA` | Metastore, catalog, schema, table, function, volume, registered model, external location, storage credential |
| `MANAGE` | Catalog, schema, table/view, volume, function, registered model, external location, storage credential |

Volume write credentials require `USE CATALOG` and `USE SCHEMA`, plus both `READ VOLUME`
and `WRITE VOLUME`. Volume ownership satisfies the volume check. Catalog or schema ownership
Expand All @@ -252,6 +253,21 @@ After an upgrade, existing grants stay in place. The server does not remove inva
automatically. You can still remove them through the permissions API. Update grant scripts
to use the correct object types before adding or reapplying grants.

### MANAGE

`MANAGE` permits full metadata and grant inspection, grant changes, supported metadata updates,
and deletion. Managers can grant themselves other privileges, including data access.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[AI Assisted] Could we add these points to this section? (1) With strict-privilege-checks=false, MANAGE grants are still validated, so MANAGE on the metastore is rejected. (2) Renaming a catalog, schema, table, volume, or model with MANAGE needs the matching create privilege in both modes; the migration list shows volume and model rename as strict-only. (3) nit: the note that existing MANAGE grants become active after upgrade (line 264) does not apply, since MANAGE has not shipped in a release.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated. The docs now explain that MANAGE validation and manager rename checks apply in both modes. I clarified the owner rename entries and removed the upgrade note.


Catalog and schema grants also cover their children. Usage grants are required only above the
scope where `MANAGE` is granted. A schema grant needs `USE CATALOG`. A grant on an object inside
a schema needs both `USE CATALOG` and `USE SCHEMA`. Catalogs, external locations, and storage
credentials need no usage grants.

The metastore does not support `MANAGE`.

Renaming a catalog, schema, table, volume, or registered model through `MANAGE` also requires
the matching creation permission. This applies even when strict privilege checks are disabled.

### Discover objects with BROWSE

Catalog `BROWSE` lets a user discover the catalog and its schemas, tables, views, functions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,61 +25,62 @@ private AuthorizeExpressions() {}

/**
* Authorization policy for reading table metadata and filtering table listings. Metastore admin
* and catalog owner pass unconditionally; schema owner passes with catalog {@code USE_CATALOG};
* regular callers need {@code USE_SCHEMA} + {@code USE_CATALOG} plus {@code OWNER} or {@code
* SELECT} on the table. With strict privilege checks disabled, {@code MODIFY} also permits
* metadata access. {@code READ_METADATA} at metastore or catalog scope needs no usage grants;
* schema scope needs {@code USE_CATALOG}, and table scope needs both usage grants.
* and catalog OWNER/MANAGE pass unconditionally; schema OWNER/MANAGE needs catalog {@code
* USE_CATALOG}; other callers need {@code USE_SCHEMA} + {@code USE_CATALOG} plus {@code OWNER},
* {@code MANAGE}, or {@code SELECT} on the table. With strict privilege checks disabled, {@code
* MODIFY} also permits metadata access. {@code READ_METADATA} at metastore or catalog scope needs
* no usage grants; schema scope needs {@code USE_CATALOG}, and table scope needs both usage
* grants.
Comment on lines +28 to +33

@timothyw553 timothyw553 Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

is the change in this comment basically just talking about also including MANAGE in some checks? based on the code changes, it just looks like we're adding MANAGE to authorization for some

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. The policy change here is adding MANAGE alongside OWNER for table metadata access. The rest of the comment describes the existing rules.

*/
// TODO(#2024): Remove the MODIFY fallback when the migration flag is removed.
public static final String GET_TABLE =
"""
#authorizeAny(#principal, #metastore, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, MANAGE, READ_METADATA) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, READ_METADATA)) ||
#authorizeAny(#principal, #schema, OWNER, MANAGE, READ_METADATA)) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
(#authorizeAny(#principal, #table, OWNER, SELECT, READ_METADATA) ||
(#authorizeAny(#principal, #table, OWNER, MANAGE, SELECT, READ_METADATA) ||
(!#strict_privilege_checks && #authorize(#principal, #table, MODIFY))))
""";

/**
* Catalog-level read access: metastore admin, or {@code OWNER}/{@code USE_CATALOG} on the
* catalog, or {@code READ_METADATA} on the metastore or catalog. Shared by the catalog get/list
* endpoints and the Delta/Iceberg config endpoints.
* Catalog-level read access: metastore admin, or {@code OWNER}/{@code MANAGE}/{@code USE_CATALOG}
* on the catalog, or {@code READ_METADATA} on the metastore or catalog. Shared by the catalog
* get/list endpoints and the Delta/Iceberg config endpoints.
*/
public static final String GET_CATALOG =
"""
#authorizeAny(#principal, #metastore, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, USE_CATALOG, READ_METADATA)
#authorizeAny(#principal, #catalog, OWNER, MANAGE, USE_CATALOG, READ_METADATA)
""";

/**
* Schema-level read access: metastore admin, catalog {@code OWNER}, or schema {@code
* OWNER}/{@code USE_SCHEMA} with catalog {@code USE_CATALOG}. Used as the get-schema gate and the
* list-schemas/namespaces response filter (listing and reading grant the same access). {@code
* READ_METADATA} on the metastore or catalog needs no usage grants; on the schema it needs {@code
* USE_CATALOG}.
* Schema-level read access: metastore admin, catalog {@code OWNER}/{@code MANAGE}, or schema
* {@code OWNER}/{@code MANAGE}/{@code USE_SCHEMA} with catalog {@code USE_CATALOG}. Used as the
* get-schema gate and the list-schemas/namespaces response filter (listing and reading grant the
* same access). {@code READ_METADATA} on the metastore or catalog needs no usage grants; on the
* schema it needs {@code USE_CATALOG}.
*/
public static final String GET_SCHEMA =
"""
#authorizeAny(#principal, #metastore, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, MANAGE, READ_METADATA) ||
(#authorizeAny(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, USE_SCHEMA, READ_METADATA))
#authorizeAny(#principal, #schema, OWNER, MANAGE, USE_SCHEMA, READ_METADATA))
""";

/** Function metadata access, shared by get and list filtering. */
public static final String GET_FUNCTION =
"""
#authorizeAny(#principal, #metastore, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, READ_METADATA) ||
#authorizeAny(#principal, #catalog, OWNER, MANAGE, READ_METADATA) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, READ_METADATA)) ||
#authorizeAny(#principal, #schema, OWNER, MANAGE, READ_METADATA)) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
#authorizeAny(#principal, #function, OWNER, EXECUTE, READ_METADATA))
#authorizeAny(#principal, #function, OWNER, MANAGE, EXECUTE, READ_METADATA))
""";

/**
Expand Down Expand Up @@ -110,16 +111,17 @@ private AuthorizeExpressions() {}
""";

/**
* Schema-level mutation policy (update or delete a schema): catalog {@code OWNER}, or {@code
* USE_CATALOG} + schema {@code OWNER}. Metastore admin alone is intentionally not sufficient.
* Shared by the UC REST {@code updateSchema}/{@code deleteSchema} and the Iceberg REST {@code
* updateNamespaceProperties}/{@code dropNamespace} endpoints (updating and dropping a schema
* require the same privilege).
* Schema-level mutation policy: catalog OWNER/MANAGE, or {@code USE_CATALOG} + schema
* OWNER/MANAGE. Metastore admin alone is intentionally not sufficient for ordinary metadata
* updates or deletion. Shared by the UC REST {@code updateSchema}/{@code deleteSchema} and the
* Iceberg REST {@code updateNamespaceProperties}/{@code dropNamespace} endpoints (updating and
* dropping a schema require the same privilege). Schema grant updates also reuse this policy.
*/
public static final String UPDATE_SCHEMA =
"""
#authorize(#principal, #catalog, OWNER) ||
(#authorize(#principal, #catalog, USE_CATALOG) && #authorize(#principal, #schema, OWNER))
#authorizeAny(#principal, #catalog, OWNER, MANAGE) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, MANAGE))
Comment on lines +123 to +124

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it doesnt fit on one line?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This would be 106 characters on one line. Checkstyle limits lines to 100, so I kept the break.

""";

/** Deleting a schema requires the same privilege as {@link #UPDATE_SCHEMA}. */
Expand Down Expand Up @@ -193,15 +195,53 @@ private AuthorizeExpressions() {}
/**
* Authorization policy for deleting a table, shared by the UC REST, UC Delta API, and Iceberg
* REST delete endpoints. Metastore admin alone is intentionally not sufficient -- the caller must
* hold {@code OWNER} somewhere in the catalog / schema / table hierarchy.
* hold OWNER/MANAGE in the catalog / schema / table hierarchy, with usage above that scope. Table
* grant updates also reuse this policy.
*/
public static final String DELETE_TABLE =
"""
#authorize(#principal, #catalog, OWNER) ||
(#authorize(#principal, #catalog, USE_CATALOG) && #authorize(#principal, #schema, OWNER)) ||
#authorizeAny(#principal, #catalog, OWNER, MANAGE) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, MANAGE)) ||
Comment on lines +204 to +205

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it cant be on one line?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This branch would be 109 characters on one line, including ||. Checkstyle allows 100, so I kept the break.

(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
#authorizeAny(#principal, #table, OWNER, MANAGE))
Comment on lines +206 to +208

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh i see its cascading... like this anyOf(OWNER, MANAGE) moves down from catalog to table.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. The three branches check OWNER or MANAGE at catalog, schema, and table scope. The schema branch also needs USE CATALOG. The table branch needs both USE CATALOG and USE SCHEMA.

""";

/** Function deletion and grant changes, with usage required above the management scope. */
public static final String UPDATE_FUNCTION =
"""
#authorizeAny(#principal, #catalog, OWNER, MANAGE) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, MANAGE)) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
#authorizeAny(#principal, #function, OWNER, MANAGE))
""";

/** Volume metadata updates, deletion, and grant changes. File access has separate checks. */
public static final String UPDATE_VOLUME =
Comment on lines +212 to +223

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

why do we need to introduce UPDATE_FUNCTION, UPDATE_VOLUME, and UPDATE_REGISTERED_MODEL? its nice but im just wondering.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Volumes and models reuse these checks across updates and deletes. Models also use the same check for version metadata. UPDATE_FUNCTION has one caller here; #2149 reuses it for ownership transfer.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[AI Assisted] UPDATE_FUNCTION has two callers in this PR, not one: FunctionService.deleteFunction and PermissionService.updateFunctionAuthorization. Because it also gates grants, a later change to delete semantics would silently change who can grant. Would MANAGE_FUNCTION read more accurately, with the same for the volume, model, and table constants? At minimum, the Javadoc should say the constant also gates grants.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated the comments to say these policies also control grant changes. I kept the existing constant names.

"""
#authorizeAny(#principal, #catalog, OWNER, MANAGE) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, MANAGE)) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
#authorizeAny(#principal, #volume, OWNER, MANAGE))
""";

/**
* Model metadata updates, deletion, and grant changes. Publication and file access have separate
* checks.
*/
public static final String UPDATE_REGISTERED_MODEL =
"""
#authorizeAny(#principal, #catalog, OWNER, MANAGE) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorizeAny(#principal, #schema, OWNER, MANAGE)) ||
(#authorize(#principal, #catalog, USE_CATALOG) &&
#authorize(#principal, #schema, USE_SCHEMA) &&
#authorize(#principal, #table, OWNER))
#authorizeAny(#principal, #registered_model, OWNER, MANAGE))
""";

/**
Expand All @@ -214,8 +254,8 @@ private AuthorizeExpressions() {}
+ """
) &&
(#authorizeAny(#principal, #catalog, OWNER, USE_CATALOG) &&
(#authorize(#principal, #schema, OWNER) ||
#authorizeAll(#principal, #schema, USE_SCHEMA, CREATE_TABLE)))
#authorizeAny(#principal, #schema, OWNER, USE_SCHEMA) &&
#authorizeAny(#principal, #schema, OWNER, CREATE_TABLE))
""";

/**
Expand Down Expand Up @@ -251,8 +291,8 @@ private AuthorizeExpressions() {}
/**
* Iceberg credentials require the read permissions in {@link #VEND_TABLE_CREDENTIAL}. With strict
* checks disabled, metastore or catalog ownership, schema ownership with {@code USE_CATALOG}, or
* {@code MODIFY} with both usage grants also permits credentials. {@code READ_METADATA} alone
* does not permit credentials.
* {@code MODIFY} with both usage grants also permits credentials. {@code READ_METADATA} or {@code
* MANAGE} alone does not permit credentials.
*/
// TODO(#2024): Reuse VEND_TABLE_CREDENTIAL with a fixed READ operation after removing the flag.
public static final String VEND_ICEBERG_TABLE_CREDENTIAL =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,22 @@ public HttpResponse getCatalog(
@Patch("/{name}")
@AuthorizeExpression(
"""
#authorize(#principal, #catalog, OWNER)
#authorizeAny(#principal, #catalog, OWNER, MANAGE) &&
(#new_name == null || #authorize(#principal, #catalog, OWNER) ||

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[AI Assisted] Could we add owner-path cases here? The new #new_name branches in updateCatalog and SchemaService.updateSchema have no test where the owner renames; the rename scenario only covers managers. Cases: a catalog owner renames with no create grant; a schema owner with USE CATALOG renames; a schema owner without USE CATALOG is denied.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added all three cases. The tests also check that renaming keeps the same object ID.

#authorizeAny(#principal, #metastore, OWNER, CREATE_CATALOG))
""")
@AuthorizeResourceKey(METASTORE)
public HttpResponse updateCatalog(
@Param("name") @AuthorizeResourceKey(CATALOG) String name, UpdateCatalog updateCatalog) {
@Param("name") @AuthorizeResourceKey(CATALOG) String name,
@AuthorizeKey(key = "new_name") UpdateCatalog updateCatalog) {
Comment on lines +118 to +124

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

what? what is this new name thing?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

new_name is an existing request field for rename. @AuthorizeKey lets this check read it. A manager can update metadata with MANAGE, but a rename also needs metastore OWNER or CREATE CATALOG. Catalog owners keep their existing rename access.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

huh? you say its existing but we're adding it here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@AuthorizeKey is new here. My earlier reply referred to the request field, not the annotation.

Before this PR, {"new_name":"sales_new"} already renamed a catalog. The new annotation lets the permission check read that existing field.

We need it because a manager can edit a comment with MANAGE, while renaming also requires permission to create a catalog.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok im guessing rename was just not wired into these permissions rules...

return HttpResponse.ofJson(catalogRepository.updateCatalog(name, updateCatalog));
}

@Delete("/{name}")
@AuthorizeExpression(
"""
#authorize(#principal, #metastore, OWNER) ||
#authorize(#principal, #catalog, OWNER)
#authorizeAny(#principal, #catalog, OWNER, MANAGE)
""")
@AuthorizeResourceKey(METASTORE)
public HttpResponse deleteCatalog(
Expand Down
Loading
Loading