
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@flystorage/google-cloud-storage
Advanced tools
This package contains the Flystorage adapter for Google Cloud Storage
Install all the required packages
npm install --save @flystorage/file-storage @flystorage/google-cloud-storage @google-cloud/storage
import {FileStorage} from '@flystorage/file-storage';
import {GoogleCloudStorageStorageAdapter} from '@flystorage/google-cloud-storage';
import {Storage} from '@google-cloud/storage';
const client = new Storage();
const bucket = client.bucket('{bucket-name}}', {
userProject: '{user-project}}',
});
const adapter = new GoogleCloudStorageStorageAdapter(bucket, {
prefix: '{optional-path-prefix}',
});
const storage = new FileStorage(adapter);
⚠️ Always use the FileStorage, it is essential for security and a good developer experience. Do not use the adapter directly.
Setting an retrieving visibility is only meaningful for legacy buckets. To use this functionality with Flystorage, pass the legacy visibility handling to the constructor:
import {GoogleCloudStorageStorageAdapter, LegacyVisibilityHandling} from '@flystorage/google-cloud-storage';
const adapter = new GoogleCloudStorageStorageAdapter(bucket, {
prefix: '{optional-path-prefix}',
}, new LegacyVisibilityHandling(
'allUsers', // acl entity, optional
'publicRead', // acl for Visibility.PUBLIC, optional,
'projectPrivate', // acl for Visibility.PRIVATE, optional,
));
FAQs
Unknown package
We found that @flystorage/google-cloud-storage 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.