Questions tagged [aws-signature]

35 questions
6
votes
1 answer

How do I sign API requests (AWS SigV4) to Lambda behind Proxy & API Gateway?

I'm working on a project where we currently use Cognito User pools for auth., but after some research we found that if we want more fine-grained access-control we should use an Identity pool instead. The theory is simple : first we create an…
2
votes
1 answer

Convert a byte string to hexadecimal string in python

I'm working on a project with heavy usage of AWS Signature. Now my task is to find a way to send an SHA256-hashed byte "string" to a client via JSON. The given "string" looks like…
2
votes
1 answer

call AWS Elasticsearch Service API with cURL --aws-sigv4

when I execute curl --request GET "https://${ES_DOMAIN_ENDPOINT}/my_index_pattern-*/my_type/_mapping" \ --user $AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY \ --aws-sigv4 "aws:amz:ap-southeast-2:es" where $ES_DOMAIN_ENDPOINT is my AWS Elasticsearch…
P_O
  • 435
  • 6
  • 16
2
votes
1 answer

I am using the aws-sigv4 gem for creating the signature and I am getting the error

require 'aws-sigv4' signer = Aws::Sigv4::Signer.new(access_key_id: access_key, region: 'us-east-1',secret_access_key: secret_key,service: 'execute-api') signature = signer.sign_request( http_method: 'GET', url:…
2
votes
1 answer

NGINX Reverse Proxy configuration with AWS Signature

I am using nginx as a reverse proxy for my gateway. It is working with normal apis. However, its not working with AWS Signature. Says signature mismatch. I added proxy host , still it doesnt work. Pls help. Verified nginx logs, all headers are being…
1
vote
0 answers

Need help on how to pass AWS signature while hitting API endpoint in Karate

Need help on how to pass AWS signature while hitting API endpoint in Karate. Currently , i am unable to pass AWS signature in Karate Test automation . Could you share any insights on how to handle it in Karate APU automation Need help on how to pass…
1
vote
0 answers

How can I authenticate with Cognito and AWS_IAM in karate?

I'm trying to test an Appsync API protected by AWS_IAM and Cognito identity provider. To be authorised, I need to use AWS Signature v4. Is there anyway I could intercept HTTP requests and set the headers (with the help of an external library,…
user2363392
  • 95
  • 1
  • 7
1
vote
0 answers

"Signature not yet current" in AWS signature 4 - WSO2 class mediator

I am currently trying to list all users using AWS IAM api and facing some difficulties. When after invoking the API through the WSO2 micro integrator it shows following error, XML Response from AWS I have set the time zone to UTC in the deployed…
1
vote
1 answer

Signature Does not Match AWS S3 using Javascript Scripting

I was trying to write a code in Js for GET request via REST API. I am trying to generate signature using the shared key and access key provided by me var https = require('https'); var crypto = require('crypto'); function sign(key, message) { …
1
vote
1 answer

AWS API Gateway IAM Authorization - Generating signature using crypto.js

I am working on an app for Jira Cloud platform using forge framework. I created an HTTP endpoint using AWS API Gateway. This endpoint triggers a lambda function that does some operation on DynamoDB. I employed IAM authorization for the endpoint.…
1
vote
1 answer

Add (AWS Signature) Authorization to python requests

I am trying to make a GET request to an endpoint which uses AWS Authorization. I made request using postman, It works. But when i tried following method in python, it's giving error. CODE url = 'XXX' payload = {} amc_api_servicename = 'sts' t =…
0
votes
0 answers

Can API request be authenticated with AWS signature using Playwright?

Description: If I need to submit a GET/POST request using APIrequest methods provided in Playwright. Can I authenticate using AWS signature to initiate the APIrequestContext I have tried authenticating using Bearer token authorization by providing…
0
votes
0 answers

Invalid Signature with AWS Signature Version 4 in Dart

I'm attempting to implement AWS Signature Version 4 signing process in Dart for accessing secured resources in an S3 bucket. I've set up the signing process according to the guidelines in the AWS documentation. However, I keep receiving the "The…
0
votes
0 answers

How to use s3 accesskeyId and secretAccessKey for assuming a role with HTTP api

I have AWS account A and my customer has assigned me a IAM role to access thier AWS account B s3 bucket. Here is the info I have: Account A: accessKeyId that starts with AKIA******** and SecretAccessKey. Account B: I am able to generate accessKeyId…
Nabz C
  • 538
  • 1
  • 9
  • 28
0
votes
1 answer

API Gateway 403 with IAM authorization enabled

I've created an API on API Gateway and without authentication I'm able to access the API without any issues. I then enabled IAM authentication and now I get 403 on Postman and this message: { "message": "Forbidden" } On Postman I'm sending the…
1
2 3