Skip to content

[Server] Serve OpenSharing's recipient API and share grants from Unity Catalog - #2

Draft
littlegrasscao wants to merge 1 commit into
sharing/provider-sharesfrom
sharing/provider-recipients
Draft

littlegrasscao wants to merge 1 commit into
sharing/provider-sharesfrom
sharing/provider-recipients

Conversation

@littlegrasscao

@littlegrasscao littlegrasscao commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Review copy of unitycatalog#2147, part 3 of 4 of embedded OpenSharing in Unity Catalog. It targets the previous PR's branch, so its diff shows only this part. It won't be merged here: the change merges through unitycatalog#2147, which has the full description and CI.

The four PRs, each building on the one before:

  1. [Server][OpenSharing 1/6] Add the Unity Catalog connector for OpenSharing unitycatalog/unitycatalog#2145: the Unity Catalog connector for OpenSharing. It targets main, so it has no review copy.
  2. [Server][OpenSharing 4/6] Serve OpenSharing's share API from Unity Catalog unitycatalog/unitycatalog#2146: the share API. Review copy: [Server] Serve OpenSharing's share API from Unity Catalog #1.
  3. [Server][OpenSharing 5/6] Serve OpenSharing's recipient API and share grants from Unity Catalog unitycatalog/unitycatalog#2147: the recipient API and share grants. Review copy: this PR.
  4. [Server][OpenSharing 6/6] Serve the Delta Sharing protocol and recipient activation from Unity Catalog unitycatalog/unitycatalog#1825: the sharing protocol and recipient activation. Review copy: [Server] Serve the Delta Sharing protocol and recipient activation from Unity Catalog #3.

@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 108a923 to 7cc3fa0 Compare November 7, 2026 01:19
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from e83dae1 to c0d1f16 Compare November 7, 2026 01:19
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 7cc3fa0 to 5b35bff Compare November 8, 2026 00:02
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch 2 times, most recently from 24fdad2 to 85ec7f0 Compare November 9, 2026 20:09
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 5b35bff to 1ab746f Compare November 9, 2026 20:09
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 85ec7f0 to 56656e6 Compare November 9, 2026 23:10
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch 2 times, most recently from 4f325d2 to 5aa8a14 Compare November 9, 2026 23:19
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 56656e6 to 9e52e8e Compare November 9, 2026 23:19
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 5aa8a14 to 89cd514 Compare November 9, 2026 23:54
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch 2 times, most recently from d070cdf to f8dbeaf Compare November 11, 2026 17:11
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 89cd514 to e83a518 Compare November 11, 2026 17:11
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from f8dbeaf to f89a689 Compare November 11, 2026 18:22
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from e83a518 to a4cdb86 Compare November 11, 2026 18:22
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from f89a689 to c63edbb Compare November 11, 2026 23:57
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch 2 times, most recently from fa947cc to 48a11d0 Compare November 12, 2026 00:18
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch 2 times, most recently from 428161b to c921c28 Compare November 12, 2026 02:34
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 48a11d0 to 5900d16 Compare November 12, 2026 02:34
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from c921c28 to 4b19553 Compare November 12, 2026 05:46
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 5900d16 to a0ba498 Compare November 12, 2026 05:46
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from a0ba498 to 636a745 Compare November 12, 2026 05:57
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch 2 times, most recently from 61e2db2 to 15c307b Compare November 16, 2026 22:00
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 636a745 to 35b07b7 Compare November 16, 2026 22:00
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 15c307b to 80d1cfb Compare November 16, 2026 22:43
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 35b07b7 to 20ee6e2 Compare November 16, 2026 22:43
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 80d1cfb to 2a0e33e Compare November 17, 2026 00:04
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch 2 times, most recently from 0fd3953 to ae5801f Compare November 17, 2026 02:28
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 2a0e33e to 41cf091 Compare November 17, 2026 02:28
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from ae5801f to abd7bd9 Compare November 17, 2026 18:46
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch 2 times, most recently from be5c206 to 6910ce9 Compare November 17, 2026 21:27
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch 2 times, most recently from 43e55dd to 3bbadb3 Compare November 17, 2026 21:40
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 6910ce9 to 64a39f1 Compare November 17, 2026 21:40
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 3bbadb3 to f195d75 Compare November 17, 2026 21:47
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 64a39f1 to 3c34540 Compare November 17, 2026 21:47
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from f195d75 to 78d47a6 Compare November 17, 2026 22:13
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 3c34540 to 8c978a6 Compare November 17, 2026 22:13
The provider API now also creates, reads, changes and deletes
recipients, rotates their tokens, and grants shares to them. UC records
each recipient's owner in its authorizer, in the same transaction as the
recipient itself. Granting a share to a recipient takes owning the
share, and owning the recipient or USE RECIPIENT, checked by annotation
with the recipient read from the typed body, so a request grants to one
recipient at most. Activation links are built on
server.opensharing.public-url, which embedded OpenSharing now requires.
The sharing docs page covers the new endpoints and privileges.

Signed-off-by: Sun Cao <sun.cao+data@databricks.com>

Support admin ownership transfers of recipients

PATCH /recipients/{recipient} takes a catalog admin transferring the
ownership to the body's ownerId, on its own, with UC's owner record
moving to the new owner in the same transaction.

Co-authored-by: Isaac <no-reply@databricks.com>

Document ownership transfers in the sharing docs

Co-authored-by: Isaac <no-reply@databricks.com>
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-recipients branch from 78d47a6 to 2dfe0f0 Compare November 17, 2026 22:42
@littlegrasscao
littlegrasscao force-pushed the sharing/provider-shares branch from 8c978a6 to 440d7c9 Compare November 17, 2026 22:42
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.

1 participant