Skip to content

feat(spanner): Support creator_role for Fine-Grained Access Control #432

@apstndb

Description

@apstndb

Summary

There is no way to specify a creator_role when creating sessions, so consumers cannot use Fine-Grained Access Control (FGAC) with gcloud-spanner.

The Go client implements this as ClientConfig.DatabaseRole, which flows through to BatchCreateSessionsRequest.session_template.creator_role. gcloud-spanner should add an equivalent database_role field to ClientConfig.

Note

Adding a field to ClientConfig breaks consumers not using ..Default::default(). See related issue about #[non_exhaustive] for config structs.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions