mirror of
https://github.com/floci-io/floci.git
synced 2026-12-03 02:07:58 -05:00
The generated request-resources table reads the workgroup of an Athena query execution or named query through its id (`through`), which no service answered, so GetQueryExecution, GetQueryResults, GetQueryRuntimeStatistics, StopQueryExecution, GetNamedQuery, UpdateNamedQuery and DeleteNamedQuery were checked on `*`. AthenaStoredResourceArns now answers it with the workgroup the stored query execution or named query runs in, `primary` for one naming none, looked up read-only; an id Athena holds none of names nothing. Athena kept query executions by their id alone, so a request sent to one Region could name another Region's execution. Each execution's Region is now recorded beside it (query-regions.json), and an execution is checked on its workgroup in the Region it was started in, whichever Region the request is sent to: a grant on another Region's workgroup of the same name does not reach it, and a deny on its own workgroup is not passed by through another Region.