Bug 1439859 - cannot create jenkins pipeline buildConfig when no jenkins server preinstall
Summary: cannot create jenkins pipeline buildConfig when no jenkins server preinstall
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.5.z
Assignee: Miciah Dashiel Butler Masters
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On: 1439065 1439066
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-06 17:25 UTC by Tracy Rankin
Modified: 2017-04-26 05:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: When the RestrictUsersAdmission admission control plug-in is enforcing role binding restrictions and examines a role binding with a service account subject, the plug-in requires that the subject have an explicit namespace that matches some role binding restriction in order to be admitted. When an application template contains a role binding with a service account subject, typically the subject's namespace is left blank in the template (rather than hardcoding a namespace or requiring a parameter) so that the namespace will be defaulted to the namespace in which the role binding is created. (An example is the jenkins-persistent application template and its jenkins_edit role binding.) However, this defaulting happens only after admission control is performed. Consequence: Role binding restrictions cannot match against role bindings as they are typically specified in an application template (that is, with the namespace left unspecified/blank), and so the RestrictUsersAdmission admission control plug-in rejects these role bindings. Fix: The RestrictUsersAdmission admission control plug-in has been changed to treat a blank namespace in a service account subject as implicitly matching the namespace of the role binding restriction. Result: The RestrictUsersAdmission admission control plug-in, with appropriate role binding restrictions, will now admit the aforementioned role bindings.
Clone Of: 1439065
Environment:
Last Closed: 2017-04-26 05:36:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1129 0 normal SHIPPED_LIVE OpenShift Container Platform 3.5, 3.4, 3.3, and 3.2 bug fix update 2017-04-26 09:35:35 UTC

Comment 4 Dongbo Yan 2017-04-10 05:22:20 UTC
Verified
openshift v3.5.5.5
kubernetes v1.5.2+43a9be4
etcd 3.1.0

Comment 6 errata-xmlrpc 2017-04-26 05:36:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1129


Note You need to log in before you can comment on or make changes to this bug.