aker-gateway / Aker

SSH bastion/jump host/jumpserver
Other
567 stars 81 forks source link

Hosts configuration not updated upon change in hosts.json #57

Open caroblack opened 6 years ago

caroblack commented 6 years ago

Using Json as identity provider (idp=Json). The redis database does not reflect changes made in /etc/aker/hosts.json.

Restarting redis server has no effect. Manual "redis-cli flushall" will help.

anazmy commented 6 years ago

Hi,

Can you share the steps to reproduce this behavior please?

caroblack commented 6 years ago

I just took the example hosts.json, exchanged the host names/ip/usernames (no lines added) and tried the app, which works fine.

Then edit the hosts.json, change host names and login again. Aker still shows the old host names before the edit. The redis database was not updated which an be shown with redis-cli easily.

Am 05.12.2017 um 18:01 schrieb anazmy notifications@github.com:

Hi,

Can you share the steps to reproduce this behavior please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

anazmy commented 6 years ago

And if you press F5 to refresh?

caroblack commented 6 years ago

F5 works! but only after a relogin AND F5 which took some time to find out.

anazmy commented 6 years ago

F5 should refresh the list without the need to relogin, if you had a different experience let me know exact steps please to reproduce.