bugwarrior icon indicating copy to clipboard operation
bugwarrior copied to clipboard

[Github] Shared tokens, expiration

Open srl295 opened this issue 2 years ago • 2 comments

a couple of ideas, around github expiring tokens

  1. I now find i have several targets sharing the same github.token. Would it be possible to use named tokens such as the following, so that updating a token is easier:
[github_abc]
service = github
github.token = $token3

[github_def]
service = github
github.token = $token3

[general.tokens]
token3=ghp_123456
  1. according to this page there is a header GitHub-Authentication-Token-Expiration giving the expiration date. Could the tool give this feedback back on the command line? it should be collated so that only one message is given per token, even if the token is used multiple times.

srl295 avatar May 23 '22 16:05 srl295

  1. If we were going to support variables in INI files it might make sense to enable extended interpolation and add a [Variables] section to the configuration scheme for that purpose. However, it seems like for the use case you're presenting this feature could be renamed "Even Easier to Use Footgun" because I don't think we should be encouraging people to store secrets in bugwarriorrc in the first place when there are better options.

ryneeverett avatar May 24 '22 17:05 ryneeverett

feat: Even Easier to Use Footgun

thanks, i will read the docs. I should be using the hooks, too (next to that link).

  1. still could be of interest, though

srl295 avatar May 24 '22 18:05 srl295