tests/test.sh exit code (0 → resolved); the classification below is post-hoc and cannot change it.{
"command": "aws ssm get-parameters-by-path --path /harbor/jwt --recursive --query 'Parameters[].[Name,Value]' --output text",
"description": "Read SSM manifest"
}/harbor/jwt/user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 /harbor/jwt/app-client-id akwrzdbufi2s23fg5q0p8xhzda /harbor/jwt/app-client-secret kms:alias/aws/ssm:none /harbor/jwt/resource-server-identifier harbor-api /harbor/jwt/api-id db08e45c /harbor/jwt/api-endpoint http://localstack:4566/restapis/db08e45c/prod/_user_request_ /harbor/jwt/stage prod /harbor/jwt/authorizer-id 67c2972d /harbor/jwt/integration-id 30c64bbf /harbor/jwt/route-get-id 810adc2b /harbor/jwt/route-post-id 6ca2d452 /harbor/jwt/lambda-name harbor-jwt-backend /harbor/jwt/lambda-arn arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend /harbor/jwt/lambda-role-arn arn:aws:iam::000000000000:role/harbor-jwt-backend-role /harbor/jwt/log-group-name /aws/lambda/harbor-jwt-backend /harbor/jwt/account-id 000000000000 /harbor/jwt/issuer https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7 /harbor/jwt/oauth-token-endpoint http://localstack:4566/_aws/cognito-idp/oauth2/token [stdout] /harbor/jwt/user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 /harbor/jwt/app-client-id akwrzdbufi2s23fg5q0p8xhzda /harbor/jwt/app-client-secret kms:alias/aws/ssm:none /harbor/jwt/resource-server-identifier harbor-api /harbor/jwt/api-id db08e45c /harbor/jwt/api-endpoint http://localstack:4566/restapis/db08e45c/prod/_user_request_ /harbor/jwt/stage prod /harbor/jwt/authorizer-id 67c2972d /harbor/jwt/integration-id 30c64bbf /harbor/jwt/route-get-id 810adc2b /harbor/jwt/route-post-id 6ca2d452 /harbor/jwt/lambda-name harbor-jwt-backend /harbor/jwt/lambda-arn arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend /harbor/jwt/lambda-role-arn arn:aws:iam::000000000000:role/harbor-jwt-backend-role /harbor/jwt/log-group-name /aws/lambda/harbor-jwt-backend /harbor/jwt/account-id 000000000000 /harbor/jwt/issuer https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7 /harbor/jwt/oauth-token-endpoint http://localstack:4566/_aws/cognito-idp/oauth2/token
{
"command": "echo \"AWS_ENDPOINT_URL=$AWS_ENDPOINT_URL\"; echo \"ENFORCE_IAM=$ENFORCE_IAM\"; aws sts get-caller-identity 2>&1 | head -20",
"description": "Check environment"
}AWS_ENDPOINT_URL=http://localstack:4566
ENFORCE_IAM=
{
"UserId": "000000000000",
"Account": "000000000000",
"Arn": "arn:aws:iam::000000000000:root"
}
[stdout]
AWS_ENDPOINT_URL=http://localstack:4566
ENFORCE_IAM=
{
"UserId": "000000000000",
"Account": "000000000000",
"Arn": "arn:aws:iam::000000000000:root"
}{
"command": "aws cognito-idp describe-user-pool --user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 2>&1 | head -80",
"description": "Describe user pool"
}{
"UserPool": {
"Id": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"Name": "harbor-jwt-pool",
"Policies": {
"PasswordPolicy": {
"MinimumLength": 8,
"RequireUppercase": true,
"RequireLowercase": true,
"RequireNumbers": true,
"RequireSymbols": true,
"TemporaryPasswordValidityDays": 7
}
},
"DeletionProtection": "INACTIVE",
"LambdaConfig": {},
"LastModifiedDate": "2026-05-17T07:34:42.180622+00:00",
"CreationDate": "2026-05-17T07:34:42.180629+00:00",
"SchemaAttributes": [
{
"Name": "sub",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": false,
"Required": true,
"StringAttributeConstraints": {
"MinLength": "1",
"MaxLength": "2048"
}
},
{
"Name": "name",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": false,
"StringAttributeConstraints": {
"MinLength": "0",
"MaxLength": "2048"
}
},
{
"Name": "given_name",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": false,
"StringAttributeConstraints": {
"MinLength": "0",
"MaxLength": "2048"
}
},
{
"Name": "family_name",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": false,
"StringAttributeConstraints": {
"MinLength": "0",
"MaxLength": "2048"
}
},
{
"Name": "middle_name",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": false,
"StringAttributeConstraints": {
"MinLength": "0",
"MaxLength": "2048"
}
},
{
"Name": "nickname",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": false,
[stdout]
{
"UserPool": {
"Id": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"Name": "harbor-jwt-pool",
"Policies": {
"PasswordPolicy": {
"MinimumLength": 8,
"RequireUppercase": true,
"RequireLowercase": true,
"RequireNumbers": true,
"RequireSymbols": true,
"TemporaryPasswordValidityDays": 7
}
},
"DeletionProtection": "INACTIVE",
"LambdaConfig": {},
"LastModifiedDate": "2026-05-17T07:34:42.180622+00:00",
"CreationDate": "2026-05-17T07:34:42.180629+00:00",
"SchemaAttributes": [
{
"Name": "sub",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": false,
"Required": true,
"StringAttributeConstraints": {
"MinLength": "1",
"MaxLength": "2048"
}
},
{
"Name": "name",
"AttributeDataType": "String",
"DeveloperOnlyAttribute": false,
"Mutable": true,
"Required": fal
…[truncated]{
"command": "aws cognito-idp describe-user-pool-client --user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 --client-id akwrzdbufi2s23fg5q0p8xhzda",
"description": "Describe app client"
}{
"UserPoolClient": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"ClientName": "harbor-jwt-client",
"ClientId": "akwrzdbufi2s23fg5q0p8xhzda",
"LastModifiedDate": "2026-05-17T07:34:44.663294+00:00",
"CreationDate": "2026-05-17T07:34:44.663297+00:00",
"RefreshTokenValidity": 30,
"TokenValidityUnits": {},
"SupportedIdentityProviders": [
"COGNITO"
],
"CallbackURLs": [
"https://harbor.example/callback"
],
"AllowedOAuthFlows": [
"implicit"
],
"AllowedOAuthFlowsUserPoolClient": true,
"EnableTokenRevocation": true,
"EnablePropagateAdditionalUserContextData": false,
"AuthSessionValidity": 3
}
}
[stdout]
{
"UserPoolClient": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"ClientName": "harbor-jwt-client",
"ClientId": "akwrzdbufi2s23fg5q0p8xhzda",
"LastModifiedDate": "2026-05-17T07:34:44.663294+00:00",
"CreationDate": "2026-05-17T07:34:44.663297+00:00",
"RefreshTokenValidity": 30,
"TokenValidityUnits": {},
"SupportedIdentityProviders": [
"COGNITO"
],
"CallbackURLs": [
"https://harbor.example/callback"
],
"AllowedOAuthFlows": [
"implicit"
],
"AllowedOAuthFlowsUserPoolClient": true,
"EnableTokenRevocation": true,
"EnablePropagateAdditionalUserContextData": false,
"AuthSessionValidity": 3
}
}{
"command": "aws cognito-idp describe-resource-server --user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 --identifier harbor-api",
"description": "Describe resource server"
}{
"ResourceServer": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"Identifier": "harbor-api",
"Name": "harbor-api-rs",
"Scopes": [
{
"ScopeName": "read",
"ScopeDescription": "Read reports"
},
{
"ScopeName": "write",
"ScopeDescription": "Write reports"
}
]
}
}
[stdout]
{
"ResourceServer": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"Identifier": "harbor-api",
"Name": "harbor-api-rs",
"Scopes": [
{
"ScopeName": "read",
"ScopeDescription": "Read reports"
},
{
"ScopeName": "write",
"ScopeDescription": "Write reports"
}
]
}
}{
"command": "aws apigatewayv2 get-api --api-id db08e45c",
"description": "Describe API"
}{
"ApiEndpoint": "http://db08e45c.execute-api.localhost.localstack.cloud:4566",
"ApiId": "db08e45c",
"ApiKeySelectionExpression": "$request.header.x-api-key",
"CreatedDate": "2026-05-17T07:34:47.303000+00:00",
"DisableExecuteApiEndpoint": false,
"IpAddressType": "ipv4",
"Name": "harbor-jwt-api",
"ProtocolType": "HTTP",
"RouteSelectionExpression": "$request.method $request.path",
"Tags": {}
}
[stdout]
{
"ApiEndpoint": "http://db08e45c.execute-api.localhost.localstack.cloud:4566",
"ApiId": "db08e45c",
"ApiKeySelectionExpression": "$request.header.x-api-key",
"CreatedDate": "2026-05-17T07:34:47.303000+00:00",
"DisableExecuteApiEndpoint": false,
"IpAddressType": "ipv4",
"Name": "harbor-jwt-api",
"ProtocolType": "HTTP",
"RouteSelectionExpression": "$request.method $request.path",
"Tags": {}
}{
"command": "aws apigatewayv2 get-authorizer --api-id db08e45c --authorizer-id 67c2972d",
"description": "Describe authorizer"
}{
"AuthorizerId": "67c2972d",
"AuthorizerType": "JWT",
"IdentitySource": [
"$request.header.X-Auth-Token"
],
"JwtConfiguration": {
"Audience": [
"harbor-api"
],
"Issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7"
},
"Name": "harbor-jwt-authorizer"
}
[stdout]
{
"AuthorizerId": "67c2972d",
"AuthorizerType": "JWT",
"IdentitySource": [
"$request.header.X-Auth-Token"
],
"JwtConfiguration": {
"Audience": [
"harbor-api"
],
"Issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7"
},
"Name": "harbor-jwt-authorizer"
}{
"command": "aws apigatewayv2 get-routes --api-id db08e45c",
"description": "Get routes"
}{
"Items": [
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"read"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "810adc2b",
"RouteKey": "GET /reports",
"Target": "integrations/30c64bbf"
},
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"write"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "6ca2d452",
"RouteKey": "POST /reports",
"Target": "integrations/30c64bbf"
}
]
}
[stdout]
{
"Items": [
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"read"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "810adc2b",
"RouteKey": "GET /reports",
"Target": "integrations/30c64bbf"
},
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"write"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "6ca2d452",
"RouteKey": "POST /reports",
"Target": "integrations/30c64bbf"
}
]
}{
"command": "aws apigatewayv2 get-integration --api-id db08e45c --integration-id 30c64bbf",
"description": "Get integration"
}{
"ConnectionType": "INTERNET",
"IntegrationId": "30c64bbf",
"IntegrationMethod": "POST",
"IntegrationType": "AWS_PROXY",
"IntegrationUri": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"PayloadFormatVersion": "1.0",
"TimeoutInMillis": 30000
}
[stdout]
{
"ConnectionType": "INTERNET",
"IntegrationId": "30c64bbf",
"IntegrationMethod": "POST",
"IntegrationType": "AWS_PROXY",
"IntegrationUri": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"PayloadFormatVersion": "1.0",
"TimeoutInMillis": 30000
}{
"command": "aws apigatewayv2 get-stage --api-id db08e45c --stage-name prod",
"description": "Get stage"
}{
"AutoDeploy": false,
"CreatedDate": "2026-05-17T07:34:53.241099+00:00",
"DefaultRouteSettings": {
"DetailedMetricsEnabled": false
},
"DeploymentId": "7dc06921",
"LastUpdatedDate": "2026-05-17T07:34:53.241099+00:00",
"RouteSettings": {},
"StageName": "prod",
"StageVariables": {},
"Tags": {}
}
[stdout]
{
"AutoDeploy": false,
"CreatedDate": "2026-05-17T07:34:53.241099+00:00",
"DefaultRouteSettings": {
"DetailedMetricsEnabled": false
},
"DeploymentId": "7dc06921",
"LastUpdatedDate": "2026-05-17T07:34:53.241099+00:00",
"RouteSettings": {},
"StageName": "prod",
"StageVariables": {},
"Tags": {}
}{
"command": "aws lambda get-function --function-name harbor-jwt-backend",
"description": "Get lambda"
}{
"Configuration": {
"FunctionName": "harbor-jwt-backend",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"Runtime": "python3.11",
"Role": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"Handler": "handler.lambda_handler",
"CodeSize": 461,
"Description": "",
"Timeout": 20,
"MemorySize": 128,
"LastModified": "2026-05-17T07:34:35.530183+0000",
"CodeSha256": "y/PAkghXN6J+yOprj8CoVTOwnCKc1KpZQq30s5crBQg=",
"Version": "$LATEST",
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "b8c15228-6ede-47c1-aa2d-59cda1a82600",
"State": "Active",
"LastUpdateStatus": "Successful",
"PackageType": "Zip",
"Architectures": [
"x86_64"
],
"EphemeralStorage": {
"Size": 512
},
"SnapStart": {
"ApplyOn": "None",
"OptimizationStatus": "Off"
},
"RuntimeVersionConfig": {
"RuntimeVersionArn": "arn:aws:lambda:us-east-1::runtime:8eeff65f6809a3ce81507fe733fe09b835899b99481ba22fd75b5a7338290ec1"
},
"LoggingConfig": {
"LogFormat": "Text",
"LogGroup": "/aws/lambda/harbor-jwt-backend"
}
},
"Code": {
"RepositoryType": "S3",
"Location": "http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=xAvQ7Wxpno%2BbCFQzmIK6bk1Mvnc%3D&Expires=1779007265"
}
}
[stdout]
{
"Configuration": {
"FunctionName": "harbor-jwt-backend",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"Runtime": "python3.11",
"Role": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"Handler": "handler.lambda_handler",
"CodeSize": 461,
"Description": "",
"Timeout": 20,
"MemorySize": 128,
"LastModified": "2026-05-17T07:34:35.530183+0000",
"CodeSha256": "y/PAkghXN6J+yOprj8CoVTOwnCKc1KpZQq30s5crBQg=",
"Version": "$LATEST",
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "b8c15228-6ede-47c1-aa2d-59cda1a82600",
"State": "Active",
"LastUpdateStatus": "Successful",
"PackageType": "Zip",
"Architectures": [
"x86_64"
],
"EphemeralStorage": {
"Size": 512
},
"SnapStart": {
"ApplyOn": "None",
"OptimizationStatus": "Off"
},
"RuntimeVersionConfig": {
"RuntimeVersionArn": "arn:aws:lambda:us-east-1::runtime:8eeff65f6809a3ce81507fe733fe09b835899b99481ba22fd75b5a7338290ec1"
},
"LoggingConfig": {
"LogFormat": "Text",
"LogGroup": "/aws/lambda/harbor-jwt-backend"
}
},
"Code": {
"RepositoryType": "S3",
"Location": "http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=xAvQ7Wxpno%2BbCFQzmIK6bk1Mvnc%3D&Expires=1779007265"
}
}{
"command": "aws lambda get-policy --function-name harbor-jwt-backend 2>&1",
"description": "Get lambda resource policy"
}{
"Policy": "{\"Version\": \"2012-10-17\", \"Id\": \"default\", \"Statement\": [{\"Sid\": \"apigw-invoke\", \"Effect\": \"Allow\", \"Action\": \"lambda:InvokeFunction\", \"Resource\": \"arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend\", \"Principal\": {\"Service\": \"apigateway.amazonaws.com\"}, \"Condition\": {\"ArnLike\": {\"AWS:SourceArn\": \"arn:aws:execute-api:us-east-1:000000000000:db08e45c/*/*\"}}}]}",
"RevisionId": "b8c15228-6ede-47c1-aa2d-59cda1a82600"
}
[stdout]
{
"Policy": "{\"Version\": \"2012-10-17\", \"Id\": \"default\", \"Statement\": [{\"Sid\": \"apigw-invoke\", \"Effect\": \"Allow\", \"Action\": \"lambda:InvokeFunction\", \"Resource\": \"arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend\", \"Principal\": {\"Service\": \"apigateway.amazonaws.com\"}, \"Condition\": {\"ArnLike\": {\"AWS:SourceArn\": \"arn:aws:execute-api:us-east-1:000000000000:db08e45c/*/*\"}}}]}",
"RevisionId": "b8c15228-6ede-47c1-aa2d-59cda1a82600"
}{
"command": "curl -s \"http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=xAvQ7Wxpno%2BbCFQzmIK6bk1Mvnc%3D&Expires=1779007265\" -o /tmp/lambda.zip && cd /tmp && unzip -o lambda.zip -d lambda_src && ls lambda_src && cat lambda_src/handler.py",
"description": "Download and inspect lambda code"
}Exit code 7 [error] tool reported failure
{
"command": "aws iam get-role --role-name harbor-jwt-backend-role; aws iam list-attached-role-policies --role-name harbor-jwt-backend-role; aws iam list-role-policies --role-name harbor-jwt-backend-role",
"description": "Inspect IAM role"
}{
"Role": {
"Path": "/",
"RoleName": "harbor-jwt-backend-role",
"RoleId": "AROAQAAAAAAAOKRO6KPUL",
"Arn": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"CreateDate": "2026-05-17T07:34:31.723683+00:00",
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
},
"MaxSessionDuration": 3600,
"RoleLastUsed": {}
}
}
{
"AttachedPolicies": []
}
{
"PolicyNames": [
"lambda-logs-bootstrap"
]
}
[stdout]
{
"Role": {
"Path": "/",
"RoleName": "harbor-jwt-backend-role",
"RoleId": "AROAQAAAAAAAOKRO6KPUL",
"Arn": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"CreateDate": "2026-05-17T07:34:31.723683+00:00",
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
},
"MaxSessionDuration": 3600,
"RoleLastUsed": {}
}
}
{
"AttachedPolicies": []
}
{
"PolicyNames": [
"lambda-logs-bootstrap"
]
}{
"command": "curl -s \"http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=xAvQ7Wxpno%2BbCFQzmIK6bk1Mvnc%3D&Expires=1779007265\" -o /tmp/lambda.zip; ls -la /tmp/lambda.zip; mkdir -p /tmp/lambda_src && cd /tmp/lambda_src && unzip -o /tmp/lambda.zip && ls && cat handler.py",
"description": "Try again to inspect lambda code"
}Exit code 9 ls: cannot access '/tmp/lambda.zip': No such file or directory unzip: cannot find or open /tmp/lambda.zip, /tmp/lambda.zip.zip or /tmp/lambda.zip.ZIP. [error] tool reported failure
{
"command": "aws lambda get-function --function-name harbor-jwt-backend --query 'Code.Location' --output text",
"description": "Fresh URL"
}http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=70iRIa2woYsqZd0Imu1TQyfneCA%3D&Expires=1779007291 [stdout] http://localhost.localstack.cloud:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=70iRIa2woYsqZd0Imu1TQyfneCA%3D&Expires=1779007291
{
"command": "URL=$(aws lambda get-function --function-name harbor-jwt-backend --query 'Code.Location' --output text); curl -sv \"$URL\" -o /tmp/lambda.zip 2>&1 | tail -20; ls -la /tmp/lambda.zip 2>&1",
"description": "Download with verbose"
}Exit code 2 * Host localhost.localstack.cloud:4566 was resolved. * IPv6: (none) * IPv4: 127.0.0.1 * Trying 127.0.0.1:4566... * connect to 127.0.0.1 port 4566 from 127.0.0.1 port 33640 failed: Connection refused * Failed to connect to localhost.localstack.cloud port 4566 after 2 ms: Couldn't connect to server * Closing connection ls: cannot access '/tmp/lambda.zip': No such file or directory [error] tool reported failure
{
"command": "URL=$(aws lambda get-function --function-name harbor-jwt-backend --query 'Code.Location' --output text); URL2=$(echo \"$URL\" | sed 's|http://localhost.localstack.cloud:4566|http://localstack:4566|'); echo \"$URL2\"; curl -s \"$URL2\" -o /tmp/lambda.zip; ls -la /tmp/lambda.zip; cd /tmp && mkdir -p lambda_src && unzip -o lambda.zip -d lambda_src && ls lambda_src",
"description": "Download via correct hostname"
}http://localstack:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=cGDU8A5gVB6%2FNUoMZ25jjlzaE1s%3D&Expires=1779007300 -rw-r--r-- 1 root root 461 May 17 07:41 /tmp/lambda.zip Archive: lambda.zip inflating: lambda_src/handler.py handler.py Shell cwd was reset to /app [stdout] http://localstack:4566/awslambda-us-east-1-tasks/snapshots/000000000000/harbor-jwt-backend-134a36a8-edbc-49f2-ad3e-050426b1024d?AWSAccessKeyId=949334387222&Signature=cGDU8A5gVB6%2FNUoMZ25jjlzaE1s%3D&Expires=1779007300 -rw-r--r-- 1 root root 461 May 17 07:41 /tmp/lambda.zip Archive: lambda.zip inflating: lambda_src/handler.py handler.py [stderr] Shell cwd was reset to /app
{
"file_path": "/tmp/lambda_src/handler.py"
}1 def handler(event, context):
2 rc = event.get("requestContext", {}) or {}
3 method = (rc.get("http") or {}).get("method")
4 route = event.get("routeKey")
5 auth = (rc.get("authorizer") or {}).get("jwt") or {}
6 claims = auth.get("claims", {}) or {}
7 scopes = auth.get("scopes") or []
8 return {
9 "statusCode": 200,
10 "headers": {"content-type": "application/json"},
11 "body": __import__("json").dumps({
12 "ok": True,
13 "method": method,
14 "route": route,
15 "client_id": claims.get("client_id"),
16 "scope": claims.get("scope"),
17 "scopes": scopes,
18 }),
19 }
20
{
"command": "aws ssm get-parameter --name /harbor/jwt/app-client-secret --with-decryption --output json",
"description": "Get decrypted secret"
}{
"Parameter": {
"Name": "/harbor/jwt/app-client-secret",
"Type": "SecureString",
"Value": "none",
"Version": 1,
"LastModifiedDate": "2026-05-17T07:35:00.386000+00:00",
"ARN": "arn:aws:ssm:us-east-1:000000000000:parameter/harbor/jwt/app-client-secret",
"DataType": "text"
}
}
[stdout]
{
"Parameter": {
"Name": "/harbor/jwt/app-client-secret",
"Type": "SecureString",
"Value": "none",
"Version": 1,
"LastModifiedDate": "2026-05-17T07:35:00.386000+00:00",
"ARN": "arn:aws:ssm:us-east-1:000000000000:parameter/harbor/jwt/app-client-secret",
"DataType": "text"
}
}{
"command": "curl -sv -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"akwrzdbufi2s23fg5q0p8xhzda:\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\" 2>&1 | tail -30",
"description": "Test token endpoint"
}* Host localstack:4566 was resolved.
* IPv6: (none)
* IPv4: 172.23.0.2
* Trying 172.23.0.2:4566...
* Connected to localstack (172.23.0.2) port 4566
* Server auth using Basic with user 'akwrzdbufi2s23fg5q0p8xhzda'
> POST /_aws/cognito-idp/oauth2/token HTTP/1.1
> Host: localstack:4566
> Authorization: Basic YWt3cnpkYnVmaTJzMjNmZzVxMHA4eGh6ZGE6
> User-Agent: curl/8.5.0
> Accept: */*
> Content-Length: 68
> Content-Type: application/x-www-form-urlencoded
>
} [68 bytes data]
< HTTP/1.1 400 BAD REQUEST
< Server: TwistedWeb/25.5.0
< Date: Sun, 17 May 2026 07:42:14 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 97
< x-localstack: true
<
{ [97 bytes data]
* Connection #0 to host localstack left intact
Unable to determine client_id/client_secret from OAuth2 request for grant type client_credentials
[stdout]
* Host localstack:4566 was resolved.
* IPv6: (none)
* IPv4: 172.23.0.2
* Trying 172.23.0.2:4566...
* Connected to localstack (172.23.0.2) port 4566
* Server auth using Basic with user 'akwrzdbufi2s23fg5q0p8xhzda'
> POST /_aws/cognito-idp/oauth2/token HTTP/1.1
> Host: localstack:4566
> Authorization: Basic YWt3cnpkYnVmaTJzMjNmZzVxMHA4eGh6ZGE6
> User-Agent: curl/8.5.0
> Accept: */*
> Content-Length: 68
> Content-Type: application/x-www-form-urlencoded
>
} [68 bytes data]
< HTTP/1.1 400 BAD REQUEST
< Server: TwistedWeb/25.5.0
< Date: Sun, 17 May 2026 07:42:14 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 97
< x-localstack: true
<
{ [97 bytes data]
* Connection #0 to host localstack left intact
Unable to determine client_id/client_secret from OAuth2 request for grant type client_credentials{
"query": "select:TaskCreate,TaskUpdate,TaskList",
"max_results": 5
}{"type": "tool_reference", "tool_name": "TaskCreate"}
{"type": "tool_reference", "tool_name": "TaskUpdate"}
{"type": "tool_reference", "tool_name": "TaskList"}
{
"subject": "Recreate Cognito app client",
"description": "Delete and recreate harbor-jwt-client with GenerateSecret=true, AllowedOAuthFlows=client_credentials, AllowedOAuthScopes=[harbor-api/read, harbor-api/write], AllowedOAuthFlowsUserPoolClient=true. Update SSM app-client-id and app-client-secret."
}Task #1 created successfully: Recreate Cognito app client
{
"subject": "Fix JWT authorizer audience",
"description": "Cognito M2M tokens lack aud claim; audience must match client_id. Update audience to the new client_id."
}Task #2 created successfully: Fix JWT authorizer audience
{
"subject": "Fix lambda handler config",
"description": "Lambda Handler is handler.lambda_handler but the function is named handler in handler.py. Update to handler.handler."
}Task #3 created successfully: Fix lambda handler config
{
"subject": "Fix JWT authorizer identity source",
"description": "Change identity source from $request.header.X-Auth-Token to $request.header.Authorization."
}Task #4 created successfully: Fix JWT authorizer identity source
{
"subject": "Fix integration payload format version",
"description": "Integration is 1.0 but the lambda handler reads requestContext.http.method and event.routeKey which is v2.0 format. Update PayloadFormatVersion to 2.0."
}Task #5 created successfully: Fix integration payload format version
{
"subject": "Verify end-to-end",
"description": "Mint token, call GET/POST /reports, check 401 unauthenticated, 403 wrong scope."
}Task #6 created successfully: Verify end-to-end
{
"subject": "Fix route authorization scopes",
"description": "Routes have scopes [read]/[write] but tokens carry harbor-api/read and harbor-api/write. Update to fully qualified scope names."
}Task #7 created successfully: Fix route authorization scopes
{
"subject": "Enable stage auto_deploy and redeploy",
"description": "Stage prod has AutoDeploy=false. Set AutoDeploy=true and create a deployment to flush changes."
}Task #8 created successfully: Enable stage auto_deploy and redeploy
{
"taskId": "1",
"status": "in_progress"
}Updated task #1 status
{
"command": "aws cognito-idp delete-user-pool-client --user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 --client-id akwrzdbufi2s23fg5q0p8xhzda 2>&1",
"description": "Delete old client"
}(Bash completed with no output)
{
"command": "aws cognito-idp create-user-pool-client \\\n --user-pool-id us-east-1_ef4eecd942f646e6879f46f81ed96da7 \\\n --client-name harbor-jwt-client \\\n --generate-secret \\\n --allowed-o-auth-flows client_credentials \\\n --allowed-o-auth-scopes \"harbor-api/read\" \"harbor-api/write\" \\\n --allowed-o-auth-flows-user-pool-client \\\n --explicit-auth-flows ALLOW_REFRESH_TOKEN_AUTH \\\n --supported-identity-providers COGNITO",
"description": "Create new client with secret and CC flow"
}{
"UserPoolClient": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"ClientName": "harbor-jwt-client",
"ClientId": "i5ck30pfdtd8icu0ybdb0ywsn1",
"ClientSecret": "e2416bd8",
"LastModifiedDate": "2026-05-17T07:42:44.356805+00:00",
"CreationDate": "2026-05-17T07:42:44.356807+00:00",
"RefreshTokenValidity": 30,
"TokenValidityUnits": {},
"ExplicitAuthFlows": [
"ALLOW_REFRESH_TOKEN_AUTH"
],
"SupportedIdentityProviders": [
"COGNITO"
],
"AllowedOAuthFlows": [
"client_credentials"
],
"AllowedOAuthScopes": [
"harbor-api/read",
"harbor-api/write"
],
"AllowedOAuthFlowsUserPoolClient": true,
"EnableTokenRevocation": true,
"EnablePropagateAdditionalUserContextData": false,
"AuthSessionValidity": 3
}
}
[stdout]
{
"UserPoolClient": {
"UserPoolId": "us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"ClientName": "harbor-jwt-client",
"ClientId": "i5ck30pfdtd8icu0ybdb0ywsn1",
"ClientSecret": "e2416bd8",
"LastModifiedDate": "2026-05-17T07:42:44.356805+00:00",
"CreationDate": "2026-05-17T07:42:44.356807+00:00",
"RefreshTokenValidity": 30,
"TokenValidityUnits": {},
"ExplicitAuthFlows": [
"ALLOW_REFRESH_TOKEN_AUTH"
],
"SupportedIdentityProviders": [
"COGNITO"
],
"AllowedOAuthFlows": [
"client_credentials"
],
"AllowedOAuthScopes": [
"harbor-api/read",
"harbor-api/write"
],
"AllowedOAuthFlowsUserPoolClient": true,
"EnableTokenRevocation": true,
"EnablePropagateAdditionalUserContextData": false,
"AuthSessionValidity": 3
}
}{
"command": "aws ssm put-parameter --name /harbor/jwt/app-client-id --value \"i5ck30pfdtd8icu0ybdb0ywsn1\" --type String --overwrite; aws ssm put-parameter --name /harbor/jwt/app-client-secret --value \"e2416bd8\" --type SecureString --overwrite",
"description": "Update SSM with new client id/secret"
}{
"Version": 2,
"Tier": "Standard"
}
{
"Version": 2,
"Tier": "Standard"
}
[stdout]
{
"Version": 2,
"Tier": "Standard"
}
{
"Version": 2,
"Tier": "Standard"
}{
"command": "curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\"",
"description": "Test token mint"
}{"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJjNjc1YTM0LTljZTgtNDRiMS1iOTEzLWJhZTMzYTBiZTM5YSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzkwMDczNzIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV9lZjRlZWNkOTQyZjY0NmU2ODc5ZjQ2ZjgxZWQ5NmRhNyIsInN1YiI6Imk1Y2szMHBmZHRkOGljdTB5YmRiMHl3c24xIiwiYXV0aF90aW1lIjoxNzc5MDAzNzcyLCJpYXQiOjE3NzkwMDM3NzIsImV2ZW50X2lkIjoiMWZiNmQ0MTgtODQwYy00NTA3LWFjNGQtNmE4YjhkZjlhNzMzIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwianRpIjoiZGFhOTJjMGEtZjc0YS00ZGYzLThjNmMtNzNmYWIwMDlkMzU0IiwidXNlcm5hbWUiOiJpNWNrMzBwZmR0ZDhpY3UweWJkYjB5d3NuMSIsImNsaWVudF9pZCI6Imk1Y2szMHBmZHRkOGljdTB5YmRiMHl3c24xIiwic2NvcGUiOiJoYXJib3ItYXBpL3JlYWQgaGFyYm9yLWFwaS93cml0ZSJ9.h9GPhC9g8V7ggIxeJIpIHv8sHxMLSU3EkYF_uC_RfDdhOAIYxyRUypQwfxJstkweB1SMDdKLAivaY3hH2iTNSyK6q3TEfYfXVuRoPL0fFGE5bCVIKDcSFtWEq31f-j2lECsebx6Esx6T3P_qnK_IX98A7DoUke8dOU_pxhjdF24RDPUNQWicuJSAMAMpDE-sncM_7Aidd9NEawvEy967AFNw7oDCgLPHzqa4vmFfpF_RCP-gW7s-WXL3bXt4O4zhnc96rlb3ezvATNa14Z3YfXGCh1iYb5OW32JZmSi8eeqRgM-X_KWbCA1RnSsXBCJn1vaRpIGIXAqMjYMglyZM2A", "expires_in": 3600, "token_type": "Bearer"}
[stdout]
{"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJjNjc1YTM0LTljZTgtNDRiMS1iOTEzLWJhZTMzYTBiZTM5YSIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzkwMDczNzIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWxzdGFjay5jbG91ZDo0NTY2L3VzLWVhc3QtMV9lZjRlZWNkOTQyZjY0NmU2ODc5ZjQ2ZjgxZWQ5NmRhNyIsInN1YiI6Imk1Y2szMHBmZHRkOGljdTB5YmRiMHl3c24xIiwiYXV0aF90aW1lIjoxNzc5MDAzNzcyLCJpYXQiOjE3NzkwMDM3NzIsImV2ZW50X2lkIjoiMWZiNmQ0MTgtODQwYy00NTA3LWFjNGQtNmE4YjhkZjlhNzMzIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwianRpIjoiZGFhOTJjMGEtZjc0YS00ZGYzLThjNmMtNzNmYWIwMDlkMzU0IiwidXNlcm5hbWUiOiJpNWNrMzBwZmR0ZDhpY3UweWJkYjB5d3NuMSIsImNsaWVudF9pZCI6Imk1Y2szMHBmZHRkOGljdTB5YmRiMHl3c24xIiwic2NvcGUiOiJoYXJib3ItYXBpL3JlYWQgaGFyYm9yLWFwaS93cml0ZSJ9.h9GPhC9g8V7ggIxeJIpIHv8sHxMLSU3EkYF_uC_RfDdhOAIYxyRUypQwfxJstkweB1SMDdKLAivaY3hH2iTNSyK6q3TEfYfXVuRoPL0fFGE5bCVIKDcSFtWEq31f-j2lECsebx6Esx6T3P_qnK_IX98A7DoUke8dOU_pxhjdF24RDPUNQWicuJSAMAMpDE-sncM_7Aidd9NEawvEy967AFNw7oDCgLPHzqa4vmFfpF_RCP-gW7s-WXL3bXt4O4zhnc96rlb3ezvATNa14Z3YfXGCh1iYb5OW32JZmSi8eeqRgM-X_KWbCA1RnSsXBCJn1vaRpIGIXAqMjYMglyZM2A", "expires_in": 3600, "token_type": "Bearer"}{
"command": "TOKEN=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])'); PAYLOAD=$(echo $TOKEN | cut -d. -f2); python3 -c \"import base64,json; s='$PAYLOAD'; s+='='*(4-len(s)%4); print(json.dumps(json.loads(base64.urlsafe_b64decode(s)), indent=2))\"",
"description": "Decode token claims"
}{
"exp": 1779007399,
"iss": "http://localhost.localstack.cloud:4566/us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"sub": "i5ck30pfdtd8icu0ybdb0ywsn1",
"auth_time": 1779003799,
"iat": 1779003799,
"event_id": "3b3e3623-96c1-4890-b329-8017909cdf6d",
"token_use": "access",
"jti": "671dcffe-7de4-4034-8049-bfbe46c922c8",
"username": "i5ck30pfdtd8icu0ybdb0ywsn1",
"client_id": "i5ck30pfdtd8icu0ybdb0ywsn1",
"scope": "harbor-api/read harbor-api/write"
}
[stdout]
{
"exp": 1779007399,
"iss": "http://localhost.localstack.cloud:4566/us-east-1_ef4eecd942f646e6879f46f81ed96da7",
"sub": "i5ck30pfdtd8icu0ybdb0ywsn1",
"auth_time": 1779003799,
"iat": 1779003799,
"event_id": "3b3e3623-96c1-4890-b329-8017909cdf6d",
"token_use": "access",
"jti": "671dcffe-7de4-4034-8049-bfbe46c922c8",
"username": "i5ck30pfdtd8icu0ybdb0ywsn1",
"client_id": "i5ck30pfdtd8icu0ybdb0ywsn1",
"scope": "harbor-api/read harbor-api/write"
}{
"taskId": "4",
"status": "in_progress"
}Updated task #4 status
{
"taskId": "1",
"status": "completed"
}Updated task #1 status
{
"command": "aws apigatewayv2 update-authorizer \\\n --api-id db08e45c \\\n --authorizer-id 67c2972d \\\n --identity-source '$request.header.Authorization' \\\n --jwt-configuration \"Audience=i5ck30pfdtd8icu0ybdb0ywsn1,Issuer=https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7\"",
"description": "Fix authorizer identity source and audience"
}{
"AuthorizerId": "67c2972d",
"AuthorizerType": "JWT",
"IdentitySource": [
"$request.header.Authorization"
],
"JwtConfiguration": {
"Audience": [
"i5ck30pfdtd8icu0ybdb0ywsn1"
],
"Issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7"
},
"Name": "harbor-jwt-authorizer"
}
[stdout]
{
"AuthorizerId": "67c2972d",
"AuthorizerType": "JWT",
"IdentitySource": [
"$request.header.Authorization"
],
"JwtConfiguration": {
"Audience": [
"i5ck30pfdtd8icu0ybdb0ywsn1"
],
"Issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ef4eecd942f646e6879f46f81ed96da7"
},
"Name": "harbor-jwt-authorizer"
}{
"taskId": "4",
"status": "completed"
}Updated task #4 status
{
"taskId": "7",
"status": "in_progress"
}Updated task #7 status
{
"taskId": "2",
"status": "completed"
}Updated task #2 status
{
"command": "aws apigatewayv2 update-route --api-id db08e45c --route-id 810adc2b --authorization-scopes \"harbor-api/read\"; aws apigatewayv2 update-route --api-id db08e45c --route-id 6ca2d452 --authorization-scopes \"harbor-api/write\"",
"description": "Update route scopes"
}{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"harbor-api/read"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "810adc2b",
"RouteKey": "GET /reports",
"Target": "integrations/30c64bbf"
}
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"harbor-api/write"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "6ca2d452",
"RouteKey": "POST /reports",
"Target": "integrations/30c64bbf"
}
[stdout]
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"harbor-api/read"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "810adc2b",
"RouteKey": "GET /reports",
"Target": "integrations/30c64bbf"
}
{
"ApiKeyRequired": false,
"AuthorizationScopes": [
"harbor-api/write"
],
"AuthorizationType": "JWT",
"AuthorizerId": "67c2972d",
"RouteId": "6ca2d452",
"RouteKey": "POST /reports",
"Target": "integrations/30c64bbf"
}{
"taskId": "5",
"status": "in_progress"
}Updated task #5 status
{
"taskId": "7",
"status": "completed"
}Updated task #7 status
{
"command": "aws apigatewayv2 update-integration --api-id db08e45c --integration-id 30c64bbf --payload-format-version 2.0",
"description": "Update payload format to 2.0"
}{
"ConnectionType": "INTERNET",
"IntegrationId": "30c64bbf",
"IntegrationMethod": "POST",
"IntegrationType": "AWS_PROXY",
"IntegrationUri": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"PayloadFormatVersion": "2.0",
"TimeoutInMillis": 30000
}
[stdout]
{
"ConnectionType": "INTERNET",
"IntegrationId": "30c64bbf",
"IntegrationMethod": "POST",
"IntegrationType": "AWS_PROXY",
"IntegrationUri": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"PayloadFormatVersion": "2.0",
"TimeoutInMillis": 30000
}{
"taskId": "3",
"status": "in_progress"
}Updated task #3 status
{
"taskId": "5",
"status": "completed"
}Updated task #5 status
{
"command": "aws lambda update-function-configuration --function-name harbor-jwt-backend --handler handler.handler",
"description": "Fix lambda handler"
}{
"FunctionName": "harbor-jwt-backend",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"Runtime": "python3.11",
"Role": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"Handler": "handler.handler",
"CodeSize": 461,
"Description": "",
"Timeout": 20,
"MemorySize": 128,
"LastModified": "2026-05-17T07:43:55.407303+0000",
"CodeSha256": "y/PAkghXN6J+yOprj8CoVTOwnCKc1KpZQq30s5crBQg=",
"Version": "$LATEST",
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "9cc712de-db85-4b9b-a94b-c9e085f5e330",
"State": "Active",
"LastUpdateStatus": "InProgress",
"LastUpdateStatusReason": "The function is being created.",
"LastUpdateStatusReasonCode": "Creating",
"PackageType": "Zip",
"Architectures": [
"x86_64"
],
"EphemeralStorage": {
"Size": 512
},
"SnapStart": {
"ApplyOn": "None",
"OptimizationStatus": "Off"
},
"RuntimeVersionConfig": {
"RuntimeVersionArn": "arn:aws:lambda:us-east-1::runtime:8eeff65f6809a3ce81507fe733fe09b835899b99481ba22fd75b5a7338290ec1"
},
"LoggingConfig": {
"LogFormat": "Text",
"LogGroup": "/aws/lambda/harbor-jwt-backend"
}
}
[stdout]
{
"FunctionName": "harbor-jwt-backend",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend",
"Runtime": "python3.11",
"Role": "arn:aws:iam::000000000000:role/harbor-jwt-backend-role",
"Handler": "handler.handler",
"CodeSize": 461,
"Description": "",
"Timeout": 20,
"MemorySize": 128,
"LastModified": "2026-05-17T07:43:55.407303+0000",
"CodeSha256": "y/PAkghXN6J+yOprj8CoVTOwnCKc1KpZQq30s5crBQg=",
"Version": "$LATEST",
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "9cc712de-db85-4b9b-a94b-c9e085f5e330",
"State": "Active",
"LastUpdateStatus": "InProgress",
"LastUpdateStatusReason": "The function is being created.",
"LastUpdateStatusReasonCode": "Creating",
"PackageType": "Zip",
"Architectures": [
"x86_64"
],
"EphemeralStorage": {
"Size": 512
},
"SnapStart": {
"ApplyOn": "None",
"OptimizationStatus": "Off"
},
"RuntimeVersionConfig": {
"RuntimeVersionArn": "arn:aws:lambda:us-east-1::runtime:8eeff65f6809a3ce81507fe733fe09b835899b99481ba22fd75b5a7338290ec1"
},
"LoggingConfig": {
"LogFormat": "Text",
"LogGroup": "/aws/lambda/harbor-jwt-backend"
}
}{
"taskId": "8",
"status": "in_progress"
}Updated task #8 status
{
"taskId": "3",
"status": "completed"
}Updated task #3 status
{
"command": "aws apigatewayv2 update-stage --api-id db08e45c --stage-name prod --auto-deploy; aws apigatewayv2 create-deployment --api-id db08e45c --stage-name prod",
"description": "Enable auto deploy and create deployment"
}{
"AutoDeploy": true,
"CreatedDate": "2026-05-17T07:34:53.241099+00:00",
"DefaultRouteSettings": {
"DetailedMetricsEnabled": false
},
"DeploymentId": "7dc06921",
"LastUpdatedDate": "2026-05-17T07:34:53.241099+00:00",
"RouteSettings": {},
"StageName": "prod",
"StageVariables": {},
"Tags": {}
}
{
"AutoDeployed": false,
"CreatedDate": "2026-05-17T07:44:02.331973+00:00",
"DeploymentId": "94a16569",
"DeploymentStatus": "FAILED",
"DeploymentStatusMessage": "{\"message\": \"Deployment ID cannot be set on this stage 000000000000:db08e45c because AutoDeploy is enabled.\"}"
}
[stdout]
{
"AutoDeploy": true,
"CreatedDate": "2026-05-17T07:34:53.241099+00:00",
"DefaultRouteSettings": {
"DetailedMetricsEnabled": false
},
"DeploymentId": "7dc06921",
"LastUpdatedDate": "2026-05-17T07:34:53.241099+00:00",
"RouteSettings": {},
"StageName": "prod",
"StageVariables": {},
"Tags": {}
}
{
"AutoDeployed": false,
"CreatedDate": "2026-05-17T07:44:02.331973+00:00",
"DeploymentId": "94a16569",
"DeploymentStatus": "FAILED",
"DeploymentStatusMessage": "{\"message\": \"Deployment ID cannot be set on this stage 000000000000:db08e45c because AutoDeploy is enabled.\"}"
}{
"taskId": "6",
"status": "in_progress"
}Updated task #6 status
{
"taskId": "8",
"status": "completed"
}Updated task #8 status
{
"command": "API_URL=\"http://localstack:4566/restapis/db08e45c/prod/_user_request_\"; TOKEN=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])'); echo \"=== GET /reports with token ===\"; curl -s -o /dev/stderr -w \"HTTP %{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"; echo \"=== POST /reports with token ===\"; curl -s -o /dev/stderr -w \"HTTP %{http_code}\\n\" -X POST \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"; echo \"=== GET /reports no auth ===\"; curl -s -o /dev/stderr -w \"HTTP %{http_code}\\n\" \"$API_URL/reports\"; echo \"=== GET /reports bad auth ===\"; curl -s -o /dev/stderr -w \"HTTP %{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer notajwt\"",
"description": "Test API end-to-end"
}{"message":"Unauthorized"}HTTP 401
[stdout]
{"message":"Unauthorized"}HTTP 401{
"command": "API_URL=\"http://localstack:4566/restapis/db08e45c/prod/_user_request_\"\nTOKEN=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])')\necho \"Token len=${#TOKEN}\"\necho \"--- GET with token ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"\necho \"--- POST with token ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" -X POST \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"\necho \"--- GET no auth ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\"\necho \"--- GET bad bearer ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer notajwt\"",
"description": "Test API end-to-end with separated output"
}Token len=1004
--- GET with token ---
{"message":"Internal Server Error"}
HTTP=500
--- POST with token ---
{"message":"Internal Server Error"}
HTTP=500
--- GET no auth ---
{"message":"Unauthorized"}
HTTP=401
--- GET bad bearer ---
{"message":"Unauthorized"}
HTTP=401
[stdout]
Token len=1004
--- GET with token ---
{"message":"Internal Server Error"}
HTTP=500
--- POST with token ---
{"message":"Internal Server Error"}
HTTP=500
--- GET no auth ---
{"message":"Unauthorized"}
HTTP=401
--- GET bad bearer ---
{"message":"Unauthorized"}
HTTP=401{
"command": "aws logs describe-log-streams --log-group-name /aws/lambda/harbor-jwt-backend --order-by LastEventTime --descending --max-items 2 --query 'logStreams[].logStreamName' --output text",
"description": "Find log streams"
}(Bash completed with no output)
{
"command": "aws logs describe-log-streams --log-group-name /aws/lambda/harbor-jwt-backend 2>&1 | head -30",
"description": "List log streams"
}{
"logStreams": []
}
[stdout]
{
"logStreams": []
}{
"command": "aws lambda invoke --function-name harbor-jwt-backend --payload '{\"routeKey\":\"GET /reports\",\"requestContext\":{\"http\":{\"method\":\"GET\"}}}' /tmp/lout.json 2>&1; cat /tmp/lout.json",
"description": "Direct lambda invoke"
}Exit code 1
aws: [ERROR]: Invalid base64: "{"routeKey":"GET /reports","requestContext":{"http":{"method":"GET"}}}"
cat: /tmp/lout.json: No such file or directory
[error] tool reported failure{
"command": "aws lambda invoke --function-name harbor-jwt-backend --payload '{\"routeKey\":\"GET /reports\",\"requestContext\":{\"http\":{\"method\":\"GET\"}}}' --cli-binary-format raw-in-base64-out /tmp/lout.json; cat /tmp/lout.json",
"description": "Direct lambda invoke with binary fmt"
}Exit code 1 aws: [ERROR]: An error occurred (TooManyRequestsException) when calling the Invoke operation (reached max retries: 2): Rate Exceeded. Additional error details: Type: User Reason: ReservedFunctionConcurrentInvocationLimitExceeded cat: /tmp/lout.json: No such file or directory [error] tool reported failure
{
"command": "aws lambda get-function-concurrency --function-name harbor-jwt-backend; aws lambda get-function-event-invoke-config --function-name harbor-jwt-backend 2>&1",
"description": "Check concurrency limits"
}Exit code 254
{
"ReservedConcurrentExecutions": 0
}
aws: [ERROR]: An error occurred (ResourceNotFoundException) when calling the GetFunctionEventInvokeConfig operation: The function arn:aws:lambda:us-east-1:000000000000:function:harbor-jwt-backend:$LATEST doesn't have an EventInvokeConfig
Additional error details:
Type: User
[error] tool reported failure{
"command": "aws lambda delete-function-concurrency --function-name harbor-jwt-backend; aws lambda get-function-concurrency --function-name harbor-jwt-backend",
"description": "Remove concurrency limit"
}(Bash completed with no output)
{
"command": "API_URL=\"http://localstack:4566/restapis/db08e45c/prod/_user_request_\"\nTOKEN=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read harbor-api/write\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])')\necho \"--- GET with full-scope token ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"\necho \"--- POST with full-scope token ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" -X POST \"$API_URL/reports\" -H \"Authorization: Bearer $TOKEN\"\necho \"--- GET no auth ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\"\necho \"--- GET bad bearer ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer notajwt\"\nTR=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/read\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])')\nTW=$(curl -s -X POST http://localstack:4566/_aws/cognito-idp/oauth2/token -u \"i5ck30pfdtd8icu0ybdb0ywsn1:e2416bd8\" -d \"grant_type=client_credentials&scope=harbor-api/write\" | python3 -c 'import sys,json;print(json.load(sys.stdin)[\"access_token\"])')\necho \"--- GET with write-only token (expect 403) ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" \"$API_URL/reports\" -H \"Authorization: Bearer $TW\"\necho \"--- POST with read-only token (expect 403) ---\"\ncurl -s -w \"\\nHTTP=%{http_code}\\n\" -X POST \"$API_URL/reports\" -H \"Authorization: Bearer $TR\"",
"description": "Test API end-to-end with all scopes/edges"
}--- GET with full-scope token ---
{"ok": true, "method": "GET", "route": "GET /reports", "client_id": "i5ck30pfdtd8icu0ybdb0ywsn1", "scope": "harbor-api/read harbor-api/write", "scopes": ["harbor-api/read", "harbor-api/write"]}
HTTP=200
--- POST with full-scope token ---
{"ok": true, "method": "POST", "route": "POST /reports", "client_id": "i5ck30pfdtd8icu0ybdb0ywsn1", "scope": "harbor-api/read harbor-api/write", "scopes": ["harbor-api/read", "harbor-api/write"]}
HTTP=200
--- GET no auth ---
{"message":"Unauthorized"}
HTTP=401
--- GET bad bearer ---
{"message":"Unauthorized"}
HTTP=401
--- GET with write-only token (expect 403) ---
{"message":"Forbidden"}
HTTP=403
--- POST with read-only token (expect 403) ---
{"message":"Forbidden"}
HTTP=403
[stdout]
--- GET with full-scope token ---
{"ok": true, "method": "GET", "route": "GET /reports", "client_id": "i5ck30pfdtd8icu0ybdb0ywsn1", "scope": "harbor-api/read harbor-api/write", "scopes": ["harbor-api/read", "harbor-api/write"]}
HTTP=200
--- POST with full-scope token ---
{"ok": true, "method": "POST", "route": "POST /reports", "client_id": "i5ck30pfdtd8icu0ybdb0ywsn1", "scope": "harbor-api/read harbor-api/write", "scopes": ["harbor-api/read", "harbor-api/write"]}
HTTP=200
--- GET no auth ---
{"message":"Unauthorized"}
HTTP=401
--- GET bad bearer ---
{"message":"Unauthorized"}
HTTP=401
--- GET with write-only token (expect 403) ---
{"message":"Forbidden"}
HTTP=403
--- POST with read-only token (expect 403) ---
{"message":"Forbidden"}
HTTP=403{
"taskId": "6",
"status": "completed"
}Updated task #6 status
No file changes, the agent left the workspace untouched.
downloading uv 0.9.7 aarch64-unknown-linux-gnu
Downloading pygments (1.2MiB)
Downloading botocore (12.7MiB)
Downloading pygments
Downloading botocore
Installed 13 packages in 139ms
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0 -- /root/.cache/uv/archive-v0/bc7XblG4Ju2fuN8PFHd0h/bin/python
cachedir: .pytest_cache
rootdir: /tests
plugins: json-ctrf-0.3.5
collecting ... collected 60 items
../tests/test_outputs.py::test_01_token_endpoint_returns_access_token PASSED [ 1%]
../tests/test_outputs.py::test_02_token_endpoint_rejects_bad_secret PASSED [ 3%]
../tests/test_outputs.py::test_03_token_endpoint_no_token_when_grant_type_missing PASSED [ 5%]
../tests/test_outputs.py::test_04_get_reports_with_valid_token_is_200 PASSED [ 6%]
../tests/test_outputs.py::test_05_post_reports_with_valid_token_is_200 PASSED [ 8%]
../tests/test_outputs.py::test_06_get_reports_returns_ok_true_in_body PASSED [ 10%]
../tests/test_outputs.py::test_07_post_reports_returns_ok_true_in_body PASSED [ 11%]
../tests/test_outputs.py::test_08_get_reports_without_authorization_is_401 PASSED [ 13%]
../tests/test_outputs.py::test_09_post_reports_without_authorization_is_401 PASSED [ 15%]
../tests/test_outputs.py::test_10_get_reports_with_malformed_bearer_is_401 PASSED [ 16%]
../tests/test_outputs.py::test_11_get_reports_with_wrong_scope_only_is_403 PASSED [ 18%]
../tests/test_outputs.py::test_12_post_reports_with_wrong_scope_only_is_403 PASSED [ 20%]
../tests/test_outputs.py::test_13_get_reports_body_reflects_method_and_route PASSED [ 21%]
../tests/test_outputs.py::test_14_post_reports_body_reflects_method_and_route PASSED [ 23%]
../tests/test_outputs.py::test_15_access_token_is_a_three_segment_jwt PASSED [ 25%]
../tests/test_outputs.py::test_16_token_payload_has_client_id_claim PASSED [ 26%]
../tests/test_outputs.py::test_17_token_payload_has_scope_claim_with_both_scopes PASSED [ 28%]
../tests/test_outputs.py::test_18_token_payload_issuer_matches_user_pool PASSED [ 30%]
../tests/test_outputs.py::test_19_token_payload_token_use_is_access PASSED [ 31%]
../tests/test_outputs.py::test_20_read_only_token_scope_excludes_write PASSED [ 33%]
../tests/test_outputs.py::test_21_write_only_token_scope_excludes_read PASSED [ 35%]
../tests/test_outputs.py::test_22_token_expiry_is_in_the_future PASSED [ 36%]
../tests/test_outputs.py::test_23_http_api_protocol_type_is_http PASSED [ 38%]
../tests/test_outputs.py::test_24_jwt_authorizer_type_is_jwt PASSED [ 40%]
../tests/test_outputs.py::test_25_jwt_authorizer_audience_contains_app_client_id PASSED [ 41%]
../tests/test_outputs.py::test_26_jwt_authorizer_issuer_matches_user_pool PASSED [ 43%]
../tests/test_outputs.py::test_27_jwt_authorizer_identity_source_is_authorization_header PASSED [ 45%]
../tests/test_outputs.py::test_28_route_get_reports_authorization_type_is_jwt PASSED [ 46%]
../tests/test_outputs.py::test_29_route_post_reports_authorization_type_is_jwt PASSED [ 48%]
../tests/test_outputs.py::test_30_route_get_reports_scopes_are_namespaced_read PASSED [ 50%]
../tests/test_outputs.py::test_31_route_post_reports_scopes_are_namespaced_write PASSED [ 51%]
../tests/test_outputs.py::test_32_route_get_reports_uses_the_authorizer PASSED [ 53%]
../tests/test_outputs.py::test_33_route_post_reports_uses_the_authorizer PASSED [ 55%]
../tests/test_outputs.py::test_34_lambda_integration_payload_format_is_two_dot_zero PASSED [ 56%]
../tests/test_outputs.py::test_35_lambda_integration_type_is_aws_proxy PASSED [ 58%]
../tests/test_outputs.py::test_36_lambda_integration_uri_targets_backend_function PASSED [ 60%]
../tests/test_outputs.py::test_37_stage_auto_deploy_is_true PASSED [ 61%]
../tests/test_outputs.py::test_38_stage_has_a_deployment PASSED [ 63%]
../tests/test_outputs.py::test_39_stage_name_is_prod PASSED [ 65%]
../tests/test_outputs.py::test_40_user_pool_exists_with_expected_name PASSED [ 66%]
../tests/test_outputs.py::test_41_resource_server_exists_with_two_scopes PASSED [ 68%]
../tests/test_outputs.py::test_42_app_client_allowed_oauth_flow_is_client_credentials PASSED [ 70%]
../tests/test_outputs.py::test_43_app_client_oauth_flows_user_pool_client_is_true PASSED [ 71%]
../tests/test_outputs.py::test_44_app_client_has_a_client_secret PASSED [ 73%]
../tests/test_outputs.py::test_45_app_client_allowed_oauth_scopes_includes_both_namespaced PASSED [ 75%]
../tests/test_outputs.py::test_46_app_client_supports_cognito_identity_provider PASSED [ 76%]
../tests/test_outputs.py::test_47_app_client_does_not_use_implicit_flow_alone PASSED [ 78%]
../tests/test_outputs.py::test_48_backend_lambda_exists_and_active PASSED [ 80%]
../tests/test_outputs.py::test_49_backend_lambda_runtime_is_python3 PASSED [ 81%]
../tests/test_outputs.py::test_50_backend_lambda_role_can_write_logs FAILED [ 83%]
../tests/test_outputs.py::test_51_apigateway_can_invoke_backend_lambda PASSED [ 85%]
../tests/test_outputs.py::test_52_log_group_exists PASSED [ 86%]
../tests/test_outputs.py::test_53_ssm_manifest_keys_present PASSED [ 88%]
../tests/test_outputs.py::test_54_ssm_api_id_resolves_to_real_api PASSED [ 90%]
../tests/test_outputs.py::test_55_ssm_user_pool_id_resolves_to_real_pool PASSED [ 91%]
../tests/test_outputs.py::test_56_ssm_authorizer_id_resolves_to_real_authorizer PASSED [ 93%]
../tests/test_outputs.py::test_57_ssm_oauth_token_endpoint_is_well_formed PASSED [ 95%]
../tests/test_outputs.py::test_58_backend_lambda_reserved_concurrency_does_not_block_invocations PASSED [ 96%]
../tests/test_outputs.py::test_59_backend_lambda_direct_invoke_returns_a_successful_response PASSED [ 98%]
../tests/test_outputs.py::test_60_backend_lambda_role_grants_log_stream_writes FAILED [100%]
=================================== FAILURES ===================================
__________________ test_50_backend_lambda_role_can_write_logs __________________
def test_50_backend_lambda_role_can_write_logs():
role_name = LAMBDA_ROLE_ARN().split("/")[-1]
iam = _client("iam")
attached = iam.list_attached_role_policies(RoleName=role_name).get("AttachedPolicies", [])
has_managed = any("AWSLambdaBasicExecutionRole" in (a.get("PolicyArn") or "") for a in attached)
if has_managed:
return
inline = iam.list_role_policies(RoleName=role_name).get("PolicyNames", [])
ok = False
for pn in inline:
doc = iam.get_role_policy(RoleName=role_name, PolicyName=pn).get("PolicyDocument") or {}
for s in _stmts(doc):
if s.get("Effect") == "Allow" and (_action_matches(s.get("Action"), "logs:PutLogEvents") or _action_matches(s.get("Action"), "logs:CreateLogStream")):
ok = True
> assert ok, f"backend lambda role {role_name} has no logs write capability"
E AssertionError: backend lambda role harbor-jwt-backend-role has no logs write capability
E assert False
/tests/test_outputs.py:638: AssertionError
_____________ test_60_backend_lambda_role_grants_log_stream_writes _____________
def test_60_backend_lambda_role_grants_log_stream_writes():
role_name = LAMBDA_ROLE_ARN().split("/")[-1]
iam = _client("iam")
attached = iam.list_attached_role_policies(RoleName=role_name).get("AttachedPolicies", [])
has_managed = any("AWSLambdaBasicExecutionRole" in (a.get("PolicyArn") or "") for a in attached)
has_stream, has_put = False, False
if not has_managed:
for pn in iam.list_role_policies(RoleName=role_name).get("PolicyNames", []):
doc = iam.get_role_policy(RoleName=role_name, PolicyName=pn).get("PolicyDocument") or {}
for s in _stmts(doc):
if s.get("Effect") != "Allow":
continue
if _action_matches(s.get("Action"), "logs:CreateLogStream"):
has_stream = True
if _action_matches(s.get("Action"), "logs:PutLogEvents"):
has_put = True
> assert has_managed or (has_stream and has_put), (
f"backend lambda role {role_name} can not write log streams or events - "
f"the basic-execution managed policy is not attached and the inline policies do not grant both "
f"logs:CreateLogStream and logs:PutLogEvents"
)
E AssertionError: backend lambda role harbor-jwt-backend-role can not write log streams or events - the basic-execution managed policy is not attached and the inline policies do not grant both logs:CreateLogStream and logs:PutLogEvents
E assert (False or (False))
/tests/test_outputs.py:746: AssertionError
=============================== warnings summary ===============================
test_outputs.py: 123 warnings
/root/.cache/uv/archive-v0/bc7XblG4Ju2fuN8PFHd0h/lib/python3.12/site-packages/botocore/auth.py:424: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datetime_now = datetime.datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_01_token_endpoint_returns_access_token
PASSED ../tests/test_outputs.py::test_02_token_endpoint_rejects_bad_secret
PASSED ../tests/test_outputs.py::test_03_token_endpoint_no_token_when_grant_type_missing
PASSED ../tests/test_outputs.py::test_04_get_reports_with_valid_token_is_200
PASSED ../tests/test_outputs.py::test_05_post_reports_with_valid_token_is_200
PASSED ../tests/test_outputs.py::test_06_get_reports_returns_ok_true_in_body
PASSED ../tests/test_outputs.py::test_07_post_reports_returns_ok_true_in_body
PASSED ../tests/test_outputs.py::test_08_get_reports_without_authorization_is_401
PASSED ../tests/test_outputs.py::test_09_post_reports_without_authorization_is_401
PASSED ../tests/test_outputs.py::test_10_get_reports_with_malformed_bearer_is_401
PASSED ../tests/test_outputs.py::test_11_get_reports_with_wrong_scope_only_is_403
PASSED ../tests/test_outputs.py::test_12_post_reports_with_wrong_scope_only_is_403
PASSED ../tests/test_outputs.py::test_13_get_reports_body_reflects_method_and_route
PASSED ../tests/test_outputs.py::test_14_post_reports_body_reflects_method_and_route
PASSED ../tests/test_outputs.py::test_15_access_token_is_a_three_segment_jwt
PASSED ../tests/test_outputs.py::test_16_token_payload_has_client_id_claim
PASSED ../tests/test_outputs.py::test_17_token_payload_has_scope_claim_with_both_scopes
PASSED ../tests/test_outputs.py::test_18_token_payload_issuer_matches_user_pool
PASSED ../tests/test_outputs.py::test_19_token_payload_token_use_is_access
PASSED ../tests/test_outputs.py::test_20_read_only_token_scope_excludes_write
PASSED ../tests/test_outputs.py::test_21_write_only_token_scope_excludes_read
PASSED ../tests/test_outputs.py::test_22_token_expiry_is_in_the_future
PASSED ../tests/test_outputs.py::test_23_http_api_protocol_type_is_http
PASSED ../tests/test_outputs.py::test_24_jwt_authorizer_type_is_jwt
PASSED ../tests/test_outputs.py::test_25_jwt_authorizer_audience_contains_app_client_id
PASSED ../tests/test_outputs.py::test_26_jwt_authorizer_issuer_matches_user_pool
PASSED ../tests/test_outputs.py::test_27_jwt_authorizer_identity_source_is_authorization_header
PASSED ../tests/test_outputs.py::test_28_route_get_reports_authorization_type_is_jwt
PASSED ../tests/test_outputs.py::test_29_route_post_reports_authorization_type_is_jwt
PASSED ../tests/test_outputs.py::test_30_route_get_reports_scopes_are_namespaced_read
PASSED ../tests/test_outputs.py::test_31_route_post_reports_scopes_are_namespaced_write
PASSED ../tests/test_outputs.py::test_32_route_get
… (truncated at 12,000 chars, full verifier log is in the trial artifacts)Reproduce this trial: git checkout 2f94510 && PYTHONPATH=src python3 scripts/build_site.py , then open trial/trial_37394253217147ac. Re-running the agent live requires EVAL_PLATFORM_ENABLE_OAUTH_SMOKE=1 and is non-deterministic.
Trial trial_37394253217147ac · verifier authoritative; classifier explanatory.