-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Implement http signatures support for the API #17565
Conversation
716659b
to
90596a2
Compare
I've made PRs against go-sdk and tea: |
Did |
no |
Is this something that could still get in 1.16 ? |
I think we have feature freezed for v1.16 before this PR sent. I would like to put it into v1.17 . |
Codecov Report
@@ Coverage Diff @@
## main #17565 +/- ##
==========================================
+ Coverage 47.28% 47.33% +0.05%
==========================================
Files 957 959 +2
Lines 133374 133628 +254
==========================================
+ Hits 63067 63257 +190
- Misses 62633 62673 +40
- Partials 7674 7698 +24
Continue to review full report at Codecov.
|
I'm afraid this may result in a performance problem like we encountered in token ? |
Can you give some more context ? |
@lunny remarks fixed and integration tests added |
CI failure is related. |
latest CI failure seems to be a CI issue |
I'm gonna ignore this CI failure pass but if we see it a few times in other PRs and this one again I think we need to go hunt if there is a potential deadlock... Hmm... it also happened on https://drone.gitea.io/go-gitea/gitea/55674/2/15 - here was in code.gitea.io/gitea/modules/markup.render I guess I can still ignore... |
But yesterday, it's right https://drone.gitea.io/go-gitea/gitea/55639 for the same PR |
Failed again, but seems to happen in other recent drone builds too. |
|
Make lgtm work |
* giteaofficial/main: Add alt text to logo (go-gitea#19892) Limit max-height of CodeMirror editors for issue comment and wiki (go-gitea#18271) Implement http signatures support for the API (go-gitea#17565) Increment tests time out from 40m to 50m because sometimes the machine is slow (go-gitea#19887) fix(CI/CD): correct CI variable. (go-gitea#19886) Fix typo (go-gitea#19889) Fixing wrong paging when filtering on the issue dashboard (go-gitea#19801) Move `/info` outside authorization (go-gitea#19888) Fix order by parameter (go-gitea#19849) Exclude Archived repos from Dashboard Milestones (go-gitea#19882) use exact search instead of fuzzy search for branch filter dropdown (go-gitea#19885)
Fixes go-gitea#12338 This allows use to talk to the API with our ssh certificate (and/or ssh-agent) without needing to fetch an API key or tokens. It will just automatically work when users have added their ssh principal in gitea. This needs client code in tea Update: also support normal pubkeys ref: https://tools.ietf.org/html/draft-cavage-http-signatures Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: zeripath <[email protected]> Signed-off-by: Andrew Thornton <[email protected]>
Fixes #12338
This allows use to talk to the API with our ssh certificate (and/or ssh-agent) without needing to fetch an API key or tokens.
It will just automatically work when users have added their ssh principal in gitea.
This needs client code in tea
Update: also support normal pubkeys
ref: https://tools.ietf.org/html/draft-cavage-http-signatures