Closed gnarea closed 1 year ago
I need to get the relevant example from the Internet Gateway. It won't be something we can simply copy/paste but it will be mostly what we need.
remove the part where we are logging the decrypted parcel
// This log is needed not to throw decryptionResult is unused error.
// Will be removed in the next PR
parcelAwareLogger.info(
{ test: decryptionResult.senderSessionKey.keyId },
'Invalid service message',
);
:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:
v1.3.0
Your semantic-release bot :package::rocket:
This Part 3a of the
POST /
endpoint in the PoHTTP server. If the service message has a content type ofapplication/vnd+relaycorp.awala.pda-path
.We don't have examples of this in the Pong app because here we're going to use the high-level utilities introduced in #31.
This task comprises:
const params = PrivateEndpointConnParams.deserialize(...)
from the Awala core library. Any parsing error should be logged and ignored (HTTP accepted response).fastify.activeEndpoint.savePrivateEndpointChannel(params)
.InternetPrivateEndpointChannel.savePrivateEndpointChannel()
, in order to store the peer's gateway address (present inparams
). Notes:PrivateEndpoint
), with the fieldspeerId
andgatewayInternetAddress
.super.savePrivateEndpointChannel(params)
before attempting to upsert the private endpoint.See also: