
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Genbox.SimpleS3.Extensions.HttpClient
Advanced tools
A simple, secure and high-performance library to communicate with Amazon S3 compatible APIs.
A C# implementation of Amazon's S3 API with a focus on simplicity, security and performance. Download or upload an object with a single line of code.
Features provided by SimpleS3:
See the provider status page for the list of operations that are currently supported. For the purpose of the examples below, we are going to use the Amazon S3 provider.
AmazonS3Client client = new AmazonS3Client("MyKeyId", "MyAccessKey", AmazonS3Region.EuWest1)
ServiceCollection services = new ServiceCollection();
services.AddAmazonS3(config => {
config.Credentials = new StringAccessKey("MyKeyId", "MyAccessKey");
config.Region = AmazonS3Region.EuWest1;
});
ServiceProvider provider = services.BuildServiceProvider();
AmazonS3Client client = provider.GetRequiredService<AmazonS3Client>();
The fluent Transfer API makes downloading/uploading objects easier by providing a convenient way of supplying information such as cache control, content-disposition, encryption keys, etc.
//Upload
IUpload upload = client.CreateUpload("MyBucket", "MyObject")
.WithAccessControl(ObjectCannedAcl.PublicReadWrite)
.WithCacheControl(CacheControlType.NoCache)
.WithEncryption();
PutObjectResponse putResp = await upload.UploadStringAsync("Hello World!");
//Download string
IDownload download = client.CreateDownload(bucketName, objectName)
.WithRange(0, 5);
GetObjectResponse getResp = await download.DownloadAsync();
Console.WriteLine(await dlResp.Content.AsStringAsync()); //Outputs "Hello"
SimpleS3 is extensible and has multiple different network drivers and extensions you can use. Click on the extension below for more information.
If you are already using the SimpleS3.AmazonS3 package, you already have a dependency on most of the extensions below. These are only for advanced users that want to tweak their setup to their own liking.
Nuget | Extension | Description |
---|---|---|
HttpClient | A network driver based on HttpClient | |
HttpClientFactory | A network driver based on HttpClientFactory. It supports dynamic DNS changes. | |
HttpClientFactory.Polly | Adds support for retry/timeout logic through Polly | |
ProfileManager | A profile manager that can safely persist your credentials to disk |
FAQs
A simple, secure and high-performance library to communicate with Amazon S3 compatible APIs.
We found that genbox.simples3.extensions.httpclient 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.