Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@wundergraph/apollo-to-cosmo-metrics
Advanced tools
An apollo gateway plugin that exports schema usage metrics to cosmo
Cosmo's schema usage plugin for Apollo Gateway was build for the reason of having ability to report usage metrics to Wundergraph's cosmo ecosystem that helps to track operation's usage together with underlying types, arguments its inputs that schema can define.
Plugin implements ApolloServerPlugin interface that collects usage during request execution. Collected metrics are being stored in a local queue and being flushed via rpc to cosmo metrics endpoint once in a while (10-20 seconds, depends on config)
Plugin's implementation is currently missing some functionality, here is the list:
However, plugin is stable and is able to report lots of standard schema usage, this version is used is production already, results can be seen in schema usage tab in cosmo studio.
import { ApolloGateway } from '@apollo/gateway';
import { ApolloServer } from '@apollo/server';
import { startStandaloneServer } from '@apollo/server/standalone';
import { cosmoReportPlugin, CosmoClient } from '@wundergraph/apollo-to-cosmo-metrics';
const gateway = new ApolloGateway({
supergraphSdl: 'supergraph-url',
});
// Plugin definition
const cosmoReportPlugin = cosmoReportPlugin(
new CosmoClient({
endpointUrl: 'https://cosmo-metrics.wundergraph.com',
routerToken: 'router-token',
}),
);
const server = new ApolloServer({
gateway,
plugins: [cosmoReportPlugin],
});
startStandaloneServer(server);
FAQs
An apollo gateway plugin that exports schema usage metrics to cosmo
We found that @wundergraph/apollo-to-cosmo-metrics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.