Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

replicate logic used for admin to run queris on multiple UUIDs, Envs,… #472

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

peterbogdan
Copy link
Contributor

@peterbogdan peterbogdan commented Aug 7, 2024

Tested locally:

        response = self.session.post(
            f"{self.base_url}/queries/qa", json={"uuid_list": uuids, "query": "SELECT * FROM sudoers;"}
        )
        response.raise_for_status()

image

Let me know if there are any tests I should update or anything else
tests have passed in my fork here

I have replicated the logic from QueryRunPOSTHandler in Admin for this

Copy link
Collaborator

@javuto javuto left a comment

Choose a reason for hiding this comment

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

Nice job!

@javuto javuto merged commit 1b67aa4 into jmpsec:main Aug 8, 2024
24 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants