@evervault/sdk
Advanced tools
Changelog
6.3.1
947115b: Correct logic for parsing domains from URLs supplied to the http request function: add fallback support for path alongisde pathname.
Fix bug in parsing raw strings supplied to request to URLs by correcting object keys.
Changelog
6.3.0
720476d: Extend Relay outbound/forward proxy support in Node to include the ability to filter requests by path using decryptionDomains
.
Requests can be filtered at the path level by appending an absolute or wildcard path to the decryption domains option, following similar wildcard logic to the domains themselves. For example:
// Existing behaviour will be observed, proxying requests to the host 'api.com'.
const ev = new Evervault('app_uuid', 'api_key', {
decryptionDomains: ['api.com'],
});
// Will only proxy requests to host 'api.com' which have a path starting with '/users/'.
const ev = new Evervault('app_uuid', 'api_key', {
decryptionDomains: ['api.com/users/*'],
});
// Will only proxy requests to host 'api.com' which have an exact path of '/settings'.
const ev = new Evervault('app_uuid', 'api_key', {
decryptionDomains: ['api.com/settings'],
});
This change is compatible with the existing hostname wildcard behaviour of decryptionDomains
.
Changelog
6.1.0
createEnclaveHttpsAgent
to return an EnclaveAgent
class which extends https.Agent to manage HTTPS connections. This Agent can be passed into HTTP clients like Axios to attest a connection to an Enclave.Changelog
6.0.0
0feef7d: The Evervault Attestation Bindings have been removed as an external dependency including them instead as a plugin at runtime.
The attestation bindings now require an explicit opt-in. For customers that do not use Evervault Enclaves, there should be no change to how you use the SDK.
If you use Evervault Enclaves, you'll need to install the Attestation Bindings separately:
npm i @evervault/attestation-bindings
After installing the attestation bindings, you can use the existing enableEnclaves
function using the bindings as the second parameter:
const Evervault = require('@evervault/sdk');
const attestationBindings = require('@evervault/attestation-bindings');
const evervault = new Evervault('app_id', 'api_key');
await evervault.enableEnclaves(
{
'my-enclave': {
// attestation measures...
},
},
attestationBindings
);