CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-aws-sdk--client-sts

AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities

92

1.05x
Quality

Pending

Does it follow best practices?

Impact

92%

1.05x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how well the engineer uses AWS SDK v3's custom HTTP handler functionality to implement a request logging handler. The focus is on correctly implementing the handler interface, integrating it with SDK clients, and properly delegating to another handler.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Handler interface implementation",
      "description": "The custom handler implements the correct interface with a handle() method that accepts an HttpRequest and returns a Promise resolving to an HttpResponse object, matching the AWS SDK handler signature",
      "max_score": 25
    },
    {
      "name": "Request interception",
      "description": "The implementation correctly extracts request details (URL, method, headers, and optionally body) from the HttpRequest object and invokes the onRequest callback with this information",
      "max_score": 20
    },
    {
      "name": "Client configuration",
      "description": "The custom handler is properly configured on an AWS SDK client (e.g., STSClient) using the requestHandler configuration option in the client constructor",
      "max_score": 20
    },
    {
      "name": "Delegate handler invocation",
      "description": "The custom handler correctly calls the delegate handler's handle() method, passing the HttpRequest object, and awaits the result",
      "max_score": 20
    },
    {
      "name": "Response passthrough",
      "description": "The HttpResponse object returned from the delegate handler is returned unchanged from the custom handler's handle() method, ensuring transparent request processing",
      "max_score": 15
    }
  ]
}

tile.json