Skip to content

docs(site): add Delegation Service documentation#3990

Draft
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:delegation-servie
Draft

docs(site): add Delegation Service documentation#3990
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:delegation-servie

Conversation

@jbonofre
Copy link
Member

Describe how external services can integrate with Polaris using pull, push, and event-driven patterns for policy retrieval, table change notifications, and reactive event listeners.

Describe how external services can integrate with Polaris using pull,
push, and event-driven patterns for policy retrieval, table change
notifications, and reactive event listeners.
@github-project-automation github-project-automation bot moved this to PRs In Progress in Basic Kanban Board Mar 12, 2026
@jbonofre jbonofre marked this pull request as draft March 12, 2026 15:09
@jbonofre jbonofre added the documentation Improvements or additions to documentation, especially web site content label Mar 12, 2026
@jbonofre
Copy link
Member Author

@flyrain @singhpk234 @dimas-b @adnanhemani as we discussed together during the last Polaris Community Sprint, I tried to gather the different perspective about "external services" options, e.g. "Delegation Service".

I'm trying first to provide an overview of the different "components" involved, with some use cases in perspective.

I'm happy to update this documentation with your suggestions.

Thanks !

Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

Thanks for putting this doc together, @jbonofre ! As for me, it looks very useful to inform Polaris users and offer starting points for integrating it into larger environments 👍

Some minor comments below.


```
┌──────────────────────┐ ┌─────────────────────┐
│ External Service │ │ External Catalog │
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: misaligned vertical bars

**Considerations:**
- Requires the external system to implement notification sending logic (e.g., a Hive hook or a CDC pipeline)
- The caller must manage monotonically increasing timestamps and handle `409 Conflict` rejections
- Only applies to table metadata synchronization — not for querying policies or configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

Does Polaris already support this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet, just a pure speculation from my side 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

ok 🙂 but it might be best to rephrase since users will read it and make assumptions followed by questions, I'm sure 😅

| Mode | Header Value | Description |
|------|-------------|-------------|
| **Vended Credentials** | `vended-credentials` | Polaris generates short-lived, scoped credentials (e.g., AWS STS tokens) and sends them to the client. The client uses these credentials directly to access storage. |
| **Remote Signing** | `remote-signing` | The client sends data access requests back to Polaris, which signs them on behalf of the client. The client never receives raw storage credentials. |
Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK, Remote Signing is not yet fully supported: #2280 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

True, but it will (at some point) 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add WIP for now?

# specific language governing permissions and limitations
# under the License.
#
title: Delegation Service
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: Integration with External Services?

Copy link
Member Author

Choose a reason for hiding this comment

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

I used Delegation Service because it's the wording we used during the Polaris Community Sprint.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine too... It's just that for me personally Delegation does not ring right in this context... Maybe I was dealing with OAuth2 delegation too much 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's see what the others are thinking. I'm fine either way 😄

register a listener for `AFTER_ATTACH_POLICY` or `AFTER_UPDATE_POLICY` events and trigger a policy refresh in
the external service when relevant events fire.

## Push Pattern — Sending Notifications to Polaris
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused by this section. How is notification endpoint related to the delegation service?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to provide a "landscape" of the possible interactions between external services and Polaris.

If it's confusing, I'm fine to remove this section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation, especially web site content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants