You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem that you are trying to solve
When the auth webhook is receiving an add or update event for the Athenz Domain custom resource, it should verify the signature of the domain.
Describe the solution you'd like
When the auth webhook receives an add or update event for the Athenz Domain, it should extract the JWS Domain from the Athenz Domain Status field and then verify the signature of the JWS Domain object before calling the parseData function. A sample JWS domain object is shown below.
As can be seen above, the object consists of the payload, signature, keyid, and the protected fields. Before we can cast the payload into a domain object, we must verify the payload using the keyid specified. The steps are shown below.
Use the Athenz ZMS client GetPublicKeyEntry function to fetch the keyid specified.
Use the zmssvctoken ybase64 DecodeString functionality to decode the key response.
Use a jws library to verify the payload against the signature field using the public key fetched from ZMS.
Additional context
More context can be found in this issue which is also a prerequisite to complete this one.
The text was updated successfully, but these errors were encountered:
Please describe the problem that you are trying to solve
When the auth webhook is receiving an add or update event for the Athenz Domain custom resource, it should verify the signature of the domain.
Describe the solution you'd like
When the auth webhook receives an add or update event for the Athenz Domain, it should extract the JWS Domain from the Athenz Domain Status field and then verify the signature of the JWS Domain object before calling the parseData function. A sample JWS domain object is shown below.
As can be seen above, the object consists of the payload, signature, keyid, and the protected fields. Before we can cast the payload into a domain object, we must verify the payload using the keyid specified. The steps are shown below.
Use the Athenz ZMS client GetPublicKeyEntry function to fetch the keyid specified.
Additional context
More context can be found in this issue which is also a prerequisite to complete this one.
The text was updated successfully, but these errors were encountered: