this post was submitted on 12 Jul 2023
58 points (96.8% liked)

Programming

17344 readers
424 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 1 year ago* (last edited 1 year ago) (5 children)

But now you have the only credential, the REPO_TOKEN in plaintext in your .git/config file. That's even worse.

Edit: typo

[–] [email protected] 3 points 1 year ago (3 children)

That's how a lot of tools work. Your maven password is in .m2/settings.xml

Your ssh private key is in .ssh/id_rsa

The only person with access to these files should be you. If anyone else does then your machine is compromised

[–] [email protected] 2 points 1 year ago (1 children)

we're talking about a hypothetical one-off situation on a computer that isn't yours though; right? That happens from time to time, and an authentication process that requires you to persist your auth information on disk carries some extra risks. You need to remember to delete it when you're done.

[–] [email protected] 2 points 1 year ago

You don't need to remember to delete it, you can revoke the access from your github account.

Then it's useless.

load more comments (1 replies)
load more comments (2 replies)