Reputation: 1257
We want to disable UI access for our build users. They can not use plain-text password for REST APIs for security reasons.
I am trying following to get encrypted password without allowing Build users UI access. - I created one build user(Non admin with UI disabled) - Created access token for that build user using admin account.
When I try to use Token to fetch encrypted password of build user I get following error.
ANYBRIDGEBUCK:~ jainish.shah$ curl -H "Authorization: Bearer $TOKEN" http://jainish.artifactory.com/artifactory/api/security/encryptedPassword
{
"errors" : [ {
"status" : 404,
"message" : "User not found: token:automation"
} ]
Is there any other way to get encrypted password without using plain-text password or via UI.
Upvotes: 2
Views: 1753
Reputation: 20376
The Get User Encrypted Password REST API requires that the request needs to be authenticated using a clear-text password. i.e. when submitting the request to Artifactory, the password provided for authentication needs to be in clear-text.
Upvotes: 2