{"id":40471348,"url":"https://github.com/engineal/cdk-recaptcha-authorizer","last_synced_at":"2026-01-20T18:17:51.569Z","repository":{"id":37078589,"uuid":"271396307","full_name":"engineal/cdk-recaptcha-authorizer","owner":"engineal","description":"An AWS CDK construct library that provides a reCaptcha Authorizer for API Gateway REST APIs","archived":false,"fork":false,"pushed_at":"2023-07-28T18:29:59.000Z","size":1093,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-04T19:09:06.515Z","etag":null,"topics":["apigateway","aws","cdk","construct","lambda","recaptcha"],"latest_commit_sha":null,"homepage":"https://constructs.dev/packages/cdk-recaptcha-authorizer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/engineal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-10T22:11:45.000Z","updated_at":"2024-11-04T15:16:57.000Z","dependencies_parsed_at":"2024-10-15T05:00:54.234Z","dependency_job_id":null,"html_url":"https://github.com/engineal/cdk-recaptcha-authorizer","commit_stats":{"total_commits":197,"total_committers":3,"mean_commits":65.66666666666667,"dds":"0.37055837563451777","last_synced_commit":"2bfe6e6498ec60bec49dbb77d519340c0c4e9d18"},"previous_names":["engineal/aws-cdk-recaptcha-authorizer"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/engineal/cdk-recaptcha-authorizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineal%2Fcdk-recaptcha-authorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineal%2Fcdk-recaptcha-authorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineal%2Fcdk-recaptcha-authorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineal%2Fcdk-recaptcha-authorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engineal","download_url":"https://codeload.github.com/engineal/cdk-recaptcha-authorizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineal%2Fcdk-recaptcha-authorizer/sbom","scorecard":{"id":377263,"data":{"date":"2025-08-11","repo":{"name":"github.com/engineal/cdk-recaptcha-authorizer","commit":"3ab5ead7867bbd46da53a1853e3f28f15cf55fae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:8","Warn: topLevel 'packages' permission set to 'write': .github/workflows/release.yml:9","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/engineal/cdk-recaptcha-authorizer/node.js.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/engineal/cdk-recaptcha-authorizer/node.js.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/engineal/cdk-recaptcha-authorizer/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/engineal/cdk-recaptcha-authorizer/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-rx28-r23p-2qc3","Warn: Project is vulnerable to: GHSA-v4mq-x674-ff73","Warn: Project is vulnerable to: GHSA-qq4x-c6h6-rfxh","Warn: Project is vulnerable to: GHSA-5pq3-h73f-66hr","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T14:33:11.141Z","repository_id":37078589,"created_at":"2025-08-18T14:33:11.142Z","updated_at":"2025-08-18T14:33:11.142Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28608691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apigateway","aws","cdk","construct","lambda","recaptcha"],"created_at":"2026-01-20T18:17:51.252Z","updated_at":"2026-01-20T18:17:51.549Z","avatar_url":"https://github.com/engineal.png","language":"TypeScript","readme":"# Google reCAPTCHA API Gateway REST API authorizer\n\nThis construct provides an API Gateway REST API authorizer that uses Google's reCAPTCHA service to detect abusive\ntraffic and allow or deny access to the API methods.\n\nIt currently only supports v3 of the reCAPTCHA service.\n\n## Installation\n\n### TypeScript / JavaScript\n\n`npm install cdk-recaptcha-authorizer`\n\nor\n\n`yarn add cdk-recaptcha-authorizer`\n\n### Python\n\n`pip install cdk-recaptcha-authorizer`\n\n### Java\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.engineal.cdk\u003c/groupId\u003e\n    \u003cartifactId\u003ecdk-recaptcha-authorizer\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\n### C# / .Net\n\n`dotnet add package EngineAL.CDK.RecaptchaAuthorizer`\n\n## Usage\n\nSee https://developers.google.com/recaptcha/docs/v3 for how to integrate reCAPTCHA in your client code. When\nyour client code executes the reCAPTCHA client, the returned token from the Google reCAPTCHA client library\nshould be included in the API Gateway request in the `X-reCAPTCHA-Token` header.\n\nThe `RecaptchaAuthorizer` can be used similarly to the `TokenAuthorizer` and `RequestAuthorizer` that are\nprovided by the `aws-cdk-lib/aws-apigateway` package. It accepts 3 properties:\n\n* `scoreThreshold` (default: 0.5) is the threshold below which requests will be denied.\n* `allowedActions` is a list of allowed actions. When your frontend executes the reCAPTCHA client, it provides\nan action name. The reCAPTCHA authorizer will verify this action is allowed and deny a request if the action\nis not in this list.\n* `reCaptchaSecretKey` is a `SecretKey` that provides the reCAPTCHA secret key to the reCAPTCHA authorizer.\nSee [Secret Key](secret-key).\n\nThe following code attaches the reCAPTCHA authorizer to the 'GET' method of the root resource.\n```typescript\nconst authorizer = new RecaptchaAuthorizer(this, 'reCaptchaAuthorizer', {\n    allowedActions: ['my-action'],\n    reCaptchaSecretKey: SecretKey.fromPlainText('my-secret-key')\n});\n\napi.root.addMethod('GET', new apigateway.MockIntegration(), {\n    authorizer\n});\n```\n\nAuthorizers can also be passed via the `defaultMethodOptions` property within the RestApi construct or the\nMethod construct. Unless explicitly overridden, the specified defaults will be applied across all Methods\nacross the RestApi or across all Resources, depending on where the defaults were specified.\n\n### Secret Key\nThe lambda requires the secret key generated by the Google reCAPTCHA Admin Console. You can provide it using\n3 methods: plain text, AWS SSM Parameter Store, or AWS Secrets Manager.\n\n#### Plain text\n```typescript\nSecretKey.fromPlainText('my-secret-key')\n```\n\n#### SSM Parameter Store\n```typescript\nconst parameter = ssm.StringParameter.fromStringParameterName(this, 'TestParameter', 'test-secret-key');\nSecretKey.fromSsmParameter(parameter)\n```\n\n#### Secrets Manager\n```typescript\nconst secretArn = `arn:${Stack.of(this).partition}:secretsmanager:${Stack.of(this).region}:${Stack.of(this).account}:secret:test-secret`;\nconst secret = secretsmanager.Secret.fromSecretArn(this, 'TestSecret', secretArn);\nSecretKey.fromSecretsManager(secret)\n```\n\nThis also supports JSON secrets, and you can specify an optional field to use:.\n```typescript\nconst secretArn = `arn:${Stack.of(this).partition}:secretsmanager:${Stack.of(this).region}:${Stack.of(this).account}:secret:test-secret`;\nconst secret = secretsmanager.Secret.fromSecretArn(this, 'TestSecret', secretArn);\nSecretKey.fromSecretsManager(secret, 'my-secret-field')\n```\n\n### Useful commands\n\n * `npm run build`   compile the project\n * `npm run watch`   watch for changes and compile as needed\n * `npm run package` generates libraries for all languages\n * `npm run test`    perform the jest unit tests\n\n## License\n\n   Copyright 2023 Aaron Lucia\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineal%2Fcdk-recaptcha-authorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineal%2Fcdk-recaptcha-authorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineal%2Fcdk-recaptcha-authorizer/lists"}