Skip to content

feat: add jwe decrypt plugin#10252

Merged
juststillthinking merged 23 commits into
apache:masterfrom
fishioon:feat-jwe
Dec 4, 2023
Merged

feat: add jwe decrypt plugin#10252
juststillthinking merged 23 commits into
apache:masterfrom
fishioon:feat-jwe

Conversation

@fishioon

@fishioon fishioon commented Sep 25, 2023

Copy link
Copy Markdown
Contributor

Description

Like kong jwe-decrypt plugin.
Sometimes we need pass encrypt message with request header, like jwe

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@fishioon fishioon changed the title [WIP]feat: add jwe decrypt plugin WIP: feat: add jwe decrypt plugin Sep 25, 2023
@juststillthinking
juststillthinking marked this pull request as draft September 25, 2023 03:42
@juststillthinking

Copy link
Copy Markdown
Contributor

@fishioon click here when you are ready
image

@fishioon
fishioon marked this pull request as ready for review September 25, 2023 03:44
@juststillthinking

Copy link
Copy Markdown
Contributor

please make the ci pass

@juststillthinking juststillthinking added the wait for update wait for the author's response in this issue/PR label Sep 25, 2023
@membphis

Copy link
Copy Markdown
Member

missing test cases and ci failed, pls fix them first

@fishioon fishioon changed the title WIP: feat: add jwe decrypt plugin feat: add jwe decrypt plugin Oct 3, 2023
@fishioon
fishioon force-pushed the feat-jwe branch 2 times, most recently from 92ea674 to fa89f03 Compare October 3, 2023 17:14
@juststillthinking

Copy link
Copy Markdown
Contributor

Good job! please make the ci pass, thanks!

@fishioon
fishioon force-pushed the feat-jwe branch 7 times, most recently from 49a424c to e659cff Compare October 9, 2023 05:38
@juststillthinking

Copy link
Copy Markdown
Contributor

@fishioon please make the ci pass

@fishioon
fishioon force-pushed the feat-jwe branch 2 times, most recently from 2e61384 to b51f672 Compare October 12, 2023 12:47
@fishioon

Copy link
Copy Markdown
Contributor Author

@fishioon please make the ci pass

done

@shreemaan-abhishek shreemaan-abhishek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code looks good to me. I haven't yet reviewed the doc tho.

Comment thread apisix/plugins/jwe-decrypt.lua
Comment thread apisix/plugins/jwe-decrypt.lua Outdated
@juststillthinking

Copy link
Copy Markdown
Contributor

Thanks for you contribution! We will check this pr later

Comment thread apisix/plugins/jwe-decrypt.lua Outdated
Comment thread t/plugin/jwt-auth.t Outdated
Comment thread apisix/plugins/jwe-decrypt.lua Outdated
Comment thread t/plugin/jwe-decrypt.t Outdated
Comment thread t/plugin/jwe-decrypt.t Outdated
Comment thread t/plugin/jwe-decrypt.t Outdated
Comment thread t/plugin/jwe-decrypt.t Outdated
Comment thread t/plugin/jwe-decrypt.t Outdated
Comment thread t/plugin/jwe-decrypt.t
}
}
--- response_body
passed

@juststillthinking juststillthinking Nov 30, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No real request test?

=== TEST 18: verify (in header)
--- request
GET /hello
--- more_headers
Authorization: Bearer eyJhbGciOiJkaXIiLCJraWQiOiJ1c2VyLWtleSIsImVuYyI6IkEyNTZHQ00ifQ..MTIzNDU2Nzg5MDEy.6JeRgm02rpOJdg.4nkSYJgwMKYgTeacatgmRw
--- response_body
hello world

@juststillthinking

Copy link
Copy Markdown
Contributor

@fishioon please resolve the review comments

@fishioon

Copy link
Copy Markdown
Contributor Author

@fishioon please resolve the review comments

@shreemaan-abhishek Help me!

@juststillthinking juststillthinking added approved and removed wait for update wait for the author's response in this issue/PR user responded labels Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants