Skip to content

DOM-75891 replace get_job with get_job_or_404, require dataset_id in request definitions#62

Merged
niole merged 1 commit into
mainfrom
niole.DOM-75891.more_uath
Apr 14, 2026
Merged

DOM-75891 replace get_job with get_job_or_404, require dataset_id in request definitions#62
niole merged 1 commit into
mainfrom
niole.DOM-75891.more_uath

Conversation

@niole
Copy link
Copy Markdown
Collaborator

@niole niole commented Apr 13, 2026

JIRA https://dominodatalab.atlassian.net/browse/DOM-75891

This PR fixes almost all remaining un-authorized paths. It uses get_job_or_404 at the entry level for routes or services depending on which retrieves the first job. It also requires dataset_id in requests coming into the app so that we can't hit paths that retrieve data from the filesystem. THis is both a bug fix and an auth fix.

I filed another ticket for fixing something that appears to be an issue with resolve notebook data https://dominodatalab.atlassian.net/browse/DOM-76328

@niole niole changed the title Update agents, replace route level get_job with get_job_or_404, requi… DOM-75891 replace get_job with get_job_or_404, require dataset_id in request definitions Apr 13, 2026
@niole niole marked this pull request as ready for review April 13, 2026 12:32
@niole niole requested review from a team and ddl-ryan-connor April 13, 2026 12:32
Comment thread automl-service/AGENTS.md
Unless I already specified that something should be optional, assume that when making new functions, every argument is
required.

When implementing code changes, if you start implementing a giant code diff you should stop and run your changes by me first.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i've had to tell it this many times in whatever project im working in, even if it's already saved as a memory

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah it can really dig itself into a hole. it's hard to develop in a completely black box way with these things

@niole niole merged commit 677762c into main Apr 14, 2026
1 check passed
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