Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1126838 - Models with a 'belongs_to' association to an Organization do not verify association belongs to that Organization
Summary: Models with a 'belongs_to' association to an Organization do not verify assoc...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Organizations and Locations
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1115955 (view as bug list)
Depends On:
Blocks: 1115955 CVE-2014-8183
TreeView+ depends on / blocked
 
Reported: 2014-08-05 12:20 UTC by Eric Helms
Modified: 2018-09-04 17:47 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 17:47:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6777 0 Normal New CVE-2014-8183 - Models with a 'belongs_to' association to an Organization do not verify association belongs to that Org... 2020-10-01 15:24:59 UTC

Description Eric Helms 2014-08-05 12:20:26 UTC
While this affects more models in Katello where every model must be silo'd within an Organization, this problem arises in Foreman as well. Thus, a general use validator that lives in Foreman would be the ideal solution.

Foreman Case:
1. Ensure you have a host and a smart proxy
2. Assign host to organization 'Org A'
3. Assign smart proxy ONLY to organization 'Org B'
4. Ensure 'Org A' does not have any smart proxies
5. Note that UI will not present options to set the Puppet CA for the host on the edit screen
6. Via the API:
PUT to /api/v2/hosts/1 { 'puppet_proxy_id': 1 } (the ID of the smart proxy in 'Org B')
7. Smart proxy that is only in 'Org B' will be assigned to host in 'Org A'

Katello Example:
1. Create Product in 'Org A'
2. Create GPG Key in 'Org B'
3. Via the API:
PUT to /katello/api/v2/products/1 - { 'gpg_key_id': 1} (the ID of the gpg key)
7. Gpg Key from another organization can be assigned to product

Comment 1 Eric Helms 2014-08-05 12:20:27 UTC
Created from redmine issue http://projects.theforeman.org/issues/6777

Comment 3 Mike McCune 2014-08-05 16:38:12 UTC
To put this a bit more bluntly:

You can assign association between objects *across* organizational boundaries.

Comment 5 Bryan Kearney 2015-08-25 17:59:52 UTC
Upstream bug component is Multi Org

Comment 8 Kurt Seifried 2017-03-07 03:52:25 UTC
What action is required by org B to gain access to org A? Does the org A have to run the PUT command?

Comment 15 Brad Buckingham 2017-09-22 14:28:19 UTC
*** Bug 1115955 has been marked as a duplicate of this bug. ***

Comment 16 Brad Buckingham 2017-09-22 14:30:27 UTC
The solution for this bugzilla is to address a generic issue.  When verifying, please make sure to also verify scenarios associated with any bugzillas that may have been closed as a duplicate.  

For example:
https://bugzilla.redhat.com/show_bug.cgi?id=1115955#c5

Comment 19 Bryan Kearney 2018-09-04 17:47:19 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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