Closed htmlauthor closed 7 years ago
After some sleep and coffee I realized, RedHat 7 is using systemd as an init system. To enable Basic Auth on strong-pm running under RedHat 7:
sl-pm-install --http-auth user:pass --systemd
systemctl daemon-reload
systemctl restart strong-pm
To access status information after enabling basic auth:
slc ctl -C http://user:pass@server-host:8701 log-dump apimanager
Hello everyone, I am running strong-pm@5.2.4 on RedHat Linux v7 server. Set up basic auth on it using:
sl-pm-install --http-auth user:pass --force
Didsystemctl daemon-reload
andsystemctl restart strong-pm
, even tried restarting whole server, but I can still successfully hitslc ctl -C http://server-host:8701 log-dump appname
and see logs without any username and password provided.I can see
env STRONGLOOP_PM_HTTP_AUTH=basic:user:pass
is set in /etc/init/strong-pm.confMy expectation was to get connection refused or getting back error 401 if I am trying to access status/logs/anything without providing basic auth credentials, but it is just going through and giving back information to anyone.
Any pointers on what am I missing?