René's URL Explorer Experiment


Title: Use symmetric crypto for github_token · Issue #7 · google/magic-github-proxy · GitHub

Open Graph Title: Use symmetric crypto for github_token · Issue #7 · google/magic-github-proxy

X Title: Use symmetric crypto for github_token · Issue #7 · google/magic-github-proxy

Description: Thanks for a nice writeup! You suggest using asymmetric encryption for encrypting the real token and signing the JWT. This works well; however, we never use the private/public keys on different machines, so we could go for symmetric cryp...

Open Graph Description: Thanks for a nice writeup! You suggest using asymmetric encryption for encrypting the real token and signing the JWT. This works well; however, we never use the private/public keys on different mac...

X Description: Thanks for a nice writeup! You suggest using asymmetric encryption for encrypting the real token and signing the JWT. This works well; however, we never use the private/public keys on different mac...

Opengraph URL: https://github.com/google/magic-github-proxy/issues/7

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use symmetric crypto for github_token","articleBody":"Thanks for a [nice writeup][1]! You suggest using asymmetric encryption for encrypting the real token and signing the JWT. This works well; however, we never use the private/public keys on different machines, so we could go for symmetric crypto instead. This would make the resulting token shorter (probably because [RSA needs padding][2] but there might be some other stuff I don't know about):\r\n\r\n```shell\r\n$ echo \"${REAL_TOKEN}\"\r\n7e096a6633471a2c967718d4b435f0ecdac5c426\r\n\r\n$ echo \"${REAL_TOKEN}\" | openssl rsautl -encrypt -inkey public.pem -pubin | wc -c\r\n256\r\n\r\n$ echo \"${REAL_TOKEN}\" | openssl rsautl -encrypt -inkey public.pem -pubin | base64\r\nTmqTx2ri6FC1ybGdVKiKQQHb3+Ns/iDJ7MfaXPswDfXA0Nhtqu4lxWv+ZDP209cPFXk8zOCIVttH\r\nGMV8Sj8/+bBjPQqXWoA8KZugxzivgMoEgBGhGRFC51b0X2aj/aA2T0D19d1L3YRjN+WpuVx5IXD+\r\njTrBFu53YZRq6igHlQtcG2Z115N9TE+o4vwEts0UXslc6LnbEXmPo+xo2Hg68I4P6USdt/ES/Xqn\r\ndJodhz6nS9wSe2YxuZ5tRm8jrSLqBn/uiyTh7U8K7jQlqRYqsdbK3WtPDLJmchyOiOeCp5rZ0Pcp\r\nris2W1wVKDIBRmF5ZdEBPxRh/aF/LCV6gacNKw==\r\n\r\n$ echo \"${REAL_TOKEN}\" | openssl aes-256-cbc -salt -kfile private.pem -iter 1 | wc -c\r\n64\r\n\r\n# The key can also be derived from a string (i. e. `app.secret` for Flask)\r\n# – easier to manage\r\n$ echo \"${REAL_TOKEN}\" | openssl aes-256-cbc -salt -k \"hello\" -iter 1 | base64\r\nU2FsdGVkX18Za6G3LLM2Djs+Qj+Z4o/0R83IVVizzJfQp8eEbhYfdgmtpi3qItW5YmMUZ8NaKe0Q\r\nbH6Hvs2sKQ==\r\n```\r\n\r\nWhat do you think? :)\r\n\r\n[1]: https://blog.thea.codes/building-a-stateless-api-proxy/\r\n[2]: https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Padding","author":{"url":"https://github.com/notpushkin","@type":"Person","name":"notpushkin"},"datePublished":"2019-05-30T10:28:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/7/magic-github-proxy/issues/7"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ce9ea56e-5e6a-e3fe-f169-c6b39ef99cfa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD374:1FC98B:14323A9:1AFFBF1:6A5B9B04
html-safe-noncef61816d1d0408c1fb0ae9cacf7db127ea479abe92f309563c9e884068831e1f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzc0OjFGQzk4QjoxNDMyM0E5OjFBRkZCRjE6NkE1QjlCMDQiLCJ2aXNpdG9yX2lkIjoiODU5NTk0NjMyODIyODA3NjI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce7c1ce6e5500d870578c2f6c35f4f70cead34098c49482ef72e9f4954e7799f
hovercard-subject-tagissue:450238183
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/magic-github-proxy/7/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9679887d90f2d6ab9eb4aa80ac56b761dc90bf2b387b855013af2783ca3e41d1/google/magic-github-proxy/issues/7
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9679887d90f2d6ab9eb4aa80ac56b761dc90bf2b387b855013af2783ca3e41d1/google/magic-github-proxy/issues/7
og:image:altThanks for a nice writeup! You suggest using asymmetric encryption for encrypting the real token and signing the JWT. This works well; however, we never use the private/public keys on different mac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenotpushkin
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/google/magic-github-proxy git https://github.com/google/magic-github-proxy.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id159738931
octolytics-dimension-repository_nwogoogle/magic-github-proxy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id159738931
octolytics-dimension-repository_network_root_nwogoogle/magic-github-proxy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/google/magic-github-proxy/issues/7#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fmagic-github-proxy%2Fissues%2F7
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fmagic-github-proxy%2Fissues%2F7
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=google%2Fmagic-github-proxy
Reloadhttps://github.com/google/magic-github-proxy/issues/7
Reloadhttps://github.com/google/magic-github-proxy/issues/7
Reloadhttps://github.com/google/magic-github-proxy/issues/7
Please reload this pagehttps://github.com/google/magic-github-proxy/issues/7
google https://github.com/google
magic-github-proxyhttps://github.com/google/magic-github-proxy
Notifications https://github.com/login?return_to=%2Fgoogle%2Fmagic-github-proxy
Fork 7 https://github.com/login?return_to=%2Fgoogle%2Fmagic-github-proxy
Star 148 https://github.com/login?return_to=%2Fgoogle%2Fmagic-github-proxy
Code https://github.com/google/magic-github-proxy
Issues 1 https://github.com/google/magic-github-proxy/issues
Pull requests 0 https://github.com/google/magic-github-proxy/pulls
Actions https://github.com/google/magic-github-proxy/actions
Security and quality 0 https://github.com/google/magic-github-proxy/security
Insights https://github.com/google/magic-github-proxy/pulse
Code https://github.com/google/magic-github-proxy
Issues https://github.com/google/magic-github-proxy/issues
Pull requests https://github.com/google/magic-github-proxy/pulls
Actions https://github.com/google/magic-github-proxy/actions
Security and quality https://github.com/google/magic-github-proxy/security
Insights https://github.com/google/magic-github-proxy/pulse
Use symmetric crypto for github_tokenhttps://github.com/google/magic-github-proxy/issues/7#top
https://github.com/notpushkin
notpushkinhttps://github.com/notpushkin
on May 30, 2019https://github.com/google/magic-github-proxy/issues/7#issue-450238183
nice writeuphttps://blog.thea.codes/building-a-stateless-api-proxy/
RSA needs paddinghttps://en.wikipedia.org/wiki/RSA_(cryptosystem)#Padding
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.