Open vsoloviov opened 1 year ago
Similar issue happens if I build a datacenter with manual managementApiAuth
and then disable it: it sends an http request to the https api endpoint
Actions to take here:
@burmanm is this ticket still current? It is from last year so I'm confirming before I start work on it.
Also, can you clarify what you mean by check if ObservedGeneration < Generation of CassandraDatacenter
? What ObserverGeneration are we checking? Why would the ObservedGeneration and "Generation" be different if you're referring to the CassandraDatacenter in both cases?
| @burmanm is this ticket still current? It is from last year so I'm confirming before I start work on it.
Yes, it is.
| Also, can you clarify what you mean by check if ObservedGeneration < Generation of CassandraDatacenter? What ObserverGeneration are we checking? Why would the ObservedGeneration and "Generation" be different if you're referring to the CassandraDatacenter in both cases?
Whenever you update the CassandraDatacenter, the ObservedGeneration is less than Generation until the reconciliation has finished. In this case, it wouldn't since it fails midway. However, I think you can just skip that check for now and simply verify if the target pod has https enabled or not for mgmt-api.
Currently, the syntax is func BuildManagementApiSecurityProvider(dc *api.CassandraDatacenter)
, yet this isn't sufficient. On the other hand, be careful that the SecurityProvider is the HTTPS one when constructing the PodTemplateSpec and other required modifications as enabling auth would require the https one to provide those curl commands and other properties. So it's not just the httphelper client.
What happened?
When I added
to existing datacenter it failed to update sts because API is still running on http, but operator sends https requests:
What did you expect to happen?
I expected operator to communicate with pods and update configuration to enable mTLS on both operator and mgmt api sides.
How can we reproduce it (as minimally and precisely as possible)?
Update datacenter configuration:
cass-operator version
1.17.2
Kubernetes version
1.27.4
Method of installation
Argo
Anything else we need to know?
No response
┆Issue is synchronized with this Jira Story by Unito ┆Issue Number: CASS-16