Skip to content

Conversation

@jdkent
Copy link
Member

@jdkent jdkent commented Oct 21, 2025

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +199 to +206
def get_job_status(job_id: str):
try:
cached_job = _load_job(job_id)
except JobStoreError as exc:
_abort_with_job_store_error(exc)

if cached_job is None:
abort(404, description="job not found")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Enforce authentication/ownership before returning job status

The get_job_status handler reads job data from Redis and returns status/logs without ever calling _ensure_authenticated_user() or verifying that the requester matches cached_job["user_id"]. This means any unauthenticated client—or an authenticated user with a different account—can fetch another user’s job status and logs as long as they know the job ID. Both submit_job and list_jobs enforce ownership, so this route is an inconsistent and likely accidental gap that leaks potentially sensitive job data. Require authentication here and reject requests where the job’s user_id does not match the current user before calling the compose runner or returning data.

Useful? React with 👍 / 👎.

@jdkent jdkent merged commit 5b9f176 into master Oct 21, 2025
18 checks passed
@jdkent jdkent deleted the enh/add_job_submission branch October 21, 2025 03:55
@jdkent
Copy link
Member Author

jdkent commented Oct 21, 2025

related to #1188

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