
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@rimac-technology/apollo-federation-file-upload
Advanced tools
apollo-federation-file-upload with graphql-upload upgraded to v16
This library makes it easier to support file uploads to your federated micro-services. It uses the Apollo server's solution. It works by simply redirecting the file uploaded stream to the micro-service. This package does not use third-party services to send the package to your micro-services.
Please, use version 4.0.0+. For Federation V1 use 3.0.0 or earlier.
By default, the FileUploadDataSource
uses chunked transfers; we
advise that you do not change this setup. However, for some reason
you can't support this kind of transfer, one can provide the useChunkedTransfer
option to the FileUploadDataSource
constructor as false
to not
use chunked transfer (See the example below on setting this property).
Be advised once again that this can lead to DDOS attacks.
On your Gateway, you must add the FileUploadDataSource
in order
to the micro-service be able to receive the uploaded file(s).
import { ApolloServer } from 'apollo-server';
import { ApolloGateway } from '@apollo/gateway';
import FileUploadDataSource from '@profusion/apollo-federation-upload';
const runServer = async () => {
const server = new ApolloServer({
gateway: new ApolloGateway({
// Add this line in order to support file uploads.
buildService: ({ url }) => new FileUploadDataSource({ url, useChunkedTransfer: true }),
serviceList: [
/* The services ... */
],
})
});
const { url } = await server.listen();
console.log(`🚀 Server ready at ${url}`);
};
runServer().catch(error => {
console.error('💥 Failed to start server:', error);
process.exit(1);
});
FAQs
apollo-federation-file-upload with graphql-upload upgraded to v16
The npm package @rimac-technology/apollo-federation-file-upload receives a total of 0 weekly downloads. As such, @rimac-technology/apollo-federation-file-upload popularity was classified as not popular.
We found that @rimac-technology/apollo-federation-file-upload demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.