Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Richer access checks #9553

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snazy
Copy link
Member

@snazy snazy commented Sep 17, 2024

This change introduces the ability to distinguish individual checks by the (external) API being used (Nessie, Iceberg) and for Nessie Catalog (Iceberg REST) to information about the kind(s) of changes being applied.

The individual changes that can be distinguished are:

  • Catalog API operation
  • Metadata update actions, with special actions wrt to the location property
  • Snapshot operation
  • Snapshot summary extracts (for example whether a snapshot added or removed data/delete files)

All new attributes can be retrieved from the existing Check type via new attributes.

@snazy snazy force-pushed the catalog-enriched-access-checks branch 11 times, most recently from 270a8c0 to 14d3c65 Compare September 19, 2024 18:07
snazy added a commit to snazy/nessie that referenced this pull request Sep 19, 2024
The change projectnessie#9553 has to pass an additional parameter depending on the "receiving API" to the `*ApiImpl` types, which is quite complex to implement with CDI. Therefore this change removes the old `Rest*Service` types and constructs the `*ApiImpl` types directly.
snazy added a commit to snazy/nessie that referenced this pull request Sep 19, 2024
The change projectnessie#9553 has to pass an additional parameter depending on the "receiving API" to the `*ApiImpl` types, which is quite complex to implement with CDI. Therefore this change removes the old `Rest*Service` types and constructs the `*ApiImpl` types directly.
@snazy snazy force-pushed the catalog-enriched-access-checks branch from 14d3c65 to b13477b Compare September 19, 2024 18:20
snazy added a commit to snazy/nessie that referenced this pull request Sep 19, 2024
The change projectnessie#9553 has to pass an additional parameter depending on the "receiving API" to the `*ApiImpl` types, which is quite complex to implement with CDI. Therefore this change removes the old `Rest*Service` types and constructs the `*ApiImpl` types directly.
snazy added a commit to snazy/nessie that referenced this pull request Sep 19, 2024
The change projectnessie#9553 has to pass an additional parameter depending on the "receiving API" to the `*ApiImpl` types, which is quite complex to implement with CDI. Therefore this change removes the old `Rest*Service` types and constructs the `*ApiImpl` types directly.
@snazy snazy force-pushed the catalog-enriched-access-checks branch 2 times, most recently from 77b5db9 to ebf1408 Compare September 19, 2024 18:35
@snazy snazy force-pushed the catalog-enriched-access-checks branch 2 times, most recently from f1cea06 to 2ecc1c3 Compare September 19, 2024 18:38
snazy added a commit that referenced this pull request Sep 20, 2024
The change #9553 has to pass an additional parameter depending on the "receiving API" to the `*ApiImpl` types, which is quite complex to implement with CDI. Therefore this change removes the old `Rest*Service` types and constructs the `*ApiImpl` types directly.
@snazy snazy force-pushed the catalog-enriched-access-checks branch from 2ecc1c3 to 494a336 Compare September 20, 2024 09:12
This change introduces the ability to distinguish individual checks by the (external) API being used (Nessie, Iceberg) and for Nessie Catalog (Iceberg REST) to information about the kind(s) of changes being applied.

The individual changes that can be distinguished are:
* Catalog API operation
* Metadata update actions, with special actions wrt to the `location` property
* Snapshot operation
* Snapshot summary extracts (for example whether a snapshot added or removed data/delete files)

All new attributes can be retrieved from the existing `Check` type via new attributes exposed via `AccessCheckMeta` holding the source API, "for write flag" and per-content-key flags. The flags represent the mentioned "individual changes".

Fixes projectnessie#9559 (and more)
@snazy snazy force-pushed the catalog-enriched-access-checks branch from 494a336 to 3018f9f Compare September 20, 2024 09:28
@snazy snazy added this to the 0.98.0 milestone Sep 20, 2024
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