Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@gemeentenijmegen/apiclient
Advanced tools
Readme
An HTTP Api Client module. Used for applications requiring mutual TLS, backed by config in AWS.
Quickstart:
Install using npm:
npm i @gemeentenijmegen/apiclient
The client expects either the following environment parameters to be set, or to be provided a client certificate, private key and root ca:
MTLS_PRIVATE_KEY_ARN // AWS Arn to the secrets manager ARN holding the private key
MTLS_CLIENT_CERT_NAME // The name of an SSM parameter holding the client certificate
MTLS_ROOT_CA_NAME // The name of an SSM parameter holding the root ca
Example use:
// create a client
const apiClient = new ApiClient();
// init (get parameters from store etc.)
await apiClient.init();
// Use the client to perform a POST request and get responses.
const data = await apiClient.postData('/test', { data: 'test ' }, {'Content-type': 'application/json'});
// Use the client to perform a GET request and get data.
const data = await apiClient.getData('/test', {'Content-type': 'application/json'});
The request can throw an error, the actual message is logged, a generic Error is thrown.
FAQs
An HTTP Api Client module. Used for applications requiring mutual TLS, backed by config in AWS.
The npm package @gemeentenijmegen/apiclient receives a total of 250 weekly downloads. As such, @gemeentenijmegen/apiclient popularity was classified as not popular.
We found that @gemeentenijmegen/apiclient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.