Document configuration of a Github rate limit, FAQ and Github PAT howto as solution (e.g. for improving client UI upgrade experience) #17
Labels
documentation
Improvements or additions to documentation
Context
FDM Monster calls the GitHub API to do these things:
Many users are enjoying the client upgrade feature, but sometimes the releases of Github dont load.
Problem description
The GitHub API has a rate limit. A part of the GitHub documentation describes this as follows:
And more specifically:
FDM Monster is doing unauthenticated requests per default. But if we read further, there are also authenticated requests possible with the Github API given a Personal Access Token (PAT) is provided.
FDM Monster has not been configured or approved as GitHub App and therefore users must provide their own PAT. The FDM Monster server can be configured with this token. This is what must be documented.
Information to convey
Server has reached a rate limit of the Github API. This limit will be reset at .... (in ... minutes)
. Note to us: I am not sure this mechanic works 😶🌫️Step 1 - Click account top right
Step 2 - Click settings option
Step 3 - Scroll down and click Developer settings
Step 4 - Click Personal access tokens
Step 5 - Open Fine-grained tokens (Preview)
Step 6 - Click Generate new token
Step 7 - Login with two-factor authentication (2FA) if this is configured for your account.
Step 8 - Provide all details required and submit with Generate token. Please be aware that the token is only shown to you once. If you close the window and did not write down the token, you will need to redo this step. In that case its best to delete the old token as it will not have any value. For further questions please consult the frequently asked questions (FAQ) below.
Step 9 - Submit the token and copy the shown text value (a fine-grained token starts with
ghp_
)We might be better off adding a feature request to FDM Monster before heading this direction. Therefore this part of the documentation is to be marked very advanced until further notice.
The environment variable is called
GITHUB_PAT
and adding it to the.env
file in the applicable fdm-monster folder is one option. For docker we should instead specify the environment variable as documented elsewhere (avoid duplication). For MonsterPi we should: uninstall the service (uninstall npm script in daemon folder,sudo npm uninstall
in/home/pi/fdm-monster-daemon/
, adjust the service spec found here or add the .env file (not preferred) and finally runsudo npm install
. We could also refer to running the update script as this has "Please run as root" validation.Concluding: its a mess.
FAQ
The text was updated successfully, but these errors were encountered: