Skip to content

[SPARK-58756][BUILD][CORE][4.3] Revert OIDC credential propagation from branch-4.3 (moved to 4.4.0) - #57985

Closed
sarutak wants to merge 9 commits into
apache:branch-4.3from
sarutak:revert-oidc-from-4.3
Closed

[SPARK-58756][BUILD][CORE][4.3] Revert OIDC credential propagation from branch-4.3 (moved to 4.4.0)#57985
sarutak wants to merge 9 commits into
apache:branch-4.3from
sarutak:revert-oidc-from-4.3

Conversation

@sarutak

@sarutak sarutak commented Aug 13, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR reverts all OIDC credential propagation commits from branch-4.3. The feature will ship in 4.4.0 instead.

Reverted commits (newest first):

Commit Description
b7d480b53e4 [SPARK-58504] Simplify FileTokenIngestor cache and detect rotation by content
1623ebd0932 [SPARK-58472] Add AutoCloseable lifecycle to CredentialProvider SPI
e9b8b1b1301 [SPARK-57897] Create connector/credential-aws module with CI/release integration
057b6079689 [SPARK-57893] Implement UserCredentialManager
72c284fb1c2 [SPARK-58364] Rename the configuration namespace from spark.security.credentials to spark.security.oidc
b02704ad2ce [SPARK-57892] Add TokenIngestor interface and FileTokenIngestor implementation
e1eed92c6bc [SPARK-57891][FOLLOWUP] Fix contradictory thread-safety docs in CredentialProviderLoader
54af016ec8a [SPARK-57891] Add CredentialProvider SPI and ServiceLoader discovery
177b6cec95f [SPARK-57890] Add core credential types (UserContext, ServiceCredential, UserCredentials)

Not reverted:

Commit Reason
825f76a7e47 ([SPARK-57897][4.X][BUILD][FOLLOWUP]) Contains a fix to sql/connect/client/jdbc/pom.xml (gRPC API version) unrelated to OIDC. The OIDC-related portion (connector/credential-aws/pom.xml) is removed by the revert of e9b8b1b1301.

Conflict resolutions:

  1. connector/credential-aws/pom.xml (during revert of e9b8b1b1301):

    • Conflict type: modify/delete. The file was added by e9b8b1b1301 and later modified by 825f76a7e47 (parent version fix). Since the entire module is being removed, resolved by git rm.
  2. core/src/main/scala/org/apache/spark/internal/config/package.scala (during revert of 057b6079689):

    • Conflict type: content. The OIDC config keys (SECURITY_OIDC_*) were added by 057b6079689, and DIRECT_CREDENTIAL_PROVIDERS_ENABLED was added by a separate commit (bcbe9e0fdd8, SPARK-38954) in the same region.
    • Resolution: Removed the four SECURITY_OIDC_* config keys while retaining DIRECT_CREDENTIAL_PROVIDERS_ENABLED, which is used by SPARK-38954 (independent of OIDC).

Why are the changes needed?

The OIDC credential propagation feature was backported to branch-4.3 during development, but the release target has been moved to 4.4.0. Version annotations on master have already been updated to 4.4.0.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

build/sbt "core/compile" passes after all reverts.

Was this patch authored or co-authored using generative AI tooling?

Kiro CLI / Claude

…module with CI/release integration"

This reverts commit e9b8b1b.
…spark.security.credentials` to `spark.security.oidc`"

This reverts commit 72c284f.
…afety docs in `CredentialProviderLoader`"

This reverts commit e1eed92.
…erviceCredential, UserCredentials)"

This reverts commit 177b6ce.
@uros-b

uros-b commented Aug 13, 2026

Copy link
Copy Markdown
Member

Seems like a well-executed, exhaustively documented revert, thank you @sarutak! cc @cloud-fan

sarutak added a commit that referenced this pull request Aug 14, 2026
…om `branch-4.3` (moved to `4.4.0`)

### What changes were proposed in this pull request?
This PR reverts all OIDC credential propagation commits from `branch-4.3`. The feature will ship in `4.4.0` instead.

**Reverted commits (newest first):**

| Commit | Description |
|--------|-------------|
| `b7d480b53e4` | [SPARK-58504] Simplify FileTokenIngestor cache and detect rotation by content |
| `1623ebd0932` | [SPARK-58472] Add `AutoCloseable` lifecycle to `CredentialProvider` SPI |
| `e9b8b1b1301` | [SPARK-57897] Create `connector/credential-aws` module with CI/release integration |
| `057b6079689` | [SPARK-57893] Implement `UserCredentialManager` |
| `72c284fb1c2` | [SPARK-58364] Rename the configuration namespace from `spark.security.credentials` to `spark.security.oidc` |
| `b02704ad2ce` | [SPARK-57892] Add TokenIngestor interface and FileTokenIngestor implementation |
| `e1eed92c6bc` | [SPARK-57891][FOLLOWUP] Fix contradictory thread-safety docs in `CredentialProviderLoader` |
| `54af016ec8a` | [SPARK-57891] Add CredentialProvider SPI and ServiceLoader discovery |
| `177b6cec95f` | [SPARK-57890] Add core credential types (UserContext, ServiceCredential, UserCredentials) |

**Not reverted:**

| Commit | Reason |
|--------|--------|
| `825f76a7e47` ([SPARK-57897][4.X][BUILD][FOLLOWUP]) | Contains a fix to `sql/connect/client/jdbc/pom.xml` (gRPC API version) unrelated to OIDC. The OIDC-related portion (`connector/credential-aws/pom.xml`) is removed by the revert of `e9b8b1b1301`. |

**Conflict resolutions:**

1. **`connector/credential-aws/pom.xml`** (during revert of `e9b8b1b1301`):
   - Conflict type: modify/delete. The file was added by `e9b8b1b1301` and later modified by `825f76a7e47` (parent version fix). Since the entire module is being removed, resolved by `git rm`.

2. **`core/src/main/scala/org/apache/spark/internal/config/package.scala`** (during revert of `057b6079689`):
   - Conflict type: content. The OIDC config keys (`SECURITY_OIDC_*`) were added by `057b6079689`, and `DIRECT_CREDENTIAL_PROVIDERS_ENABLED` was added by a separate commit (`bcbe9e0fdd8`, SPARK-38954) in the same region.
   - Resolution: Removed the four `SECURITY_OIDC_*` config keys while **retaining** `DIRECT_CREDENTIAL_PROVIDERS_ENABLED`, which is used by SPARK-38954 (independent of OIDC).

### Why are the changes needed?
The OIDC credential propagation feature was backported to `branch-4.3` during development, but the release target has been moved to 4.4.0. Version annotations on master have already been updated to 4.4.0.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
`build/sbt "core/compile"` passes after all reverts.

### Was this patch authored or co-authored using generative AI tooling?
Kiro CLI / Claude

Closes #57985 from sarutak/revert-oidc-from-4.3.

Authored-by: Kousuke Saruta <sarutak@apache.org>
Signed-off-by: Kousuke Saruta <sarutak@apache.org>
@sarutak sarutak closed this Aug 14, 2026
@sarutak

sarutak commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

@sarutak

sarutak commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Merged. Thank you @uros-b for reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants