Skip to content

[pull] main from google:main#400

Merged
pull[bot] merged 1 commit into
CrazyForks:mainfrom
google:main
Jul 6, 2026
Merged

[pull] main from google:main#400
pull[bot] merged 1 commit into
CrazyForks:mainfrom
google:main

Conversation

@pull

@pull pull Bot commented Jul 6, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

InMemoryArtifactService and GcsArtifactService currently accept caller-supplied
artifact://... references and later dereference the embedded scope during
load_artifact() without checking that the embedded app_name, user_id, and
session_id still match the caller.

This patch keeps same-scope references working while blocking references that
escape the caller scope.

- Validate parsed artifact://... references against the caller app/user/session scope before storing them.
- Validate the scope again before dereferencing an artifact reference on load.
- Allow same-session references.
- Allow same-user user: references across sessions.

Closes #6124
Closes #6125

Co-authored-by: Jason Zhang <jasoncz@google.com>
PiperOrigin-RevId: 943314213
@pull pull Bot locked and limited conversation to collaborators Jul 6, 2026
@pull pull Bot added the ⤵️ pull label Jul 6, 2026
@pull pull Bot merged commit f863150 into CrazyForks:main Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant