pangeo-data / jupyter-earth

Jupyter meets the Earth: combining research use cases in geosciences with technical developments within the Jupyter and Pangeo ecosystems.
https://jupytearth.org
Creative Commons Zero v1.0 Universal
28 stars 6 forks source link

Enable auth against GitHub in a more secure way via Yuvi's github-app-user-auth project #96

Closed consideRatio closed 2 years ago

consideRatio commented 2 years ago

UPDATE: Done

The application is now installed and verified to function!

Instructions on how to use it

  1. Install the GitHub application into specific github repos you wish to be able to push to. Note that if this github application has already been installed for a repo by another person with access to the repo, then you wouldn't need to do it.
  2. Use github-app-auth-user in a terminal to acquire credentials Note that both your GitHub user needs permissions on the repo, and the github application needs to be "installed" on a repo, for you to modify its content.
  3. Done - you can now do git push!

Original issue

The task of this issue as suggested by @fperez is to setup and trial @yuvipanda's new project to enable auth against GitHub in a way that doesn't risk leaking sensitive credentials to GitHub.

Initial thoughts

Related

fperez commented 2 years ago

I believe that the behavior is already as you suggest - the credentials are revoked once the server is stopped.

I'm using it in my stat159 hub and so far very happy, though I've only done some early testing. But it looks like an excellent solution!

yuvipanda commented 2 years ago

yeah, credentials are stored in /tmp/, so when the user container goes away so does the authentication :)

consideRatio commented 2 years ago

Nice @yuvipanda, what you described it was supposed to do - it seems to do really well - nice!!! :tada: :heart:

@fperez it can now be used, I updated this issue's top comment with instructions!

fperez commented 2 years ago

Awesome, thx so much!