AthenZ / k8s-athenz-sia

Apache License 2.0
1 stars 7 forks source link

SIA Init Container Shut Downs Successfully when Athenz Domain is not found and fails to read instance certificate #55

Closed mlajkim closed 10 months ago

mlajkim commented 10 months ago

Background

As the backup feature is introduced, the flow of the SIA has been modified and it fails to repeat its IdentityProvisioning when identity has not been successfully prepared as the following diagram with red square. (This did not happen is SIA v2.1.0) This bug let the init container shut down when instance certificate is not yet prepared. image

~Also found out it would be better to have the new BACKUP_MODE (the green square below) that reads instance certificate that is 3rd party generated.~ Decided not to have the backup mode, as BACKUP_MODE is only for k8s, not for others.

Also requires to implement reading instance certificate from local file, with the new implementation as following: image

The following diagram is the identitydProvisioning() flow for your information. image

TODOs

mlajkim commented 10 months ago

Closed as all TODOs handled.