I told @ofirc-wiz in private - I don't like the fact that the broker/connector code is looking at WIZ_ENV. it's bad.
you have to consider the scenario where customers do this:
create a k8s secret containing the wiz SA details (including endpoint)
install a wiz deployment
in this case if you refer to WIZ_ENV as part of the code in (2) and not read from the secret created in (1), you will have bugs. so let's fix the current bug and stop assuming the endpoint is passed as part of the chart..
I told @ofirc-wiz in private - I don't like the fact that the broker/connector code is looking at WIZ_ENV. it's bad. you have to consider the scenario where customers do this:
in this case if you refer to WIZ_ENV as part of the code in (2) and not read from the secret created in (1), you will have bugs. so let's fix the current bug and stop assuming the endpoint is passed as part of the chart..