{"id":13615856,"url":"https://github.com/lostintime/aws-s3-webdav","last_synced_at":"2025-07-14T00:08:03.907Z","repository":{"id":148217454,"uuid":"129399063","full_name":"lostintime/aws-s3-webdav","owner":"lostintime","description":"Basic AWS S3 WebDAV interface implemented in Rust","archived":false,"fork":false,"pushed_at":"2018-09-19T06:22:56.000Z","size":94,"stargazers_count":53,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T19:26:28.559Z","etag":null,"topics":["aws","aws-s3","rust-lang","webdav"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostintime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-13T12:26:21.000Z","updated_at":"2025-07-09T08:39:55.000Z","dependencies_parsed_at":"2023-03-30T14:32:48.008Z","dependency_job_id":null,"html_url":"https://github.com/lostintime/aws-s3-webdav","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lostintime/aws-s3-webdav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Faws-s3-webdav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Faws-s3-webdav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Faws-s3-webdav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Faws-s3-webdav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostintime","download_url":"https://codeload.github.com/lostintime/aws-s3-webdav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Faws-s3-webdav/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265224162,"owners_count":23730346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-s3","rust-lang","webdav"],"created_at":"2024-08-01T20:01:19.097Z","updated_at":"2025-07-14T00:08:03.882Z","avatar_url":"https://github.com/lostintime.png","language":"Rust","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"AWS S3 WebDAV\n=================\n\nBasic AWS S3 WebDAV interface implemented in [Rust](https://www.rust-lang.org/).\n\n## Supported methods\n\n### `GET`\n\nReturns object contents:\n\n```\ncurl -X GET http://localhost:8080/hello.txt\n```\n\n### `HEAD`\n\nCheck object exists without fetching the body:\n\n```\ncurl -X HEAD http://localhost:8080/hello.txt\n```\n\n### `PUT`\n\nCreate or Update object:\n\n```\ncurl -X PUT http://localhost:8080/hello.txt \\\n  -d 'Hello there!'\n```\n\nor from file:\n\n```\ncurl -X PUT http://localhost:8080/hello.txt \\\n  --upload-file ./hello.txt\n```\n\n### `DELETE`\n\nDelete object:\n\n```\ncurl -X DELETE http://localhost:8080/hello.txt \n```\n\n### `COPY`\n\nCopy object within same bucket:\n\n```\ncurl -X COPY http://localhost:8080/hello.txt \\\n  -H 'Destination: /hello2.txt'\n```\n\n### `MOVE`\n\nMove object within same bucket:\n\n```\ncurl -X MOVE http://localhost:8080/hello.txt \\\n  -H 'Destination: /hello2.txt'\n```\n\n## Configuration\n\nRunning application requires few configuration options.\n\n### AWS Region (`required`)\n\nAWS service region ID can be provided using `--aws-region` argument or `AWS_REGION` environment variable.\n\nCheck Complete regions list at [https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)\n\n\n### Bucket Name (`required`)\n\nAWS S3 bucket name can be provided using `--aws-bucket` argument or `AWS_BUCKET` environment variable.\n\n### Key Prefix (`optional`)\n\nA prefix to be used with key, will be automatically added before requested service path,\nCan be provided usign `--aws-key-prefix` argument or `AWS_KEY_PREFIX` environment variable.\n\nFor example with `--aws-key-prefix=folder1/`, path `http://\u003caws-webdav-host:port\u003e/path/to/my/file.txt` will be translated to\n`folder1/path/to/my/file.txt` s3 object key.\n\n### AWS Credentials (`optional`)\n\nIf S3 bucket requires authorization, credentials may be provided via:\n\n#### Environment variables\n\n  * `AWS_ACCESS_KEY_ID` for access key\n  * `AWS_SECRET_ACCESS_KEY` for secret\n\n#### Credentials File\n\nAWS Credentials file may be used at default location (`~/.aws/credentials`) or custom location \nconfigured via `AWS_SHARED_CREDENTIALS_FILE` environment variable.\n\nProfile may be optionally configured using `AWS_PROFILE` environment variable. `default` profile is used by default.\n\n\n#### IAM instance profile\n\nWill only work if running on an EC2 instance with an instance profile/role.\n\n_(May not work with docker image, plase let me know if it does)._\n\n\n## Running with Docker\n\nThere is an automated docker build configured for this repo: [lostintime/aws-s3-webdav](https://hub.docker.com/r/lostintime/aws-s3-webdav/).\n\n### Run service container\n\n```\ndocker run --read-only --rm \\\n    -p 127.0.0.1:8080:8080 \\\n    -v ~/.aws/credentials:/.aws/credentials \\\n    -e \"AWS_SHARED_CREDENTIALS_FILE=/.aws/credentials\" \\\n    -e \"AWS_PROFILE=default\" \\\n    -e \"AWS_REGION=eu-central-1\" \\\n    -e \"AWS_BUCKET=my-bucket\" \\\n    -e \"AWS_KEY_PREFIX=tmp/\" \\\n    lostintime/aws-s3-webdav:0.1.0\n```\n\n\n## Limitations\n\n### HTTPS\n\nApplication now uses `http` protocol for communication with AWS endpoint, ssl sessions seems to leak some memory when using `https`, and I didn't figure out how to fix it yet.\n\n### Multipart Uploads\n\nTo upload files application uses [AWS Mulipart Upload](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html), which in case of failures in the middle of the upload will leave parts stored in S3, and you will be\ncharged for patrs uploaded, so it's recommended to configure [Bucket Lifecycle Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config).\n\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Faws-s3-webdav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostintime%2Faws-s3-webdav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Faws-s3-webdav/lists"}