apache / apache/polaris

`StorageCredentialCache` can provide unusable credentials

Open
#2,046 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.1k
Forks
522
Avg merge
2d 1h
Merged PRs (30d)
140

Description

### Describe the bug

The code design of `StorageCredentialCache` ensures that credentials are cached for some defined amount of time. Returned cached credentials are guaranteed to be valid when retrieved from the cache, but there's no guarantee that the returned credentials will be valid for the next N minutes. It can happen that the vended credentials returned to clients are not or not long enough valid.

### To Reproduce

_No response_

### Actual Behavior

_No response_

### Expected Behavior

_No response_

### Additional context

_No response_

### System information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating StorageCredentialCache and tracing its credential retrieval callers and expiry checks. Confirm the required future-validity window with maintainers, then add a regression test showing that returned credentials remain usable for that window; done means the cache no longer vends credentials that expire too soon.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.