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.
@acusti/aws-signature-v4
Advanced tools
Readme
aws-signature-v4
is a lightweight isomorphic module that generates
request headers to fulfill the AWS SigV4 signing process.
npm install @acusti/aws-signature-v4
# or
yarn add @acusti/aws-signature-v4
The primary export is getHeadersWithAuthorization
, an async function that
takes three arguments: a resource
(i.e. request URL), a fetch init object
(i.e. request options), and an AWS options object where you can pass
credentials, the region, and the service name (see the type
definition). If the AWS region isn’t passed and can be derived from the
resource URL, it will be. The function’s return promise is resolved with a
plain JS object of the request’s headers with all required authorization
headers merged in over top of any existing headers passed to the function.
import { getHeadersWithAuthorization } from '@acusti/aws-signature-v4';
const resource = 'https://_.appsync-api.us-west-2.amazonaws.com/graphql';
const body = `{"query": "query { listItems { items { id } } }"}`;
const headers = await getHeadersWithAuthorization(
resource,
{ body, headers: { method: 'POST' } },
{
accessKeyId: '…',
region: 'us-west-2',
secretAccessKey: '…',
service: 'appsync',
sessionToken: '…',
},
);
const response = await fetch(resource, { body, headers });
FAQs
A lightweight isomorphic module to generate request headers that fulfill the AWS SigV4 signing process
The npm package @acusti/aws-signature-v4 receives a total of 3 weekly downloads. As such, @acusti/aws-signature-v4 popularity was classified as not popular.
We found that @acusti/aws-signature-v4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.