#311 new
Moses Lei

Local script option provider

Reported by Moses Lei | May 27th, 2011 @ 11:36 AM

I would like to have a way to call a local script/command which outputs JSON, and use this as an options provider. Most options provider scripts are run on the rundeck server anyway, and this would reduce the need for separate CGI infrastructure.

For example, I might want to pick out of a list of files to process in a directory. A local command could take ls output and format it into JSON. Would be much simpler to craft a ls/sed one-liner to do this than to set up a CGI script.

Comments and changes to this ticket

  • Deleted User

    Deleted User May 27th, 2011 @ 12:39 PM

    This was considered, but we concluded that the potential for abuse might out weight the benefit. By focusing on the URL as the primary interface, the need to operate another option for reading values is not needed (file:/// is a url).

  • Moses Lei

    Moses Lei May 27th, 2011 @ 01:09 PM

    Noah, I don't see how allowing executions for options providers is any more prone to abuse than allowing executions for arbitrary other code, which is what jobs are. Can you elaborate?

  • Deleted User

    Deleted User May 27th, 2011 @ 01:24 PM

    You bring up a good point about the default configuration of RunDeck. For your proposed idea, would these local script options be run as the rundeck user or the user of the java process?

  • Moses Lei

    Moses Lei May 27th, 2011 @ 02:22 PM

    I don't know of any installations where the user running the java process is not rundeck... what concerns do you have either way?

  • Alex-SF

    Alex-SF June 8th, 2011 @ 08:42 AM

    • Milestone cleared.
    • Milestone order changed from “45” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues

Shared Ticket Bins

People watching this ticket