As part of a PoC I implemented JWT (JSON Web Token) authentication (aka Federated Authentication) for robot accounts.
Here you find the code: https://github.com/dvob/harbor/tree/robot-account-jwt-authentication
I tested it with various use cases (example configurations):
- GitLab: Access from GitLab CI
- Github: Access from Github Actions
- Kubernetes: Image pull using service account