aws-connected-device-framework icon indicating copy to clipboard operation
aws-connected-device-framework copied to clipboard

AssetLibrary AUTHORIZATION_ENABLED=true configuration returning 403 Forbidden error

Open canavandl opened this issue 2 years ago • 0 comments

Aws Connected Device Framework Affected Module(s):

  • AssetLibrary

I'm submitting a ...

  • [x] bug report
  • [ ] feature request

Description: The default "AUTHORIZATION_ENABLED=true" setting causes AssetLibrary requests to not work.

Current behavior:

curl -v -k -X 'POST' \
-H 'accept: */*' \
-H 'Content-Type: application/vnd.aws-cdf-v2.0+json' \
-H 'x-api-key: <api-key>' \
-d '{"properties": {"code": {"type": "string"}}}' \
'https://<stage>.execute-api.us-west-2.amazonaws.com/Prod/templates/device/robotWithSensor'

returns 403 Forbidden error

Expected behavior: The request should create the resource and return a 200 status code

Steps to reproduce:

  1. Deploy main HEAD (https://github.com/aws/aws-connected-device-framework/commit/f3fb09d2fdc6707dcdf4a8dd5841c9f0b58a5d05) using the ApiKey ApiGW configuration.
  2. Run the above curl request
  3. Observe the 403 error

Additional Information:

canavandl avatar Jun 07 '23 16:06 canavandl