SecretStore is extended to support SecretStore.fromBytes and SecretStoreEntry.prototype.rawbytes() to get the raw buffer for a secret instead of the UTF8 encoding.
The new client cert option is then implemented for dynamic backends taking an object with a certificate string and keySecretStoreEntry properties, with error handling.
Implements https://github.com/fastly/js-compute-runtime/issues/794. API as per
types/backend.d.ts
.SecretStore is extended to support
SecretStore.fromBytes
andSecretStoreEntry.prototype.rawbytes()
to get the raw buffer for a secret instead of the UTF8 encoding.The new client cert option is then implemented for dynamic backends taking an object with a
certificate
string andkey
SecretStoreEntry
properties, with error handling.This PR also updates to the latest wit-bindgen, regenerating the world, and reenables the secret store tests which got dropped in the refactoring PR in https://github.com/fastly/js-compute-runtime/pull/673.