fermitools / managed-tokens

Managed Tokens service for FIFE Experiments at Fermilab
Apache License 2.0
0 stars 0 forks source link

More expansive error messages for setup errors #12

Closed shreyb closed 1 year ago

shreyb commented 1 year ago

The setup errors tend to be very vague, which was done for user-friendliness. However, we need to see more information to properly diagnose what happened. For example, "Could not store and obtain vault token" doesn't say much. See if we can somehow parse these errors a bit better to get an idea of what actually is going on.

shreyb commented 1 year ago

Looks good now. Just seeing if I can clean up the template since we have things like this:

    • sbnd_fakerole: Could not store and get vault tokens: error obtaining and/or storing vault tokens for one or more credd: authentication needed for service to generate vault token: permission denied to generate vault token
shreyb commented 1 year ago

Dropped the redundant "error obtaining..." bit.