vmware / cluster-api-provider-cloud-director

Cluster API Provider for VMware Cloud Director. The project is an open source implementation of K8s ClusterAPI project and allows customers to provision resources directly from VMware Cloud Director. It enables Cloud Director powered Clouds to be treated as yet-another-cloud in the multi-cloud journey for VMware Cloud Providers.
Apache License 2.0
37 stars 34 forks source link

Question: SA refresh token #649

Open name212 opened 3 months ago

name212 commented 3 months ago

Is your feature request related to a problem? Please describe.

Hi all. Our task is to implement authorization using service account tokens https://blogs.vmware.com/cloudprovider/2022/07/cloud-director-service-accounts.html I see that VCDCluster has a refreshToken parameter https://github.com/vmware/cluster-api-provider-cloud-director/blob/f0f724755bc01c938f53e2d650cb7f573ad7e046/templates/cluster-template.yaml#L39 Refresh token account service should be constantly updated. Having examined the source code, I did not find this mechanism. Please help me understand how to correctly use refresh token with vcd cluster api.

Describe the solution you'd like

N/A

Describe alternatives you've considered

No response

Additional context

No response

name212 commented 3 months ago

Or maybr better way to use api tokens? https://blogs.vmware.com/cloudprovider/2022/03/cloud-director-api-token.html