Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply "revoke all on database mydb from public;" after creating mydb - In general, we need revoke functionalities (Revoke resource). #189

Closed
olikyr opened this issue Jul 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@olikyr
Copy link
Contributor

olikyr commented Jul 4, 2024

What problem are you facing?

I need to find a way to apply a revoke on default privileges after db creation.
"revoke all on database mydb from public;"

How could Crossplane help solve your problem?

  • Implement a revoke resource, similar to grant resource, which will manage this functionality.
    or
  • Allow GRANT object to take an empty array (or "NONE" keyword) that means no privileges are set.
    spec: deletionPolicy: Orphan forProvider: database: mydb databaseRef: name: mydb privileges: [] role: PUBLIC providerConfigRef: name: default-sql-postgres-provider-config
    a change of logic inside func createGrantQueries(gp v1alpha1.GrantParameters, ql *[]xsql.Query) would be necessary.
@olikyr olikyr added the enhancement New feature or request label Jul 4, 2024
@Duologic Duologic moved this to In progress in Provider SQL Nov 29, 2024
@olikyr
Copy link
Contributor Author

olikyr commented Jan 14, 2025

modifications in this PR were applied in 2 sub-prs

#208
and
#207

@olikyr olikyr closed this as completed Jan 14, 2025
@github-project-automation github-project-automation bot moved this from In progress to Done in Provider SQL Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant