Bug 1577795 - Unable to query audits by auth_source type: ScopedSearch::QueryNotSupported
Summary: Unable to query audits by auth_source type: ScopedSearch::QueryNotSupported
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Audit Log
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: Tomer Brisker
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-14 07:04 UTC by Roman Plevka
Modified: 2019-11-05 23:19 UTC (History)
3 users (show)

Fixed In Version: foreman-1.18.0-0.6.RC2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:31:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23813 0 None None None 2018-06-05 09:21:07 UTC

Description Roman Plevka 2018-05-14 07:04:09 UTC
Description of problem:

the following used to work in 6.3 but no longer works in 6.4.0 (since snap1)

Making HTTP GET request to https://sat64-server.com/api/v2/audits with options {'data': '{"search": "type=auth_source"}', 'auth': ('admin', 'changeme'), 'verify': False, 'headers': {'content-type': 'application/json'}}

the response:
"'auditable_type' should be one of 'role, ptable, provisioning_template, filter, hostgroup, remote_execution_feature, lookup_value, model, domain, realm, environment, architecture, smart_proxy, image, usergroup, job_template, bookmark, hostgroup_class, puppetclass, medium, foreman_openscap/policy, foreman_openscap/scap_content, foreman_openscap/tailoring_file, job_invocation, host_ansible_role, katello/activation_key, katello/host_collection, katello/sync_plan, katello/gpg_key, katello/product, foreman_virt_who_configure/config, compute_profile, config_group, config_group_class, ssh_key, compute_attribute, host_class, host_config_group, http_proxy, key_pair, personal_access_token, compute_resource, host, interface, location, os, organization, override_value, partition_table, smart_class_parameter, smart_variable, parameter', but the query was 'auth_source'"

"class":"ScopedSearch::QueryNotSupported"

Version-Release number of selected component (if applicable):
6.4.0-1

How reproducible:
always

Steps to Reproduce:
1. create some external auth source
2. try to list all audits using api and the search query: "type=auth_source"

Comment 2 Tomer Brisker 2018-06-05 09:21:05 UTC
Created redmine issue http://projects.theforeman.org/issues/23813 from this bug

Comment 3 Satellite Program 2018-06-05 10:25:13 UTC
Upstream bug assigned to tbrisker

Comment 4 Satellite Program 2018-06-05 10:25:16 UTC
Upstream bug assigned to tbrisker

Comment 5 Satellite Program 2018-06-06 12:25:53 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23813 has been resolved.

Comment 7 Roman Plevka 2018-07-17 10:06:52 UTC
VERIFIED
on sat6.4.0-12

type = auth_source is now a recognized type and filtering by this type works well.

Comment 8 Bryan Kearney 2018-10-16 19:31:31 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/RHSA-2018:2927


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