-
Notifications
You must be signed in to change notification settings - Fork 38
Figure out how to handle sensitive information for managed resources #35
Comments
I think there are two issues regarding sensitive information:
The tricky part is that there are cases where without implementing (2), we can't really remove the field. For example, RDS instance has a field to take password. We can copy the content of We can possibly either expand the scope of this issue to also generate and process |
Good point. Originally, I was thinking the scope of this issue is more around the first one. if field is marked as sensitive & input (i.e. from spec) => generate a SecretKeyRef field and read from the referenced secret in GetParameters. Considering the possible flow above, I think it makes sense to handle both cases with this ticket. |
We'd have to add I think it starts to feel like we're overloading the functions that seem very basic on the outside, i.e. classic getters and setters, with some logic that are normally handled elsewhere in manually written controllers. I wonder if we can extend func (r *RDSInstance) GetConnectionDetails(tfstate map[string]interface{}) (map[string][]byte, error)
func (r *RDSInstance) GetSensitiveParameters(kube client.Client) (map[string]interface{}, error) What do you think? I don't really love the fact that we'd have to import controller-runtime in |
What problem are you facing?
Crossplane provides a way to connect to cloud resources (if applicable) by writing the required details to connect into a Kubernetes secret.
These details should include all fields that would need to be required to connect including sensitive ones like
username
andpassword
and not necessarily sensitive ones likeport
information.How could Terrajet help solve your problem?
We would need to define/implement a way to generate these connection details with terrajet.
I am assuming this information could be composed using the
attributes
andsensitive_attributes
fields in terraform state.The text was updated successfully, but these errors were encountered: