Skip to content

Commit

Permalink
Added support for additional preauth options added in: rundeck/rundec…
Browse files Browse the repository at this point in the history
  • Loading branch information
ncstate-daniel committed Nov 13, 2017
1 parent 0b84bff commit acaa082
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,13 @@
$gui_config = {}

$preauthenticated_config = {
'enabled' => false,
'attributeName' => 'REMOTE_USER_GROUPS',
'delimiter' => ':',
'enabled' => false,
'attributeName' => 'REMOTE_USER_GROUPS',
'delimiter' => ':',
'userNameHeader' => 'X-Forwarded-Uuid',
'userRolesHeader' => 'X-Forwarded-Roles',
'redirectLogout' => false,
'redirectUrl' => '/oauth2/sign_in',
}

$quartz_job_threadcount = 10
Expand Down
4 changes: 4 additions & 0 deletions spec/classes/config/global/rundeck_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
rundeck.security.authorization.preauthenticated.enabled = "false"
rundeck.security.authorization.preauthenticated.attributeName = "REMOTE_USER_GROUPS"
rundeck.security.authorization.preauthenticated.delimiter = ":"
rundeck.security.authorization.preauthenticated.userNameHeader = "X-Forwarded-Uuid"
rundeck.security.authorization.preauthenticated.userRolesHeader = "X-Forwarded-Roles"
rundeck.security.authorization.preauthenticated.redirectLogout = "false"
rundeck.security.authorization.preauthenticated.redirectUrl = "/oauth2/sign_in"
CONFIG

Expand Down
4 changes: 4 additions & 0 deletions templates/rundeck-config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ rundeck.storage.provider."1".path = "/"
rundeck.security.authorization.preauthenticated.enabled = "<%= @preauthenticated_config['enabled']%>"
rundeck.security.authorization.preauthenticated.attributeName = "<%= @preauthenticated_config['attributeName']%>"
rundeck.security.authorization.preauthenticated.delimiter = "<%= @preauthenticated_config['delimiter']%>"
rundeck.security.authorization.preauthenticated.userNameHeader = "<%= @preauthenticated_config['userNameHeader']%>"
rundeck.security.authorization.preauthenticated.userRolesHeader = "<%= @preauthenticated_config['userRolesHeader']%>"
rundeck.security.authorization.preauthenticated.redirectLogout = "<%= @preauthenticated_config['redirectLogout']%>"
rundeck.security.authorization.preauthenticated.redirectUrl = "<%= @preauthenticated_config['redirectUrl']%>"

<%- @gui_config.sort.each do |k,v| -%>
<%= k %> = "<%= v %>"
Expand Down

0 comments on commit acaa082

Please sign in to comment.