crossplane-contrib / crossplane-contrib/provider-sql
Add grant support for TABLESPACE
- Dominant language
- Go
- Stars
- 154
- Forks
- 119
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 8
Description
### What problem are you facing?
I have run into a issue when working with this provider and AWS Aurora PostgreSQL RDS. Since the aurora_admin role does not have the roles a normal postgres admin does, I have had to create a role and use that to create a database.
Recently database creation has been failing because my database creation role does not have CREATE right to the default TABLESPACE pg_default.
### How could Crossplane help solve your problem?
The work around for the above is to run
```
GRANT CREATE ON TABLESPACE pg_default TO
```
This is not supported at the moment by the GRANT resource type.
Can we add support for GRANT ON TABLESPACE to the GRANT resource type please
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the GRANT resource type and its existing SQL generation and tests, then inspect how privilege targets are represented. Reproduce the PostgreSQL/Aurora case with GRANT CREATE ON TABLESPACE pg_default TO ; done means the TABLESPACE form is accepted and produces the expected SQL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, go, postgresql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100