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

Add Ownership and Tenancy Mixins to Authentication #17731

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Jul 19, 2018

This adds ownership and tenancy to authentications allowing for key
pairs added by EmsRefresh to be associated with users in manageiq.

Depends: ManageIQ/manageiq-schema#237

https://bugzilla.redhat.com/show_bug.cgi?id=1589766

include OwnershipMixin
include TenancyMixin

belongs_to :tenant
Copy link
Member Author

@agrare agrare Jul 19, 2018

Choose a reason for hiding this comment

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

I wonder if we should move this into the TenancyMixin similar to how evm_owner and miq_group are in OwnershipMixin ref.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so because there are some classes that include TenancyMixin that don't actually have a tenant_id

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@agrare
Copy link
Member Author

agrare commented Jul 19, 2018

Gaprindashvili backport: #17732

@agrare agrare force-pushed the bz_1589766_add_owner_and_group_to_auth branch from 1f86bb7 to e1690e1 Compare July 19, 2018 20:11
This adds ownership and tenancy to authentications allowing for key
pairs added by EmsRefresh to be associated with users in manageiq.

https://bugzilla.redhat.com/show_bug.cgi?id=1589766
@agrare agrare force-pushed the bz_1589766_add_owner_and_group_to_auth branch from e1690e1 to 4c6ba95 Compare July 19, 2018 20:21
@miq-bot
Copy link
Member

miq-bot commented Jul 19, 2018

Checked commit agrare@4c6ba95 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
4 files checked, 0 offenses detected
Everything looks fine. 🏆

@agrare
Copy link
Member Author

agrare commented Jul 26, 2018 via email

@agrare
Copy link
Member Author

agrare commented Sep 10, 2018

@Ladas so could we set these during EmsRefresh if the parser returns the username?

@Ladas
Copy link
Contributor

Ladas commented Sep 12, 2018

@agrare we should probably focus on manual assignment for now, plus assignment during creation. Manual and refresh assignment will probably not work together well, since they will be overwriting each other.

@agrare
Copy link
Member Author

agrare commented Sep 12, 2018

@gtanzillo this is ready, can you take a look?

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

👍

@gtanzillo gtanzillo added this to the Sprint 95 Ending Sep 24, 2018 milestone Sep 14, 2018
@gtanzillo gtanzillo merged commit fb02d7e into ManageIQ:master Sep 14, 2018
@agrare agrare deleted the bz_1589766_add_owner_and_group_to_auth branch September 14, 2018 13:48
@aufi
Copy link
Member

aufi commented Sep 19, 2018

@agrare @Ladas @gtanzillo Hi, this actually breaks OpenStack provider Travis [1].

Is there something we should change in OpenStack keypairs to make it compatible with Tenancy?

[1] https://travis-ci.org/ManageIQ/manageiq-providers-openstack/jobs/430257732

@Ladas
Copy link
Contributor

Ladas commented Sep 19, 2018

This should fix the CIs #17998

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