Skip to content

Allow custom values for Workgroup and Database, for more restrictive IAM roles #803

@BradBarnich

Description

@BradBarnich

Is your feature request related to a problem? Please describe.
We maintain tight IAM permissions around Athena, and we'd like to avoid List kind of permissions that would expose other workgroups and databases to the role. We have multiple databases that are accessed independently, there is no reason one should 'see' the other.

Describe the solution you'd like
Allow entering custom values for database and workgroup. We know the values, but the current UI requires that the values come from the API call.

Describe alternatives you've considered
Our workaround is to grant athena:ListWorkGroups and glue:GetDatabases temporarily, only to create the datasource and then revoke that policy.

Additional context
The change might be as simple as setting allowCustomValue [1] on ConfigSelects [2] for Workgroup and Database

1: https://github.com/grafana/grafana-aws-sdk-react/blob/main/src/sql/ConfigEditor/ConfigSelect.tsx#L20
2: https://github.com/grafana/athena-datasource/blob/main/src/ConfigEditor.tsx#L138

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions