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

Update to support foundational update of container-httpd for external authentication #194

Merged
merged 4 commits into from
Aug 16, 2017

Conversation

abellotti
Copy link
Member

Updating manageiq-pods so that it defines an miq-sysadmin scc and service account for the container-httpd pod.

This is needed for running httpd under systemd, a requirement for enabling external authentication.

@bazulay
Copy link

bazulay commented Aug 10, 2017

Why is systemd required in the first place ?

@abellotti
Copy link
Member Author

When external authentication is enabled, that will depend on SSSD which requires systemd.

The miq-sysadmin service account must be added to the miq-sysadmin SCC before the front-end Httpd pod can run.

```bash
$ oc adm policy add-scc-to-user miq-sysadmin system:serviceaccount:<your-namespace>:miq-sysadmin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not piggyback on an existing service account?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then everyone using that service account would also get the SYS_ADMIN capability.

I don't think that's what we want.

Copy link
Member

@carbonin carbonin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

This new scc is essentially the anyuid scc with an added capability.

If a user is not able to create a new scc in the environment I would assume privileged would also work, right @abellotti ?

@@ -22,6 +22,10 @@ objects:
metadata:
name: miq-privileged
- apiVersion: v1
kind: ServiceAccount
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to make the same changes on the external db template.

Copy link
Member Author

@abellotti abellotti Aug 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 done with commit# 2bbe170

@abellotti
Copy link
Member Author

@carbonin correct, if they cannot add miq-sysadmin, then a privileged SCC will also work, I ran systemd/sssd/dbus early on as such successfully.

name: "${HTTPD_SERVICE_NAME}-configs"
data:
redirects.conf: |
# The following redirects files must be included to handle most specific to least specific URLs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this redirects.conf file valid? This is all outside of a <VirtualHost> block.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should hold off on this until #197 is merged. It will significantly simplify the httpd config.


ProxyPreserveHost on
RequestHeader set X_FORWARDED_PROTO 'https'
logging.conf: |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these separate files? I was thinking we would just supply the entire config in one file.

@miq-bot
Copy link
Member

miq-bot commented Aug 16, 2017

This pull request is not mergeable. Please rebase and repush.

and service account for the container-httpd pod.

This is needed for running httpd under systemd, a requirement for
enabling external authentication.
Apache config files (redirects, logging, etc) that get mapped
to /etc/httpd/conf.d/application.d/
… changes for manageiq/httpd.

- Fixed up format of the templates to be rspec test compliant.
- Rebased to support latest changes where container-httpd delegates management of SSL to the openshift route.
@miq-bot
Copy link
Member

miq-bot commented Aug 16, 2017

Checked commits abellotti/manageiq-pods@aedf0ed~...5b5d7e4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bdunne bdunne merged commit 8d86f70 into ManageIQ:master Aug 16, 2017
@bdunne bdunne self-assigned this Aug 16, 2017
@bdunne bdunne added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 16, 2017
@abellotti abellotti deleted the ext-auth-foundation branch September 8, 2017 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants