Skip to content

Conversation

gertjanal
Copy link
Contributor

@gertjanal gertjanal commented Jul 14, 2025

Description

Added the property group-provider.group-case to etc/group-provider.properties with the following configuration options:

  • keep
  • lower
  • upper

Additional context and related issues

This change allows conversion of group names to uppercase and lowercase, to allow integration with Apache Ranger where silimar conversion is used; ranger.usersync.ldap.groupname.caseconversion = upper.

In a previous iteration I added this property to the LdapGroupProviderConfig, but I think it is better to allow the property to be set on all GroupProvider implementations.

Fixes #25396

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( X) Release notes are required, with the following suggested text:

## Group providers
* Added support for group name case conversion in the group provider properties. ({issue}`25396`)

Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@github-actions github-actions bot added the docs label Jul 14, 2025
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

1 similar comment
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal
Copy link
Contributor Author

gertjanal commented Jul 14, 2025

@MiguelWeezardo @mosiac1 Can you please review my changes?

Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

2 similar comments
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 1c671ac to efc293c Compare July 14, 2025 11:00
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from efc293c to 8f112a3 Compare July 14, 2025 11:00
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 8f112a3 to 294612e Compare July 14, 2025 16:02
Copy link

cla-bot bot commented Jul 14, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 294612e to 3a250e3 Compare July 16, 2025 19:59
Copy link

cla-bot bot commented Jul 16, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 3a250e3 to 67cd616 Compare July 25, 2025 13:03
Copy link

cla-bot bot commented Jul 25, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 67cd616 to 2ecd031 Compare July 25, 2025 19:19
@cla-bot cla-bot bot added the cla-signed label Jul 25, 2025
@gertjanal gertjanal self-assigned this Jul 27, 2025
@gertjanal gertjanal force-pushed the group-provider-group-case branch from 2ecd031 to 2ee6a9a Compare July 28, 2025 21:22
@raunaqmorarka raunaqmorarka requested a review from kokosing July 30, 2025 08:41
Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

Some nit comments. Thank you!

@github-actions github-actions bot added release-notes iceberg Iceberg connector delta-lake Delta Lake connector labels Aug 5, 2025
@kokosing
Copy link
Member

kokosing commented Aug 5, 2025

Please rebase properly and squash commits.

@gertjanal gertjanal force-pushed the group-provider-group-case branch from d138923 to e349c8f Compare August 5, 2025 10:22
@gertjanal gertjanal force-pushed the group-provider-group-case branch 2 times, most recently from e1b8c2a to cab059d Compare August 26, 2025 20:04
@github-actions github-actions bot removed the stale label Aug 27, 2025
@gertjanal gertjanal force-pushed the group-provider-group-case branch 5 times, most recently from 8f57d98 to 0851a8f Compare August 29, 2025 20:48
Copy link
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

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

Just did a doc review ... and left change requests for that. Ping me again when that is all updated

usernames from other systems (`[email protected]`) to simple usernames
(`alice`).
- {doc}`File group provider <group-file>` provides a way to assign a set
- {doc}`Group mapping <group-mapping>` provides ways to assign a set
Copy link
Member

Choose a reason for hiding this comment

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

Why are we renaming this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the file group provider is not the only supported provider and because the name of the md was changed

@gertjanal gertjanal force-pushed the group-provider-group-case branch from 0851a8f to 197a4fb Compare September 3, 2025 20:02
@gertjanal gertjanal requested a review from mosabua September 3, 2025 20:05
@gertjanal gertjanal force-pushed the group-provider-group-case branch from 197a4fb to 6bd1503 Compare September 3, 2025 20:05
@gertjanal gertjanal force-pushed the group-provider-group-case branch 2 times, most recently from d8afbaa to 1fb67df Compare September 10, 2025 18:39
Copy link
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

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

Docs look good now. Thank you. Should we go ahead and merge @kokosing ?

Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

% one comment

@gertjanal gertjanal force-pushed the group-provider-group-case branch 3 times, most recently from 618cbeb to 8a2fae2 Compare September 11, 2025 19:14
import com.google.inject.Inject;
import io.airlift.configuration.secrets.SecretsResolver;
import io.airlift.log.Logger;
import io.trino.spi.classloader.ThreadContextClassLoader;
Copy link
Member

Choose a reason for hiding this comment

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

I will merge that once the release goes out. I don't want to mess with release notes at the moment.

Add configuration property group-provider.group-case={keep/upper/lower}
@gertjanal gertjanal force-pushed the group-provider-group-case branch from 8a2fae2 to d5e142e Compare September 12, 2025 18:53
@kokosing kokosing merged commit 6b59de9 into trinodb:master Sep 18, 2025
98 of 99 checks passed
@github-actions github-actions bot added this to the 477 milestone Sep 18, 2025
@gertjanal gertjanal deleted the group-provider-group-case branch September 18, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Support Case Conversion for LDAP group provider
5 participants