-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use alternative ARN as credentials when configured #262
Conversation
Signed-off-by: Simeon Widdis <[email protected]>
…ode" This reverts commit 159137e. Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
Signed-off-by: Simeon Widdis <[email protected]>
val REPL_FLINT_ASSUME_SESSION_ROLE_ARN = | ||
FlintConfig("spark.repl.flint.ASSUME_ROLE_CREDENTIALS_ROLE_ARN") | ||
.datasourceOption() | ||
.doc("The role to use for writing state information to the session index. " + |
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.
Could you update user manual as well? Btw, this doesn't seem to only apply to REPL. It's used by low level Flint client? Should we follow spark.datasource.flint
prefix?
@@ -133,4 +133,8 @@ public String getPassword() { | |||
public int getSocketTimeoutMillis() { | |||
return Integer.parseInt(options.getOrDefault(SOCKET_TIMEOUT_MILLIS, String.valueOf(DEFAULT_SOCKET_TIMEOUT_MILLIS))); | |||
} | |||
|
|||
public String getSessionIndexARN() { | |||
return options.getOrDefault("spark.repl.flint.ASSUME_ROLE_CREDENTIALS_ROLE_ARN", ""); |
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.
np: use the constant?
Dropping this PR for adding a POC for OSS first, will revisit after the POC is done. |
Description
Optionally, a user can specify an ARN which will be used for credentials in REPL, instead of the default provider.
Issues Resolved
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.