{"id":25776448,"url":"https://github.com/findify/s3mock","last_synced_at":"2026-01-14T03:38:52.797Z","repository":{"id":37362640,"uuid":"65368375","full_name":"findify/s3mock","owner":"findify","description":"Embedded S3 server for easy mocking","archived":true,"fork":false,"pushed_at":"2023-11-14T20:22:24.000Z","size":299,"stargazers_count":387,"open_issues_count":81,"forks_count":108,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-02-27T06:06:34.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-10T09:15:58.000Z","updated_at":"2024-11-04T21:58:59.000Z","dependencies_parsed_at":"2024-06-19T00:20:53.063Z","dependency_job_id":"77bfcf8d-3d22-41c4-8c4f-8786d1f4343b","html_url":"https://github.com/findify/s3mock","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/findify/s3mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findify%2Fs3mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findify%2Fs3mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findify%2Fs3mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findify%2Fs3mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findify","download_url":"https://codeload.github.com/findify/s3mock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findify%2Fs3mock/sbom","scorecard":{"id":400063,"data":{"date":"2025-08-11","repo":{"name":"github.com/findify/s3mock","commit":"068a585c0aef6a5af5c9057db295e9644cfb085b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":6,"reason":"Found 11/16 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE.md:0","Info: FSF or OSI recognized license: MIT License: LICENCE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T19:53:21.531Z","repository_id":37362640,"created_at":"2025-08-18T19:53:21.531Z","updated_at":"2025-08-18T19:53:21.531Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-02-27T06:01:24.328Z","updated_at":"2026-01-14T03:38:52.789Z","avatar_url":"https://github.com/findify.png","language":"Scala","funding_links":[],"categories":["测试"],"sub_categories":[],"readme":"# S3 mock library for Java/Scala\n\n[![Build Status](https://travis-ci.org/findify/s3mock.svg?branch=master)](https://travis-ci.org/findify/s3mock)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.findify/s3mock_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.findify/s3mock_2.12)\n\ns3mock is a web service implementing AWS S3 API, which can be used for local testing of your code using S3\nbut without hitting real S3 endpoints.\n\nImplemented API methods:\n* list buckets\n* list objects (all \u0026 by prefix)\n* create bucket\n* delete bucket\n* put object (via PUT, POST, multipart and chunked uploads are also supported)\n* copy object\n* get object\n* delete object\n* batch delete\n\nNot supported features (these might be implemented later):\n* authentication: s3proxy will accept any credentials without validity and signature checking\n* bucket policy, ACL, versioning\n* object ACL\n* posix-incompatible key structure with file-based provider, for example keys `/some.dir/file.txt` and `/some.dir` in the same bucket\n\n## Installation\n\ns3mock package is available for Scala 2.11/2.12/2.13 (on Java 8/11). To install using SBT, add these\n statements to your `build.sbt`:\n\n    libraryDependencies += \"io.findify\" %% \"s3mock\" % \"0.2.6\" % \"test\",\n\nOn maven, update your `pom.xml` in the following way:\n```xml\n    // add this entry to \u003cdependencies/\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.findify\u003c/groupId\u003e\n        \u003cartifactId\u003es3mock_2.13\u003c/artifactId\u003e\n        \u003cversion\u003e0.2.6\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n```\n\nS3Mock is also available as a [docker container](https://hub.docker.com/r/findify/s3mock/) for out-of-jvm testing:\n```bash\ndocker run -p 8001:8001 findify/s3mock:latest\n```\n\nTo mount a directory containing the prepared content, mount the volume and set the `S3MOCK_DATA_DIR` environment variable:\n```bash\ndocker run -p 8001:8001 -v /host/path/to/s3mock/:/tmp/s3mock/ -e \"S3MOCK_DATA_DIR=/tmp/s3mock\" findify/s3mock:latest\n```\n\n## Usage\n\nJust point your s3 client to a localhost, enable path-style access, and it should work out of the box.\n\nThere are two working modes for s3mock:\n* File-based: it will map a local directory as a collection of s3 buckets. This mode can be useful when you need to have a bucket with some pre-loaded data (and too lazy to re-upload everything on each run).\n* In-memory: keep everything in RAM. All the data you've uploaded to s3mock will be wiped completely on shutdown. \n\nJava:\n```java\n    import com.amazonaws.auth.AWSStaticCredentialsProvider;\n    import com.amazonaws.auth.AnonymousAWSCredentials;\n    import com.amazonaws.client.builder.AwsClientBuilder;\n    import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;\n    import com.amazonaws.services.s3.AmazonS3;\n    import com.amazonaws.services.s3.AmazonS3Builder;\n    import com.amazonaws.services.s3.AmazonS3Client;\n    import com.amazonaws.services.s3.AmazonS3ClientBuilder;\n    import io.findify.s3mock.S3Mock;\n    \n    /*\n     S3Mock.create(8001, \"/tmp/s3\");\n     */\n    S3Mock api = new S3Mock.Builder().withPort(8001).withInMemoryBackend().build();\n    api.start();\n            \n    /* AWS S3 client setup.\n     *  withPathStyleAccessEnabled(true) trick is required to overcome S3 default \n     *  DNS-based bucket access scheme\n     *  resulting in attempts to connect to addresses like \"bucketname.localhost\"\n     *  which requires specific DNS setup.\n     */\n    EndpointConfiguration endpoint = new EndpointConfiguration(\"http://localhost:8001\", \"us-west-2\");\n    AmazonS3Client client = AmazonS3ClientBuilder\n      .standard()\n      .withPathStyleAccessEnabled(true)  \n      .withEndpointConfiguration(endpoint)\n      .withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))     \n      .build();\n\n    client.createBucket(\"testbucket\");\n    client.putObject(\"testbucket\", \"file/name\", \"contents\");\n    api.shutdown(); // kills the underlying actor system. Use api.stop() to just unbind the port.\n```\n\nScala with AWS S3 SDK:\n```scala\n    import com.amazonaws.auth.AWSStaticCredentialsProvider\n    import com.amazonaws.auth.AnonymousAWSCredentials\n    import com.amazonaws.client.builder.AwsClientBuilder\n    import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;\n    import com.amazonaws.services.s3.AmazonS3\n    import com.amazonaws.services.s3.AmazonS3Builder\n    import com.amazonaws.services.s3.AmazonS3Client\n    import com.amazonaws.services.s3.AmazonS3ClientBuilder\n    import io.findify.s3mock.S3Mock\n\n    \n    /** Create and start S3 API mock. */\n    val api = S3Mock(port = 8001, dir = \"/tmp/s3\")\n    api.start\n\n    /* AWS S3 client setup.\n     *  withPathStyleAccessEnabled(true) trick is required to overcome S3 default \n     *  DNS-based bucket access scheme\n     *  resulting in attempts to connect to addresses like \"bucketname.localhost\"\n     *  which requires specific DNS setup.\n     */\n    val endpoint = new EndpointConfiguration(\"http://localhost:8001\", \"us-west-2\")\n    val client = AmazonS3ClientBuilder\n      .standard\n      .withPathStyleAccessEnabled(true)  \n      .withEndpointConfiguration(endpoint)\n      .withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))     \n      .build\n\n    /** Use it as usual. */\n    client.createBucket(\"foo\")\n    client.putObject(\"foo\", \"bar\", \"baz\")\n    api.shutdown() // this one terminates the actor system. Use api.stop() to just unbind the service without messing with the ActorSystem\n```\n\nScala with Alpakka 1.0.0:\n```scala\n    import akka.actor.ActorSystem\n    import akka.stream.ActorMaterializer\n    import akka.stream.alpakka.s3.scaladsl.S3Client\n    import akka.stream.scaladsl.Sink\n    import com.typesafe.config.ConfigFactory\n    import scala.collection.JavaConverters._\n\n    val config = ConfigFactory.parseMap(Map(\n      \"alpakka.s3.proxy.host\" -\u003e \"localhost\",\n      \"alpakka.s3.proxy.port\" -\u003e 8001,\n      \"alpakka.s3.proxy.secure\" -\u003e false,\n      \"alpakka.s3.path-style-access\" -\u003e true,\n      \"alpakka.s3.aws.credentials.provider\" -\u003e \"static\",\n      \"alpakka.s3.aws.credentials.access-key-id\" -\u003e \"foo\",\n      \"alpakka.s3.aws.credentials.secret-access-key\" -\u003e \"bar\",\n      \"alpakka.s3.aws.region.provider\" -\u003e \"static\",\n      \"alpakka.s3.aws.region.default-region\" -\u003e \"us-east-1\"      \n    ).asJava)\n    implicit val system = ActorSystem.create(\"test\", config)\n    implicit val mat = ActorMaterializer()\n    import system.dispatcher\n    val s3a = S3Client()\n    val contents = s3a.download(\"bucket\", \"key\")._1.runWith(Sink.reduce[ByteString](_ ++ _)).map(_.utf8String)\n      \n```\n    \n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Findify AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindify%2Fs3mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindify%2Fs3mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindify%2Fs3mock/lists"}