-
Notifications
You must be signed in to change notification settings - Fork 29
Handle expired GitHub token #6051
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## hotfix/1.16.1 #6051 +/- ##
===================================================
+ Coverage 74.49% 74.52% +0.02%
- Complexity 5504 5506 +2
===================================================
Files 381 381
Lines 19797 19800 +3
Branches 2044 2044
===================================================
+ Hits 14748 14756 +8
+ Misses 4070 4065 -5
Partials 979 979
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -453,7 +453,7 @@ void testTRSImageName() { | |||
trsVersion = ga4Ghv20Api.toolsIdVersionsVersionIdGet("#workflow/github.com/" + DockstoreTesting.HELLO_WDL_WORKFLOW, quayDigestVersionName); | |||
assertEquals(1, trsVersion.getImages().size(), "Should be one image in this TRS version"); | |||
trsVersion.getImages().forEach(image -> assertEquals( | |||
"quay.io/ga4gh-dream/dockstore-tool-helloworld@sha256:3a854fd1ebd970011fa57c8c099347314eda36cc746fd831f4deff9a1d433718", image.getImageName())); | |||
"quay.io/ga4gh-dream/dockstore-tool-helloworld@sha256:71c0f43d9081cb14411adae56773762b1e829f7175645484571dcb1c6e120d23", image.getImageName())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cherry-pick from Steve's PR to fix test.
dockstore-integration-testing/src/test/java/io/dockstore/webservice/WebhookIT.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THIS COMMENT WAS WRONG, so I nuked it. Can't figure out why I can't just delete it.
...ore-webservice/src/main/java/io/dockstore/webservice/resources/AbstractWorkflowResource.java
Outdated
Show resolved
Hide resolved
|
Description
Handles the case where a Dockstore user with an expired GitHub token is involved in a GItHub push notification.
Steve described the bug in the ticket, here's my step-by-step view:
Alternative and/or temporary fix: we could delete expired GitHub tokens, which may not be a bad idea anyway. The problem is we don't have an easy way to figure that out, and it would sort of risky updating the DB directly with SQL.
Review Instructions
This will be tricky to verify in staging.
Find an event that failed and redeliver it in prod.
Verify there are no errors in CloudWatch if you search for
"Bad credentials" "Error handling push event"
Issue
SEAB-6850
Security and Privacy
If there are any concerns that require extra attention from the security team, highlight them here and check the box when complete.
e.g. Does this change...
Please make sure that you've checked the following before submitting your pull request. Thanks!
mvn clean install
@RolesAllowed
annotation