crossplane-contrib / crossplane-contrib/provider-sql
role.postgresql: Secret empty when importing existing role
- Dominant language
- Go
- Stars
- 154
- Forks
- 119
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 8
Description
### What problem are you facing?
Secret is empty when Crossplane is taking control over existing role in the database. Expected it to be propagated with values, like when creating a new role or when changing password
DB: `create role example`
```
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Role
metadata:
name: example
spec:
forProvider: {}
providerConfigRef:
name:
writeConnectionSecretToRef:
name: example
namespace: crossplane-system
```
### How could Crossplane help solve your problem?
By publishing secrets more often.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue concerns importing an existing PostgreSQL role through the role.postgresql resource and publishing its connection secret. Start by tracing the existing-role import and secret publication paths, then verify that an imported role produces populated secret values like a newly created role or a password change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100