Skip to content
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

Use external auth module (mod_authnz_external) for CycleCloud Proxy. #1754

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions playbooks/ood.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
state: latest
lock_timeout : 180

- name: Set up PAM authentication for OOD
include_role:
name: ood_pam_auth
- name: Set up mod_authnz_external modules (for cyclecloud proxy)
yum:
name: mod_authnz_external
lock_timeout: 180

- name: Retrieve OIDC secret
block:
Expand Down Expand Up @@ -232,12 +233,13 @@
if ! grep -q {{ccportal_name}} /opt/ood/ood-portal-generator/templates/ood-portal.conf.erb; then
cd /root
cat << EOF > cyclecloud_proxy
DefineExternalAuth pwauth pipe /usr/bin/pwauth
SetEnv OOD_CC_URI "/cyclecloud"
<Location "/cyclecloud">
AuthType Basic
AuthName "Open OnDemand"
AuthBasicProvider PAM
AuthPAMService ood
AuthBasicProvider external
AuthExternal pwauth
Require valid-user

ProxyPass http://{{ccportal_name}}:80/cyclecloud
Expand Down