-
Notifications
You must be signed in to change notification settings - Fork 602
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
config
: add iceberg_rest_catalog_authentication_mode
#24986
base: dev
Are you sure you want to change the base?
config
: add iceberg_rest_catalog_authentication_mode
#24986
Conversation
Retry command for Build#61413please wait until all jobs are finished before running the slash command
|
f1ecafb
to
819b3f9
Compare
819b3f9
to
2b38389
Compare
CI test resultstest results on build#61423
test results on build#61438
test results on build#61474
|
1a892e9
to
bb87125
Compare
std::optional<iceberg::rest_client::credentials>& credentials, | ||
std::optional<iceberg::rest_client::oauth_token>& token) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just return a struct or pair?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, happy to change this from in/out parameters to a return type if that would be more ergonomic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we generally don't use out-parameters unless the isn't a good alternative. struct credentials_or_token { ... };
For allowing the user to specify a uri to an OAuth2 server for use in authenticating requests made by the `catalog_client` to the catalog.
For configuring the authentication method used for the `catalog_client` requests made to the catalog. There are three possible values for this `enum`: 1. `::none`, where no authentication is attempted. 2. `::bearer`, where the token provided via `iceberg_rest_catalog_token` is used for authentication. 3. `::oauth2`, where the client credentials defined via `iceberg_rest_catalog_client_id/secret` are used to retrieve an access token for future use.
bb87125
to
a5b738a
Compare
Force push to:
|
Depending on authentication settings, we may either construct user credentials for use with the OAuth2 endpoint for retrieving a token, construct the token directly, or do nothing at all.
a5b738a
to
84e8449
Compare
Force push to:
|
84e8449
to
493a2a2
Compare
Add
iceberg_rest_catalog_authentication_mode
andiceberg_rest_catalog_oauth2_server_uri
configuration options.Backports Required
Release Notes