[
https://issues.apache.org/jira/browse/SPARK-57890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kousuke Saruta updated SPARK-57890:
-----------------------------------
Description: (was: ### Problem
There are no types in Spark to represent an OIDC identity or short-lived
delegated credentials for propagation to executor
s.
### Goal
Introduce the foundational types that the rest of the credential propagation
framework builds on.
### Scope
Add to `org.apache.spark.security`:
- `UserContext`: Driver-side identity (principal, issuer, rawToken, issuedAt,
expiresAt). Not Serializable (driver-only). `toString()` redacts rawToken.
- `ServiceCredential`: Short-lived delegated credential (properties:
Map[String, String], expiresAt). Serializable.
- `UserCredentials`: Per-scheme Map[String, ServiceCredential] bundle.
Serializable. Does not contain UserContext or rawToken.
### Acceptance criteria
- Types compile and are usable from Scala and Java.
- `UserContext.toString()` does not expose rawToken.
- `UserCredentials` can be serialized and deserialized without loss.
- Unit tests cover serialization round-trip, redaction, and basic operations
(forScheme lookup, expiry checks).
Reference: SPIP design document Appendix A.)
> Add core credential types (UserContext, ServiceCredential, UserCredentials)
> ---------------------------------------------------------------------------
>
> Key: SPARK-57890
> URL: https://issues.apache.org/jira/browse/SPARK-57890
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Affects Versions: 4.3.0
> Reporter: Kousuke Saruta
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]