diff --git a/README.md b/README.md index 023294cc4..90eb91784 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,27 @@ saltgui_public_pillars: - pub_.* ``` +## Reduced menus +When api's are disabled using the native `external_auth` mechanism, +SaltGUI may show menu-items that have become unuseable. +In that case, it may be useful to reduce the menu-bar to less items. +Variable `saltgui_pages` is read +from salt master configuration file `/etc/salt/master`. +It contains the list of accessible pages per user. +The first page in the list also becomes the landing page. +Users that are not listed still have the full menu. +e.g.: +``` +saltgui_pages: + user1: + - keys + - grains +``` +Note that this is NOT a security mechanism to reduce what a user can do. +All pages are still accessible using their original deep-link. +And also any command can still be issued using the command-box. +For real security measures, use parameter `external_auth`. + ## Performance SaltGUI does not have artificial restrictions. But displaying all data may be slow when there is a lot of data. diff --git a/saltgui/index.html b/saltgui/index.html index b18f9042f..5120aff49 100644 --- a/saltgui/index.html +++ b/saltgui/index.html @@ -21,34 +21,10 @@ -