[ 
https://issues.apache.org/jira/browse/SPARK-57890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093318#comment-18093318
 ] 

Anupam Yadav commented on SPARK-57890:
--------------------------------------

I can work on this.

> 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 sub-task is part of the umbrella 
> [SPARK-57703|https://issues.apache.org/jira/browse/SPARK-57703] (OIDC 
> Credential Propagation).
> h2. Problem
> There are no types in Spark to represent an OIDC identity or short-lived 
> delegated credentials for propagation to executors.
> h2. Goal
> Introduce the foundational types that the rest of the credential propagation 
> framework builds on.
> h2. 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.
> h2. 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|https://docs.google.com/document/d/1usJKncCPMiyFUg7aIdpZ0HQsklXIHow_sU_6dfFMjN0/edit].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to