Skip to content

[PGSQL] Extend Grant kind to support more than database object #217

Open
@Bastichou

Description

@Bastichou

Support schema,objects,objectType specifications on Grant kind to grand permission on other object than the database.

This feature request will cover the following issues:

What problem are you facing?

Currently the GRANT object only support granting privileges to the Database object: GRANT %s ON DATABASE %s TO %s %s %s

Grant kind only supports granting permissions on Database object.
The Grant kind doest allow fine-grained permission on sub-object such as schemas, extensions, tables, columns etc.

How could Crossplane help solve your problem?

Introducing Schema, ObjectType and Objects to better qualify the grant specification is probably the way to do (this is how this Terraform provider is taking care of this) but this would be a breaking change (unless we set object database as default maybe).

Slack discussion link: https://crossplane.slack.com/archives/C0384KWFD52/p1739825314454329

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions