You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2026/08/19 21:10:00 UTC
[jira] [Updated] (SPARK-57890) Add core credential types (UserContext, ServiceCredential, UserCredentials)
[ https://issues.apache.org/jira/browse/SPARK-57890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kousuke Saruta updated SPARK-57890:
-----------------------------------
Fix Version/s: 4.4.0
(was: 4.3.0)
> 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
> Assignee: Anupam Yadav
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.4.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org