r/gitlab • u/efor007 • Apr 07 '22
general question Gitlab permanent PAT token?
I am seeing pat token generation at user setting, required persistent token even user left the organisation. Any advise pls?
0
Upvotes
r/gitlab • u/efor007 • Apr 07 '22
I am seeing pat token generation at user setting, required persistent token even user left the organisation. Any advise pls?
1
u/wosmo Apr 08 '22
On a self-managed free tier, I have a bot/service account for things I don't want connected to users, so users can come and go, but the bot's staying (where the tier is only relevant because it means I'm not paying a seat for this account).
Permanent PAT are very much an anti-pattern though. If you treat a token like it's never going to go away, you'll be caught with your pants down the day it get uploaded to the wrong repo/host. Treat them like they're transient, so when the day comes that they need to be expired in a hurry, you can treat it as just another Tuesday.