Problem:
Hello, after we upgrade to 3.2 our Foreman it seems that the script we were previously using to import automatically all puppetclasses via POST API request is not working with the previous permissions from Foreman 2.5
I know that Puppet was extracted from core and there were some changes but looking into the permissions the user might require it seems that my user is having the appropiate rights.
Expected outcome:
Successfull import
Foreman and Proxy versions:
3.2 Foreman and Proxy plugin versions:
Distribution and version:
CentOS 7 Other relevant data:
API request response
{
"error": {"message":"Access denied","details":"Missing one of the required permissions: ","missing_permissions":[ ]}
}
If I give Administrator role the script runs successfully but this is not the right way, any idea on what extra permissions user might require since the response does not specify any
This probably got lost during the transfer to the plugin.
If you want to try to fix it, you could try and patch the plugin by adding this line after line 147 in the above file: 'api/v2/smart_proxies' => [:import_puppetclasses],