generated from cyberark/conjur-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The authn-jwt-gitlab binary does not explicitly handle 401 Unauthorized errors. Instead, it fails during secret retrieval and returns a JSON parsing error (example below), which does not clearly indicate to the user that the issue is authentication related.
2025/04/01 13:03:41 Cannot retrieve secret value for path/to/variable/username. Unable to unmarshal token : unexpected end of JSON input
To Reproduce
Steps to reproduce the behavior:
- Follow the steps in the README to create a sample configuration.
- Use incorrect JWT authentication information, such as an invalid service ID.
- Observe that the error message indicates a JSON parsing issue rather than an authentication failure.
Expected behavior
A clear error message should be displayed, referring to the authentication failure due to invalid credentials or unauthorized access.
Additional context
This issue makes it difficult for users to diagnose authentication problems, leading to confusion when troubleshooting.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working