Less3 2.1.10
dotnet add package Less3 --version 2.1.10
NuGet\Install-Package Less3 -Version 2.1.10
<PackageReference Include="Less3" Version="2.1.10" />
paket add Less3 --version 2.1.10
#r "nuget: Less3, 2.1.10"
// Install Less3 as a Cake Addin #addin nuget:?package=Less3&version=2.1.10 // Install Less3 as a Cake Tool #tool nuget:?package=Less3&version=2.1.10
Less3 :: S3-Compatible Object Storage
Less3 is an S3-compatible object storage platform that you can run anywhere.
Use Cases
Core use cases for Less3:
- Local object storage - S3-compatible storage on your laptop, virtual machine, container, or bare metal
- Private cloud object storage - use your existing private cloud hardware to create an S3-compatible storage pool
- Development and test - local devtest against S3-compatible storage
- Remote storage - deploy S3-compatible storage in environments where you must control data placement
New in This Version
v2.1.x
- Dependency update and changes to improve compatibility with AWS CLI
- Testing with key AWS CLI capabilities, see AWSCLI.md
Help and Feedback
First things first - do you need help or have feedback? Please file an issue here.
Special Thanks
Thanks to @iain-cyborn for helping make the platform better!
Initial Setup
The binaries for Less3 can be created by compiling from source. Executing the binary will create a system configuration in the system.json
file along with the configuration database less3.db
.
The Server.DnsHostname
MUST be set to a hostname. You cannot use IP addresses (parsing will fail). Incoming HTTP requests must have a HOST header value that matches the value in Server.DnsHostname
. If it does not match, you will receive a 400/Bad Request
.
If you use *
, +
, or 0.0.0.0
for the Server.DnsHostname
, Less3 must be executed using administrative privileges (this is required by the underlying operating system).
To get started, clone Less3, build, publish, and run!
$ git clone https://github.com/jchristn/less3
$ cd less3
$ dotnet build -f netcoreapp2.2
$ dotnet publish -f netcoreapp2.2
$ cd less3/bin/debug/netcoreapp2.2/publish
$ dotnet less3.dll
S3 Client Compatibility
Less3 was designed to be consumed using either the AWS SDK or direct RESTful integration in accordance with Amazon's official documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html). Should you encounter a discrepancy between how Less3 operates and how AWS S3 operates, please file an issue.
I tested Less3 using the AWS SDK for C#, a live account on S3, CloudBerry Explorer for S3 (see https://www.cloudberrylab.com/explorer/windows/amazon-s3.aspx), and S3 Browser (see http://s3browser.com/). If you have or recommend other tools, please file an issue here and let me know!
Supported APIs
Please refer to the compatibility matrix found in 'assets' for a full list of supported APIs and caveats.
The following APIs are supported with Less3:
Service APIs
- ListBuckets
Bucket APIs
- Write
- WriteAcl
- WriteTagging
- WriteVersioning (no MFA delete support)
- Delete
- DeleteTagging
- Exists
- Read (list objects v2)
- ReadAcl
- ReadVersions
- ReadTagging
Object APIs
- Write
- WriteAcl
- WriteTagging
- Delete
- DeleteMultiple
- DeleteTagging
- Exists
- Read
- ReadAcl
- ReadRange
- ReadTagging
API Support
There are several minor differences between how S3 and less3 handle certain aspects of API requests. However, these should be inconsequential from the perspective of the developer (for instance, version IDs are numbers internally within less3 rather than strings).
Should you find any incompatibilities or behavioral issues with the APIs listed above that are considered 'supported', please file an issue here along with details on the expected behavior. I've tried to mimic the behavior of S3 while building out the API logic. A link to the supporting documentation will also be helpful to aid me in righting the wrong 😃
Bucket in Hostname vs URL
Less3 supports cases where having the bucket name as:
- Path style URLs - the bucket name is part of the URL (
http://[hostname]/[bucket]/[key]
) - Virtual hosted URLs - the bucket name is part of the hostname (
http://[bucket].[hostname]/[key]
)
To use path style URLs do not set Server.BaseDomain
. This is the default configuration.
To use virtual hosted URLs, you must:
- Set
Server.BaseDomain
- if your hostname islocalhost
, set this value to.localhost
(prepend with a period) - Set
Server.DnsHostname
to*
- Run Less3 as administrator
- Ensure your hosted hostnames (i.e.
[bucket].[hostname]
) are resolvable through DNS to your machine
Administrative APIs
Please refer to the 'wiki' for helpful notes including how to use the administrative APIs.
Open Source Packages
Less3 is built using a series of open-source packages, including:
- AWS SDK - https://github.com/aws/aws-sdk-net
- S3 Server - https://github.com/jchristn/s3server
- Watson Webserver - https://github.com/jchristn/WatsonWebserver
- WatsonORM - https://github.com/jchristn/watsonorm
Deployment in Docker
Please refer to Docker.md
and Dockerfile
in the project directory.
Version History
Refer to CHANGELOG.md for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Inputty (>= 1.0.6)
- S3Server (>= 5.3.1)
- SyslogLogging (>= 2.0.2)
- WatsonORM (>= 3.0.0)
- XmlToPox (>= 1.0.3)
-
net7.0
- Inputty (>= 1.0.6)
- S3Server (>= 5.3.1)
- SyslogLogging (>= 2.0.2)
- WatsonORM (>= 3.0.0)
- XmlToPox (>= 1.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.10 | 1,122 | 8/25/2023 |
2.1.9 | 141 | 8/25/2023 |
2.1.8 | 1,229 | 7/23/2023 |
2.1.6 | 3,636 | 10/7/2022 |
2.1.5 | 1,217 | 9/22/2022 |
2.1.4 | 453 | 9/21/2022 |
2.1.3 | 407 | 9/20/2022 |
2.1.2 | 655 | 9/15/2022 |
2.1.1 | 430 | 9/15/2022 |
2.1.0 | 502 | 9/14/2022 |
2.0.1.7 | 709 | 8/11/2022 |
2.0.1.6 | 647 | 4/1/2022 |
2.0.1.5 | 428 | 4/1/2022 |
2.0.1.4 | 416 | 3/31/2022 |
2.0.1.3 | 436 | 3/30/2022 |
1.5.0 | 378 | 6/15/2021 |
1.4.0 | 9,836 | 9/10/2020 |
1.3.0.6 | 8,172 | 6/16/2020 |
1.2.0 | 517 | 1/23/2020 |
1.1.0 | 517 | 9/13/2019 |
1.0.7 | 530 | 8/17/2019 |
1.0.5 | 543 | 8/17/2019 |
1.0.4 | 548 | 8/17/2019 |
1.0.3 | 533 | 8/16/2019 |
1.0.2 | 549 | 8/16/2019 |
1.0.0 | 526 | 8/10/2019 |
Dependency update, validation with AWS CLI