{"id":13801353,"url":"https://github.com/ticofab/aws-request-signer","last_synced_at":"2026-01-14T21:35:07.271Z","repository":{"id":151320569,"uuid":"48228374","full_name":"ticofab/aws-request-signer","owner":"ticofab","description":"Scala library to sign HTTP requests to AWS services.","archived":false,"fork":false,"pushed_at":"2019-08-13T16:19:00.000Z","size":1084,"stargazers_count":21,"open_issues_count":3,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-13T11:43:04.709Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ticofab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-12-18T10:09:29.000Z","updated_at":"2023-11-11T17:12:34.000Z","dependencies_parsed_at":"2024-01-05T21:57:18.399Z","dependency_job_id":null,"html_url":"https://github.com/ticofab/aws-request-signer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ticofab/aws-request-signer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticofab%2Faws-request-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticofab%2Faws-request-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticofab%2Faws-request-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticofab%2Faws-request-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ticofab","download_url":"https://codeload.github.com/ticofab/aws-request-signer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticofab%2Faws-request-signer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28435294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-08-04T00:01:21.919Z","updated_at":"2026-01-14T21:35:07.257Z","avatar_url":"https://github.com/ticofab.png","language":"Scala","funding_links":[],"categories":["Table of Contents","Authentication"],"sub_categories":["Authentication"],"readme":"**NOTE**: this project is deprecated in favor of a broader library for this and other AWS features. See here: https://github.com/aws4s/aws4s\n\nAWS Request Signer\n==================\n\nHelper to evaluate the signing headers for HTTP requests to Amazon Web Services. This is a Scala port of (part of) the Java [aws-signing-request-interceptor](https://github.com/inreachventures/aws-signing-request-interceptor).\n\nI originally needed this library to support AWS' [Elasticsearch Service](https://aws.amazon.com/elasticsearch-service/), but this library is 'AWS service agnostic'.\n\n\nImport via SBT\n--------------\n\nCurrently available for scala 2.10, 2.11 and 2.12. In your build.sbt file,\n\n```sbt\nresolvers += Resolver.jcenterRepo\n\nlibraryDependencies += \"io.ticofab\" %% \"aws-request-signer\" % \"0.5.2\"\n```\n\nUsage\n-----\n\nThe procedure to sign AWS Api requests is described on the [official documentation](http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html). The idea is that each request must be signed through the evaluation of a hash which depends on the very request itself. The resulting string can then be added to the request either as a header or as a query param. This library focuses on the header way.\n\nYou first need to instantiate the signer, for example:\n\n```scala\nval awsCredentialProvider = new StaticCredentialsProvider(new BasicAWSCredentials(\"YOUR-ID\", \"YOUR-SECRET\"))\nval service = \"es\"\nval region = \"eu-central-1\"\ndef clock(): LocalDateTime = LocalDateTime.now(ZoneId.of(\"UTC\"))\nval signer = io.ticofab.AwsSigner(awsCredentialProvider, region, service, clock)\n```\n\nThen use it for each request, via\n\n```scala\ndef getSignedHeaders(uri: String,\n                     method: String,\n                     queryParams: Map[String, String],\n                     headers: Map[String, String],\n                     payload: Option[Array[Byte]]): Map[String, String]\n```\n\n\nCheck the examples in the test folder of this project. Once you have the headers, add them to your HTTP request and fire it.\n\nImplementations\n---------------\n[aws-request-signer-proxy](https://github.com/charles-rumley/aws-request-signer-proxy) implements this package as a Dockerized proxy application, and provides an example integration with the [Play framework](https://www.playframework.com/).\n\n\nDependencies\n------------\n\n* [AWS Java SDK](https://aws.amazon.com/sdk-for-java/)\n* [ScalaTest](http://www.scalatest.org)\n\nLicense\n--------\n\n    Copyright 2016, 2017 Fabio Tiriticco - Fabway\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticofab%2Faws-request-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticofab%2Faws-request-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticofab%2Faws-request-signer/lists"}