API Credentials not persisting

6 views
Skip to first unread message

Brenno Garcia

unread,
Feb 3, 2026, 10:42:39 AM (16 hours ago) Feb 3
to Wazuh | Mailing List
Im changing my wazuh api password by api
 curl -u "wazuh:newpassword" -k -X GET "https://192.168.16.106:55000/security/users"
{"title": "Unauthorized", "detail": "No authorization token provided"}

and it works
curl -u "wazuh:newpassword" -k -X POST "https://192.168.16.106:55000/security/user/authenticate?raw=true"
eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ3YXp1aCIsImF1ZCI6IldhenVoIEFQSSBSRVNUIiwibmJmIjoxNzcwMTI2NzIyLCJleHAiOjE3NzAxMjc2MjIsInN1YiI6IndhenVoIiwicnVuX2FzIjpmYWxzZSwicmJhY19yb2xlcyI6WzFdLCJyYmFjX21vZGUiOiJ3aGl0ZSJ9.AagfQvc_tisps9JqRQdjAFGVBduVN_wNf0Y02VBwLsCFAhRlwazfEsXJB6an0_N56JKSP_fswN0C_zW_UUeBnZDdAYFq3t2jdS3FdGe8CCbq8bHwk_vWtYA7Eq4kD23-lAoAZJD-bKMCeiXKjXitFFdlxge-

but when I restart the manager
docker restart c3
c3

the password is getting incorret and then i need to update again
{"title": "Unauthorized", "detail": "Invalid credentials"}
Reply all
Reply to author
Forward
0 new messages