papr icon indicating copy to clipboard operation
papr copied to clipboard

Consider supporting RHEL?

Open jlebon opened this issue 8 years ago • 2 comments

Right now, there's no support for provisioning RHEL-based hosts/containers and registering them. By its very nature, redhat-ci is more targeted at upstream work, which usually means Fedora/CentOS anyway. Though there could be use cases for provisioning RHEL userspaces too.

I've been avoiding this because I didn't want to deal with the risk factor of leaking subscription data, though there might be safe ways to do this, e.g. creating temporary stage accounts that last the duration of the test run.

jlebon avatar Apr 27 '17 16:04 jlebon

leaking subscription data

Perhaps the duration of the subscription only lasts until build/test commands start. In other words, package install is permitted, but then the system is unsubscribed and unregistered. Then the only place it's possible to run commands (that could expose the subscription or host certs) is from a script embedded in an RPM. However, those certs. would soon be invalidated when the packaging section ended (or there was an error or timeout).

Otherwise, the only thing you need to protect is any logs of the 'subscription-manager' command itself. That's easily done by feeding it's --username, --password, and --org parameters with values from short-lived files or env. vars. Then, to be safe, kill root's .bash_history (from a separate shell).

I think there's even a subscription-manager "reset" option that will wipe out all traces of the system's cert. Combine all that with your short-lived credentials idea, and there's multiple-layers of protection against leaks.

cevich avatar Apr 27 '17 17:04 cevich

Saw a demo that made me think this issue is solved, no?

cevich avatar May 30 '17 18:05 cevich