-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SaltGui cannot access rest-api somehow? #623
Comments
@nerdoc Note that you should restart |
side-note... |
No, SaltGUI is an application that runs entirely in the browser.
|
Sorry for the delay, I missed the notification for your comment...
these should all be 404's, unless you already manually added these files.
The others are for API functions and should follow the settings from
I always forget to mention this one... |
@nerdoc do you still have this problem? |
Hi, I'm currently dealing with a similar problem. I can't login to saltgui - session expired. When I try to connect locally to localhost:3333 , the logging works, but I get the same errors as in the post. I have the same setup, it worked fine before. |
@Broula-cmd please open a new issue. my experience is that the causes are in the individual setups and should therefore be handled individually. |
@nerdoc |
ok, so they should not disturb the rest of the software - and at least not this issue.
the salt user (under which salt-master and salt-minion run) are in the "shadow" group which has r/o access to /etc/shadow:
So everything seems fine, but the error stays. |
I even added my user (christian) temporarily to the "salt" and "shadow" groups - because SaltGUI uses PAM as login method - and maybe when using this user, SaltGUI will use its permissions. No difference. |
ok, let me try to replicate your (exact) situation:
|
I am using plain Debian 12, up to date packages. |
file_roots:
base:
- /srv/salt/
keep_acl_in_token: True
allow_uid_change: True
allow_gid_change: True
mysql.host: 'db'
mysql.user: 'salt'
mysql.pass: 'XXXXXX'
mysql.db: 'salt'
mysql.port: 3306
rest_cherrypy:
port: 8080
host: 0.0.0.0
disable_ssl: true
app: /srv/saltgui/index.html
static: /srv/saltgui/static
static_path: /static
external_auth:
pam:
christian:
- .*
- '@runner':
- jobs.active
- jobs.list_job
- jobs.list_jobs
- manage.versions
- '@wheel':
- config.values
- key.finger
- key.list_all
- minions.connected
netapi_enable_clients:
- local
- local_async
- runner
- wheel |
I can repeat your situation when I also set |
the reason why I set this was that If I didn't set it, I get some errors in the logs:
So I assume it is set to True anyway internally. And it doesn't make a difference if I comment out this directive. |
According to the source code of Salt, that warning is only raised when |
That's correct, my fault, I snipped out all comments from my config, and the (in my thoughts additional...) rest part under TL;DR: I removed the Thanks for your time and support. |
re-opening because I want add a warning in the SaltGUI README file |
Describe the bug
I finally installed SaltGui successfully (after a long, winding road... Salt is not easy.)
I can login to the UI using PAM, but I can't see any minions.
The "issues" tab says:
When hovering over one of the lines, it says "Error: Unauthorized"
To Reproduce
parts of my setup:
When using curl on ly rest-api, it works:
A "state.apply" using curl does work too.
Expected behaviour
AFAICT when using ".*" in the pam/ setting, everything should be ok. I expect to be able to manage the minions ;)
I can't think of other things, and I cant find any "log" file of SaltGUI - is there one?
The text was updated successfully, but these errors were encountered: