service-binding-operator
service-binding-operator copied to clipboard
Extract key from json object in a Secret
Enhancement Provide the capability to extract a key/field from a json object which is stored in a Secret resource object
Example
kind: Secret
data
connection: base64-encoded-string
The base64-encoded-string contains a JSON string, like
{
"postgres": {
"auth": {
"user": "blub",
"pass": "pass",
"method": "direct"
},
"host": "example.com",
"tls": {
}
}
}
Objective is, that SBO only inject/bind a specific field from the JSON, e.g. postgres.auth.user
and postgres.auth.pass
etc. in the resulting Secret in separate keys.
Probably, this is possible with the new go-template support in the mapping?
cc @redhat-developer/service-binding
We could handle this as part of the Mapping Extension in the spec: https://github.com/servicebinding/spec/issues/145
@haf-tech Hi, are you still interested in this feature? Please let us know.
@haf-tech Closing the issue now, if you are still interested feel free to re-open.