I’m doing a POC on Nexus Sonatype, so far so good on overall capabilities of the repository, the proxy, group and hosted. All nice but there’s not much information on the token reset or rotate, which is important now a days with security, there’s a link here,
but there’s no CLI equivalent, and all similar link don’t have proper answer on how to really reset/rotate it using CLI. Even the creation CLI is not happening with my trial of 10 days.
Let me know if this is really possible so that I can recommned this product to be purchased with my company.
Thanks a lot for taking the time to do a POC and providing your feedback. Much appreciated! For user tokens, enabling/disabling, invalidating, checking capability status are all available with REST API:
Rotating and resetting aren’t currently available with REST API. Can you please provide a bit more details on your user case? I can bring this back to our account team to address your concern.
Even if the api is not available, it can be access inside the vm, the reason I’m familiar with this kind of approach, I did this with prometheus/openshift, the company I work before don’t have budget for metrics on container, the only they could do is someon who could retrieve it from prometheus, so even if there’s no api available since it will be executed inside (using ansible) vm, I could retrieve if by debugging thru chrome and getting the endpoint, but since we have already license with openshift/prometheus, there’s no problem asking for calculation on the session token, see below,
This is not REST-API but actual program-API. Hopefully you could give that authToken calculation on epoch, user-token, or others like ip?