Gathering data from Harbor API to parse for monitoring


shai.ben.naphtali@...
 

Hello,

With goharbor/harbor-core:v1.9.2 ; I want to utilize the API to collect stats and various data to later digest and setup monitoring.

I seem to either miss something or maybe I'm not seeing things for what they are, but I noticed that using the API is all or nothing. Meaning, I can't setup a user with Read Only permissions to just collect the data I want via the API.

The API requires authorization by users that, have admin permissions. This for me is a security risk that I can't commit to.

How do you go about setting up (if this is at all possible) a read-only user that has access to the various GET API endpoints?

Cheers,
Shai