Project

General

Profile

Bug #23813

Unable to query audits by auth_source type: ScopedSearch::QueryNotSupported

Added by Tomer Brisker 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Audit Log
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1577795

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"

Associated revisions

Revision c372e97e (diff)
Added by Tomer Brisker 9 months ago

Fixes #23813 - Allow searching audits by type=auth_source

History

#1 Updated by The Foreman Bot 9 months ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5648 added

#2 Updated by Michael Moll 9 months ago

  • Legacy Backlogs Release (now unused) set to 353

#3 Updated by Tomer Brisker 9 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/foreman/pull/5697 added

#5 Updated by Ondřej Pražák 8 months ago

  • Legacy Backlogs Release (now unused) changed from 353 to 330

Also available in: Atom PDF