Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Username/Password auth: improve auth flow #102
Just migrated from Rundeck 2.6.11 to 2.8.2-1 on a CentOS 6.5 Server using the standard yum method and am noticing some errors with the rundeck.log.
Using 2.6.11 (and earlier versions) the "rd-jobs load" with yaml files was working perfectly for us. We have migrated our scripts to use "rd jobs load" with the new rd tools and have noticed the following behaviour in the rundeck.log.
We receive two ERROR notifications and then the job is loaded and scheduled accordingly.
The same yaml files were working on 2.6.11. The job within Rundeck works flawlessly (from the GUI) and even exports the same yaml as we are loading.
The rd.conf has been created and we have entries for the following:
Do you need any additional information? Is this is a bug / issue, user error or soemthing we have missed entirely?
@mikeleigh You can ignore that, it is not an error when you are using username/password authentication. The rd tool first makes the API request without authentication to receive an "Unauthenticated" response, before submitting the username/password for authentication.
It could be more sophisticated with detecting when/how to send authentication.
If it is really undesirable for you, you could switch to Token authentication which does not do that.
I will rename this issue to reflect that the Form auth flow should be enhanced for a nicer interaction with the server.
changed the title from
Error / Unauthorized for scheduledExecution/apiJobsImportv14
Username/Password auth: improve auth flow
May 22, 2017
@gschueler switching to token authentication removes these errors as suggested. It does however add the headache of the expiring 30 day tokens, a different issue.
@mikeleigh yes. fyi the 30 day limit is the default, can be changed or removed. see http://rundeck.org/docs/administration/configuration-file-reference.html#security under