Lambda Function URL's

When trying to connect to Lambda (Access Key) via AWS’s relatively new “Lambda function URLs”, I receive a 403 - Credentials should be scoped to correct service: ‘lambda’. What I can not tell because the notehub is forming the header, does it look something like the following (where the service is include, lambda in this case):

Credential=AKIAIOSFODNN7EXAMPLE/20120224/us-west-1/lambda/aws4_request

Hey @JimC, you can try sending data from that route to webhook.site instead of AWS and you’ll be able to see the header that Notehub creates.

I hope that helps, and please let me know the result. If there’s something we need to adjust on the Notehub side, that would be good to know.

Brandon

Webhook is really slow, so hard for me to tell, but it seems like you are missing the service header in the request based on what I see in postman.

Usually webhook.site is really fast (meaning, as soon as an event appears in Notehub, it’s visible there only a second or two afterwards). POSTing data to webhook.site is nice because you can see the full context and headers to debug your routes:

webhook did not help much, can not see the auth header. Lambda should be part of the auth header like the following:
Credential=Asdfsjkhjkshfjksdhfjdhf/20220801/us-east-2/lambda/aws4_request

Hi @JimC,

Did you create the Notehub route as an “AWS” type or a “General HTTP/S Request/Response” type? I’m thinking since Lambda function URLs are dedicated HTTPS endpoints, you should try the latter. You can also specify the exact headers you need with that route type.

I am a bit ignorant of these function URLs though, so we may need to do some more research to properly support these under the “AWS” route type in Notehub.

Rob

The Service header needs to be set to lambda, if not, the only way to use this in an unsecured mode. Once the Service header is set, Credential (see above) will now contain the lambda service, thus avoiding the scoping error.

Got it. I’ve created an internal feature request for us to support Lambda function URLs as part of the AWS route type. Will post updates here as they come in!

Rob