Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backend): await signature verification #3175

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mkurapov
Copy link
Contributor

@mkurapov mkurapov commented Dec 11, 2024

Changes proposed in this pull request

  • await verifyApiSignature

Context

Fixes #3174

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Make sure that all checks pass
  • Bruno collection updated (if necessary)
  • Documentation issue created with user-docs label (if necessary)
  • OpenAPI specs updated (if necessary)

@github-actions github-actions bot added pkg: backend Changes in the backend package. type: source Changes business logic labels Dec 11, 2024
Copy link

netlify bot commented Dec 11, 2024

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit b5e9304
🔍 Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/675983465fa31b0008d7b5b3

@mkurapov mkurapov marked this pull request as ready for review December 11, 2024 12:20
@@ -385,7 +385,7 @@ export class App {

if (this.config.adminApiSecret) {
koa.use(async (ctx, next: Koa.Next): Promise<void> => {
if (!verifyApiSignature(ctx, this.config)) {
if (!(await verifyApiSignature(ctx, this.config))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are testing verifyApiSignature call directly and awaiting correctly

@mkurapov mkurapov merged commit 0b4cac3 into main Dec 11, 2024
43 checks passed
@mkurapov mkurapov deleted the 3174/mk/await-sig-verification branch December 11, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package. type: source Changes business logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Await signature verification function in backend
2 participants