-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adding Volume Snapshot (CloudVolumeSnapshot) to RBAC #19356
Adding Volume Snapshot (CloudVolumeSnapshot) to RBAC #19356
Conversation
4d27db6
to
0a1b41f
Compare
@jdeubel looks good 👍 I tried to test it also with specs: context 'searching for instances of CloudVolumeSnapshot' do
let!(:csv) { FactoryBot.create_list(:cloud_volume_snapshot, 2).first }
before do
csv.tag_with('/managed/environment/prod', :ns => '*')
end
it 'lists only tagged CloudVolumeSnapshot' do
results = described_class.search(:class => CloudVolumeSnapshot, :user => user).first
expect(results).to match_array [csv]
end
it 'lists only all CloudVolumeSnapshot' do
results = described_class.search(:class => CloudVolumeSnapshot, :user => admin_user).first
expect(results).to match_array CloudVolumeSnapshot.all
end
end so If you can, can you add it to thanks! |
Checked commits jdeubel/manageiq@0a1b41f~...385f100 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! 👍
Thanks for the help on this @lpichler |
Adding Volume Snapshot (CloudVolumeSnapshot) to RBAC (cherry picked from commit 68a06a3) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1773630
Hammer backport details:
|
Adding Volume Snapshot (CloudVolumeSnapshot) to RBAC (cherry picked from commit 68a06a3) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1773632
Ivanchuk backport details:
|
This enables RBAC checking on volume snapshots. Previously RBAC was not filtering on this class and users with managed filters (tags) were able to see all ever instance of a volume snapshot.
https://bugzilla.redhat.com/show_bug.cgi?id=1757994