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

Improve parsers/redhat_release to detect CentOS correctly #3832

Open
wants to merge 1,012 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1012 commits
Select commit Hold shift + click to select a range
030176a
Automatically retry malware-detection downloads & uploads (#3493)
mhuth Aug 17, 2022
1547559
Feat: New grub2_editenv_list parser (#3481)
TZ3070 Aug 18, 2022
00566b0
feat: New spec and parser for"auditctl -l" (#3496)
huali027 Aug 18, 2022
ed8f91d
New location for temp directory and tests (#3489)
ahitacat Aug 18, 2022
2eb0fb5
Add release timeline (#3500)
Aug 25, 2022
103f84c
feat: New spec and parser for `authselect current` (#3490)
xiangce Aug 25, 2022
3d8ae09
Feat: New parser for 'ls -lanL /etc/ssh' command (#3499)
TZ3070 Aug 25, 2022
9389cb4
feat: New spec and parser to get the satellite provision params (#3501)
huali027 Aug 25, 2022
43e6f52
Feat: New journal_header (#3498)
TZ3070 Aug 25, 2022
41f9c35
fix: Issue calling collect from cli (#3506)
bfahr Aug 30, 2022
26d6155
fix: Revert the httpd_on_nfs datasource spec (#3509)
xiangce Sep 1, 2022
f890e65
fix: change cloud_cfg to Yaml and modify the source spec (#3484)
xiangce Sep 1, 2022
860c098
Fix: grubenv cannot be collected when error shown in output (#3511)
TZ3070 Sep 1, 2022
e56f7a6
Added no_proxy autoconfiguration from rhsm conf and tests (#3507)
ahitacat Sep 1, 2022
bf77042
Ensure full path when using timeout command (#3508)
bfahr Sep 8, 2022
92dec74
Feat: add secure spec to default.py (#3513)
TZ3070 Sep 8, 2022
faa3b9b
fix: support InstanceType in saphostctrl (#3512)
xiangce Sep 8, 2022
e4886d3
feat: Update ls_systemd_units parser (#3518)
jobselko Sep 13, 2022
fd368b5
Refractor cleanup local files for unregistration processes (#3520)
ahitacat Sep 13, 2022
b80d650
feat: Add spec "satellite_enabled_features" back (#3517)
huali027 Sep 15, 2022
f5480dd
Feat: Add spec and parser for cryptsetup luksDump (#3504)
danzatt Sep 15, 2022
73a472c
New parser for CpuSMTControl and tests update (#3521)
jobselko Sep 15, 2022
f998e23
feat: New spec to get satellite logs table size and its parser (#3516)
huali027 Sep 15, 2022
a316c02
fix: Removing extraneous space inserted in commit 894484a (#3523)
mike-kingsbury Sep 19, 2022
eb852e1
fix: Soscleaner fix (#3502)
Glutexo Sep 19, 2022
ecc5475
fix: bz-2126966: use SIGTERM for rpm instead of SIGKILL (#3524)
xiangce Sep 20, 2022
20816be
feat: Add combiner rhel for edge (#3526)
wushiqinlou Sep 22, 2022
8485052
feat: New spec "/etc/cron.d/foreman" and parser (#3514)
huali027 Sep 22, 2022
6732c34
Update docstring to make it more readable (#3531)
Sep 27, 2022
0c0a551
fix: bz-2130242, remove the print statement (#3535)
xiangce Sep 29, 2022
8ecdfe8
feat: [PoC] Support Container Specs (#3477)
xiangce Sep 29, 2022
a186edf
refactor: Keep the raw line for rule use (#3533)
huali027 Sep 29, 2022
1c53b43
fix: make SAPHostCtrlInstances compatible with old archives (#3528)
xiangce Sep 29, 2022
b32627b
Fix registration tests (#3519)
ahitacat Oct 3, 2022
777bbd9
feat: add helper function: get_dependency_specs and test (#3534)
xiangce Oct 6, 2022
0466219
Add spec and parser for luksmeta command (#3525)
danzatt Oct 13, 2022
6e3bc3f
fix: Restore the spec ovs_appctl_fdb_show_bridge (#3538)
Oct 13, 2022
b495112
chore: remove the unused specs (#3537)
xiangce Oct 13, 2022
d11ac70
Deprecate insights.core.scannable & engine_log parser (#3541)
Oct 13, 2022
43cc5e8
Feat: New parser for the "ls -lan /var/lib/sss/pubconf/krb5.include.d…
rasrivas-redhat Oct 13, 2022
d46110f
Remove authselect_current from core collection (#3552)
xiangce Oct 13, 2022
0bc7711
refactor: remove duplicated specs from get_dependency_specs (#3549)
xiangce Oct 13, 2022
13e06fa
fix: Add ability to return exceptions during insights collect (#3539)
vdymna Oct 13, 2022
03c8b83
Removed assert of virt-who, it is not in uploader.json (#3556)
ahitacat Oct 18, 2022
f25b797
[New-parser] parser_mpirun_version (#3542)
mohitkumarrh Oct 18, 2022
3164d83
feat: New spec "semanage login -l" and parser (#3548)
huali027 Oct 20, 2022
a29cc4e
fix: let container_execute to support rpm_format of installed_rpms (#…
xiangce Oct 24, 2022
c4e809b
Handle upload exceptions allowing --retries to work properly (#3558)
mhuth Oct 25, 2022
d36f63d
feat: New Parser for container_installed_rpms (#3560)
TZ3070 Oct 26, 2022
9968384
Order specs by alphabetical order (#3564)
ryan-blakley Oct 27, 2022
7725bde
test: add test for existing container specs (#3563)
xiangce Oct 27, 2022
06146b1
enhance and fix for softnet_data parser (#3561)
remijouannet Oct 27, 2022
4978b75
Avoid test to write in disk if machine-id is not found (#3543)
ahitacat Oct 27, 2022
1ad0bd6
fix: remove duplicated containers from running_rhel_containers (#3571)
xiangce Oct 28, 2022
d61496e
fix: missing call to a RPM format generation function (#3572)
danzatt Oct 31, 2022
d887994
enhance: add base class 'OVSvsctlList' (#3575)
shlao Nov 1, 2022
e1d279e
feat: new spec and parser for 'subscription-manage facts' (#3555)
xiangce Nov 3, 2022
397534e
fix: LuksDump not parsing multiple data segments (#3569)
danzatt Nov 3, 2022
0f50d36
fix: check list range to avoid exception (#3576)
takayuki-nagata Nov 3, 2022
020dc42
chore: remove the unused 'ethernet_interfaces' spec (#3577)
xiangce Nov 3, 2022
1878a29
fix: remove the inner functions of the _make_rpm_formatter (#3574)
xiangce Nov 3, 2022
969c407
feat: Add parser container_inspect (#3562)
wushiqinlou Nov 3, 2022
154438d
feat: new spec and parser for 'azure_instance_id' (#3568)
xiangce Nov 3, 2022
93e3ec5
feat(client): add --manifest argument (#3547)
subpop Nov 3, 2022
90a44a6
fix(parsers): add support for missing logs (#3582)
subpop Nov 4, 2022
ccbb62f
Update github actions to use latest version (#3583)
bfahr Nov 4, 2022
a343a9d
fix: values of broker.tracebacks should be string (#3579)
xiangce Nov 8, 2022
d6c06bc
feat: New spec "/etc/fapolicyd/rules.d/*.rules" and parser (#3587)
huali027 Nov 9, 2022
f610348
feat: New Combiner CloudInstance (#3585)
xiangce Nov 9, 2022
3ef1b48
Feat: New Parser for 'dotnet --version' Command for Containers (#3581)
TZ3070 Nov 9, 2022
00fcbe3
Handle network exceptions when accessing egg URL (#3588)
mhuth Nov 10, 2022
90a9a41
Update system_user_dirs datasource (#3586)
jobselko Nov 10, 2022
3436d87
Registration check unregisters when it is not connected (#3540)
ahitacat Nov 10, 2022
f849aa7
Add rhel 8.7 into uname.py (#3591)
chenlizhong Nov 11, 2022
968b104
feat: Add timeout to datasources (#3573)
ryan-blakley Nov 15, 2022
f812c0f
Revert "feat: Add timeout to datasources (#3573)" (#3594)
ryan-blakley Nov 16, 2022
3f6d9a9
Fix: Update container_installed_rpms spec (#3589)
TZ3070 Nov 16, 2022
67c00de
[New Specs] ls_var_lib_pcp (#3590)
mohitkumarrh Nov 17, 2022
3650732
Rename system_user_dirs to rpm_pkgs (#3597)
jobselko Nov 17, 2022
2b89974
feat: New spec "timedatectl" and the parser (#3592)
huali027 Nov 21, 2022
b2dc682
feat: RHEL 9.1 is GA (#3599)
xiangce Nov 21, 2022
53a3b01
New specs var_log_pcp_openmetrics_log (#3596)
mohitkumarrh Nov 22, 2022
62ff8f5
Rename downloaded temp malware rules file (#3602)
mhuth Nov 23, 2022
c7feb72
test: use ubuntu 20.04 instead of latest as the issue in latest (#3608)
chenlizhong Nov 25, 2022
ec9aff2
Don't look for yara installed in /usr/local/bin (#3614)
mhuth Nov 28, 2022
c208f45
[insights-core-3.0.300] Remove deprecated features (#3595)
Nov 29, 2022
dda5fd2
Add datasource to get jboss versions (#3600)
chenlizhong Nov 29, 2022
7f6f203
fix: Update the pinned doc modules (#3615)
ryan-blakley Nov 29, 2022
844f31f
Add nginx error log which is installed from RHSCL (#3616)
huali027 Nov 30, 2022
4b8f720
Display message when malware scan_timeout aborts scan (#3617)
mhuth Nov 30, 2022
4d3a4a0
feat: Add timeout to datasources (#3598)
ryan-blakley Dec 1, 2022
dc3e5dc
fix: add deprecated warning message in insights.combiners.mounts (#3613)
chenlizhong Dec 1, 2022
7cb5088
Keep the code to delete previously-named malware rules file (#3619)
mhuth Dec 1, 2022
bb032fb
fix: fix errors in ethtool (#3605)
chenlizhong Dec 1, 2022
0e263a5
Feat register no machine-id (#3554)
ahitacat Dec 5, 2022
5438a4d
feat: New spec "ls -lZ /var/lib/rsyslog" and the parser (#3618)
huali027 Dec 7, 2022
a0c7260
feat: Add container spec sys_cpu_online (#3612)
wushiqinlou Dec 7, 2022
eafa97a
feat: Add spec container_nginx_error_log (#3607)
wushiqinlou Dec 7, 2022
47762f5
feat: Add spec sys_cpuset_cpus (#3611)
wushiqinlou Dec 7, 2022
b81e677
Remove usage of reregistration and deprecate cli-option (#3522)
ahitacat Dec 7, 2022
63cd46c
Feat: Add Parser LsinitrdKdumpImage (#3567)
TZ3070 Dec 8, 2022
a4afe50
fix: fix CI issue when preparing py26 env (#3624)
xiangce Dec 8, 2022
9d72856
Delete old malware rules files from /var/tmp as well (#3625)
mhuth Dec 13, 2022
21295cd
fix: Log brief msg instead of Traceback when cmd not found (#3628)
xiangce Dec 14, 2022
e61b8f4
Improve old Python compatibility by not requiring ipython 8.6.0. (#3630)
jsvob Dec 15, 2022
357c365
Fix: fix GrubbyDefaultKernel cannot handle specific invalid content (…
TZ3070 Dec 15, 2022
abd3204
fix: py26 CI not found 'Python.h' (#3642)
xiangce Dec 23, 2022
492335c
fix: Convert aws_token to string since sometimes it's unicode (#3643)
huali027 Dec 23, 2022
eddbf68
feat: Add env override to CommandOutputProvider (#3636)
ryan-blakley Jan 10, 2023
f815c41
Create timeout signal for hostcontext only (#3647)
lhuett Jan 10, 2023
f5a8eef
Allow callers to order components for execution. (#3649)
csams Jan 11, 2023
17f13d1
Move exceptions to their own module file (#3622)
ryan-blakley Jan 11, 2023
ed29640
Fix: Add condition to check the output of "rpm-ostree status" firstly…
wushiqinlou Jan 12, 2023
27bf5fe
fix: Do not log Parsers' Traceback during collection (#3633)
xiangce Jan 12, 2023
1b3643d
feat: New datasource "sys_fs_cgroup_uniq_memory_swappiness" and its p…
qinpingli Jan 12, 2023
7dd60bb
feat: new combiner OSRelease to identify RHEL (#3640)
xiangce Jan 12, 2023
5b9b493
Revert "Fix: Add condition to check the output of "rpm-ostree status"…
xiangce Jan 12, 2023
4b36ec4
add specs (datasource via insights-cat) required by CloudInstance (#3…
xiangce Jan 17, 2023
dab803b
Fix: write all getting data to sys_fs_cgroup_uniq_memory_swappiness (…
qinpingli Jan 18, 2023
613aeca
fix: check the content first in class InstalledRpms (#3651)
chenlizhong Jan 18, 2023
42dc3ec
Fix: Add condition to check the output of "rpm-ostree status" firstl…
wushiqinlou Jan 18, 2023
d6f13f5
Move remaining exceptions to the new exceptions module (#3656)
ryan-blakley Jan 19, 2023
39ababc
feat: add JbossRuntimeVersions parser (#3639)
chenlizhong Jan 19, 2023
5d0ac7d
fix: add '-d 2' to yum_repolist spec (#3660)
xiangce Jan 19, 2023
078ba67
Exclude malware-detection rules files in /var/tmp (and other location…
mhuth Jan 25, 2023
cc02932
Make malware-detection app more resilient to unexpected errors (#3661)
mhuth Jan 31, 2023
c35bbd1
Disable datasource timeout alarm for the malware-detection app (#3666)
mhuth Jan 31, 2023
b43d87c
fix: Resolve VDOStatus excessive ParseException (#3668)
JoySnow Jan 31, 2023
75e437e
feat: Add arg to capture skips in the broker (#3663)
ryan-blakley Jan 31, 2023
dc79de0
Deprecate SkipException to help avoid confusion (#3662)
ryan-blakley Feb 2, 2023
97b47dd
feat: add CloudInstance to canonical_facts (#3654)
xiangce Feb 2, 2023
3cfcfc1
fix: use LC_ALL=C.UTF-8 for subscription-manager (#3669)
ptoscano Feb 2, 2023
f5a6f32
fix: Enhance datasource kernel_module_filters to check the loaded mod…
wushiqinlou Feb 2, 2023
b062e58
Change sos archive lvm spec names (#3672)
ryan-blakley Feb 6, 2023
5ec5c3a
feat: Capture blacklisted specs inside archive (#3664)
ryan-blakley Feb 6, 2023
68aa02b
chore: use the unique mangle_command for specs (#3673)
xiangce Feb 9, 2023
10e6d6e
fix: py26 test: install libssl1.0-dev manually (#3675)
xiangce Feb 9, 2023
df9042b
chore: remove unused spec lsinitrd_kdump_image (#3644)
TZ3070 Feb 9, 2023
30743db
fix: Correct parser examples and tests (#3677)
ryan-blakley Feb 14, 2023
fef3309
feat: Add container spec for vsftpd and ps (#3674)
wushiqinlou Feb 15, 2023
fd205ef
feat: Add spec "parted__l" and enhance its parser (#3676)
JoySnow Feb 16, 2023
d03620d
fix: The provider of GCP should be 'gcp' but not 'google' (#3678)
xiangce Feb 16, 2023
07a0a16
fix: correct parse_content in JSONParser (#3682)
ann0ra Feb 23, 2023
8e928ce
feat: New spec "/etc/sos.conf" and its parser (#3680)
huali027 Feb 23, 2023
08f326c
Update rpm_pkgs datasource and create new parser RpmPkgsWritable. (#3…
jobselko Feb 23, 2023
b76f433
Better handle SSL cert verify errors when downloading malware rules (…
mhuth Feb 27, 2023
b3d3f9b
feat: add OSRelease.issued_packages to return the issued packages (#3…
xiangce Feb 28, 2023
dcf6d22
feat: Add container spec mssql_api_assessment (#3690)
wushiqinlou Mar 2, 2023
53bb905
feat: New spec and parser for sys_block_queue_stable_writes (#3688)
JoySnow Mar 2, 2023
2d73e83
chore: update the latest package signing keys (#3696)
xiangce Mar 7, 2023
1138b23
feat: New spec to get the duplicate machine id (#3697)
huali027 Mar 8, 2023
d6b4225
Fix malware SSL error fix - make it more flexible (#3695)
mhuth Mar 8, 2023
4f5f97c
Revert "feat: New spec to get the duplicate machine id (#3697)" (#3703)
xiangce Mar 11, 2023
e57230c
fix: update OSRelease.is_rhel more accurate (#3700)
xiangce Mar 11, 2023
515af33
fix: let 'get_filters' work for filterable=True specs only (#3705)
xiangce Mar 15, 2023
78be7ed
Log malware tracebacks to the log file, not the console (#3701)
mhuth Mar 15, 2023
687c593
fix: print short info for all Exceptions (#3707)
xiangce Mar 15, 2023
6efea50
Fix logs of check registration status for legacy upload (#3710)
ahitacat Mar 15, 2023
7da26a7
feat: New spec to get the duplicate machine id (#3709)
huali027 Mar 16, 2023
eede2d3
fix: enhance the error message to reminder customers re-register (#3691)
chenlizhong Mar 16, 2023
3e55f50
feat: Split listdir to listdir and listglob spec factories (#3694)
jholecek-rh Mar 16, 2023
e371229
feat: Add store_skips argument to run_input_data (#3706)
jholecek-rh Mar 16, 2023
8cf5f37
feat: New datasource and parser for leapp-report.json (#3708)
xiangce Mar 16, 2023
bbeeaf6
fix: should not lose the exceptions from components (#3715)
xiangce Mar 17, 2023
97a21d2
chore: use RHEL for os_release.release (#3716)
xiangce Mar 17, 2023
9baf900
FEAT: Add new parser ls_rsyslog_errorfile (#3719)
TZ3070 Mar 23, 2023
f29e5bc
New spec "ls -lan /etc/selinux/targeted/policy" (#3722)
huali027 Mar 28, 2023
55a9a4c
feat(compliance): RHICOMPL-3629 log OOM error when scan fails (#3721)
skateman Mar 28, 2023
19a1c82
chore: tiny simplify and remove unused code in spec_factory.py (#3726)
xiangce Apr 3, 2023
9fc3a68
feat: RHICOMPL-3706 add link to KB article about OOM issues (#3724)
skateman Apr 3, 2023
fe08210
fix: support built-in metadata files in core-collection (#3723)
xiangce Apr 4, 2023
5c2e017
fix: check content before use it (#3727)
chenlizhong Apr 4, 2023
9ccf1ba
chore: update the spec name of BlacklistedSpecs (#3728)
xiangce Apr 4, 2023
9fca069
Feat: New parser for repquota command (#3717)
TZ3070 Apr 6, 2023
f608570
Fix check registration status to be robust against network failures (…
ahitacat Apr 6, 2023
06fabdf
feat: add "vf_enabled" parse for spec ip_s_link (#3729)
JoySnow Apr 6, 2023
0ed91f2
fix: Add new package findutils into spec rpm_V_packages (#3733)
wushiqinlou Apr 13, 2023
57a53f4
fix: datasource rpm_pkgs returns list of string but not tuple (#3736)
xiangce Apr 13, 2023
acf3368
fix: correct the initialization of ParserException in PHPConf (#3738)
chenlizhong Apr 13, 2023
fa98f12
feat: Add parser LsinitrdLvmConf (#3740)
qinpingli Apr 13, 2023
b29f1ab
fix: soscleaner get relative_path safely (#3744)
xiangce Apr 14, 2023
cd6738a
fix: check machine id as some archives are with empty machine-id file…
chenlizhong Apr 14, 2023
838675a
feat: AWS public IPv4 spec (#3741)
lzap Apr 14, 2023
30a8874
feat: add spec and parser for /etc/audisp/audispd.conf (#3743)
JoySnow Apr 14, 2023
4039fb5
fix: Wrong raw line bound in parser "FSTab" (#3749)
huali027 Apr 14, 2023
d6fd1f1
Make malware more flexible when detecting its running against stage (…
mhuth Apr 19, 2023
cc54201
fix: soscleaner get relative_path safely - 2 (#3754)
xiangce Apr 19, 2023
7fac991
feat: Azure public IP spec (#3751)
lzap Apr 19, 2023
835247f
fix: use log instead of print in test.run_input_data(#3750)
chenlizhong Apr 20, 2023
c67f06a
feat: update logging file handler for logrotate (#3702)
DuckBoss Apr 20, 2023
578414a
fix: fix processing of SerializedArchiveContext (#3183)
bfahr Apr 21, 2023
4ddce9c
Revert "feat: update logging file handler for logrotate (#3702)" (#3760)
xiangce Apr 25, 2023
258dbbe
feat: Google Cloud public IP spec (#3762)
lzap Apr 25, 2023
ea989db
fix: update ubuntu image for 2.6 test (#3766)
tiran Apr 26, 2023
52c5bdc
feat: enhance GrubbyDefaultKernel to skip warn msgs (#3761)
JoySnow Apr 26, 2023
f4865fa
fix: DnfModuleList parser and collect dnf_module_list (#3756)
psegedy Apr 26, 2023
54c65d2
Feat: Add new parser ls_var_lib_rpm (#3763)
TZ3070 Apr 26, 2023
997c032
fix(playbook_verifier): clarify logic when normalizing snippets (#3752)
subpop Apr 27, 2023
703ebc7
fix: handle the first line is warning in InstalledRpms (#3770)
xiangce Apr 27, 2023
7d70b96
fix: fix test playbook by using no named tuples (#3772)
ahitacat Apr 28, 2023
dad991d
fix: default and disabled module cannot be active (#3773)
psegedy May 4, 2023
a7dbcbf
Travis is dead. Travis is dead, Baby. (#3777)
jirihnidek May 4, 2023
f9d17e8
feat: add parser and combiner for IPA (#3767)
tiran May 4, 2023
d6db6b5
feat: new option to show hit result only for insights-run (#3771)
xiangce May 4, 2023
8957c5c
chore: add the missed deprecate warnings (#3774)
xiangce May 4, 2023
06fa91e
feat: new client_metadata module to hold parsers for all client gener…
xiangce May 4, 2023
a33db34
fix: Unhandled 'Connection failed' in 'gluster_peer_status' parser (#…
xiangce May 5, 2023
282c334
fix: py3.9 test error: 'HTTPResponse' object has no attribute 'strict…
xiangce May 5, 2023
c63b751
fix: sort the filters in the filters.yaml (#3779)
xiangce May 5, 2023
edf7c71
RHICOMPL-3512: Select correct datastream file for Compliance scan (#3…
LightOfHeaven1994 May 6, 2023
b832789
Remove spec lsinitrd_lvm_conf (#3785)
qinpingli May 10, 2023
261da89
fix: fix IndexError in PartedL (#3784)
JoySnow May 10, 2023
0bab790
fix: Replace SkipException with SkipComponent (#3786)
xiangce May 11, 2023
c6919e5
feat: uname supports RHEL 9.2 (#3789)
xiangce May 11, 2023
927f167
Feat: Add new parser CupsdConf (#3781)
TZ3070 May 11, 2023
49de375
Feat: Add new parser CupsFilesConf (#3782)
TZ3070 May 11, 2023
9d33f66
fix: Add missing multi_output=True for dnf_modules spec (#3791)
ryan-blakley May 11, 2023
3ceb50e
feat: uname supports RHEL 8.8 (#3795)
xiangce May 17, 2023
cea8dae
Remove useless postgresql queries (#3793)
huali027 May 17, 2023
b754d09
fix: add the lvm_conf back to sos_archive (#3796)
xiangce May 18, 2023
0364f5e
feat: New spec to get RHV hosts count on satellite and its parser (#3…
huali027 May 18, 2023
0de1b16
feat: update SystemctlStatusAll and add its spec back (#3797)
xiangce May 22, 2023
63491de
fix: uname pad release without el segment (#3800)
bostrt May 25, 2023
258c56c
feat: enhance test to check the missing components (#3798)
xiangce May 25, 2023
51c0deb
fix: correctly identify final segment of kernel version in uname (#3801)
bostrt May 26, 2023
d64dc8e
Feat: Add identity domain combiner (#3790)
tiran Jun 1, 2023
be78d77
Feat: remove spec ls_rsyslog_errorfile (#3803)
TZ3070 Jun 1, 2023
9562a75
FEAT: Add new parser EtcMachineId (#3805)
TZ3070 Jun 1, 2023
be8776d
feat: add spec and parser for proc_keyusers (#3802)
JoySnow Jun 1, 2023
6eaafca
feat: beautify testcase deep_compare diff details (#3804)
JoySnow Jun 5, 2023
c9ad39a
chore: remove the planned deprecated modules from 3.2.0 (#3811)
xiangce Jun 7, 2023
1c226b9
fix: support inhibitor entries with missing remediations (#3809)
xiangce Jun 8, 2023
c710c43
Feat: new spec "ls -lan /etc/watchdog.d/" (#3813)
huali027 Jun 8, 2023
c23d539
Enhance datasource kernel_module_list (#3816)
TZ3070 Jun 9, 2023
6b0b2b2
feat: update logging file handler for logrotate (#3765)
DuckBoss Jun 14, 2023
3ff0a1b
feat: New spec to get repos which ingores source rpms on Satellite (#…
huali027 Jun 15, 2023
7ee2905
Feat: new spec "/etc/sysconfig/stonith" and its parser (#3817)
huali027 Jun 15, 2023
43ddf22
Feat: new spec "/var/log/watchdog/*" and the parser (#3819)
huali027 Jun 15, 2023
18cee6f
fix: Build python26 instead of install (#3823)
xiangce Jun 19, 2023
2de336f
feat: update Specs.yumlog to filterable=True (#3810)
xiangce Jun 20, 2023
5c28e18
fix: CI test for python27 (#3824)
xiangce Jun 20, 2023
5246e57
Add malware-detection tests that use real yara (#3822)
mhuth Jun 21, 2023
8daf022
fix: Using pip for python2.7 instead of python3x (#3827)
fellipeh Jun 25, 2023
abfc7fa
Use the existing cert_verify value, if set (#3826)
mhuth Jun 25, 2023
ae02902
fix: new spec and parser for eap runtime json reports (#3825)
chenlizhong Jun 28, 2023
6ded429
chore: uniform the deprecation warnings and docstring (#3830)
xiangce Jun 29, 2023
7b266c4
Improve detection of CentOS in RedhatRelease parser and combiner
PaulWay Jun 29, 2023
f817149
Detect RHEV 3.5 correctly as RHEL
PaulWay Jun 29, 2023
37df9b6
Correctly feed uname output to tests
PaulWay Jun 29, 2023
a8cc4b7
Merge branch 'master' into paulway_parsers_redhat_release_centos_checks
PaulWay Jun 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ omit = insights/contrib/*
insights/*/__main__.py
# Exclude test files from coverage.
insights/tests/*
insights/parsers/tests/*
insights/combiners/tests/*
branch = True

[report]
Expand Down
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
ignore = E501,E126,E127,E128,E722,E741
exclude = insights/contrib,bin,docs,include,lib,lib64,.git,.collections.py
ignore = E501,E126,E127,E128,E722,E741,W605,W504
exclude = insights/contrib,bin,docs,include,lib,lib64,.git,.collections.py,insights/parsers/tests/lvm_test_data.py,insights/client/apps/ansible/playbook_verifier/contrib
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### All Pull Requests:

Check all that apply:

* [ ] Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
* [ ] Is this PR to correct an issue?
* [ ] Is this PR an enhancement?

### Complete Description of Additions/Changes:

<!--
Provide complete details of the issue or enhancement. You may link to existing open publicly-accessible issues or enhancement requests that provide these details.

Please do not include links to any websites that are not publicly accessible. You may include non-link reference numbers to help you and your team identify non-public references.

This information is necessary before your PR can be reviewed.

You may remove this comment.
-->
*Add your description here*
138 changes: 138 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Insights Core Test

on:
push:
branches: [ master, '3.0']
pull_request:
branches: [ master ]

jobs:
code-test:

runs-on: ubuntu-20.04
strategy:
matrix:
python-versions: [3.6, 3.9]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: flake8
run: |
pip install -e .[linting]
flake8 .
- name: pytest
run: |
pip install 'urllib3<2'
pip install -e .[testing]
pytest

python27-test:

runs-on: ubuntu-latest
container:
image: python:2.7.18-buster

steps:
- uses: actions/checkout@v3
- name: Set up Python 2.7
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: flake8
run: |
pip install -e .[linting]
flake8 .
- name: pytest
run: |
pip install 'urllib3<2'
pip install -e .[testing]
pytest

python26-test:

runs-on: ubuntu-latest
container: ubuntu:18.04

steps:
- uses: actions/checkout@v3
- name: Install sudo package
run: apt update && apt install sudo
- name: install dependencies
run: |
sudo apt-get install -y --no-install-recommends software-properties-common
sudo apt-get install -y --no-install-recommends libssl1.0-dev zlib1g-dev
sudo apt-get install -y build-essential git curl unzip file wget tar
- name: build python26
run: |
CUR_DIR=$(pwd)
cd ../
wget https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz
tar zxf ./Python-2.6.9.tgz
sed -e "s:'\/usr\/lib64',:'\/usr\/lib64', '\/usr\/lib/x86_64-linux-gnu',:" ./Python-2.6.9/setup.py -i
mkdir ./Python-2.6.9/build && cd ./Python-2.6.9/build
../configure --prefix=$HOME/python26 && make && make install
sudo update-alternatives --install /usr/bin/python python $HOME/python26/bin/python2.6 1
sudo update-alternatives --set python $HOME/python26/bin/python2.6
cd ${CUR_DIR}
- name: build setuptools and pip
run: |
export PATH=$PATH:/github/home/.local/bin
CUR_DIR=$(pwd)
mkdir ../tools && cd ../tools
curl -L -O https://files.pythonhosted.org/packages/b8/04/be569e393006fa9a2c10ef72ea33133c2902baa115dd1d4279dae55c3b3b/setuptools-36.8.0.zip
unzip setuptools-36.8.0.zip && cd setuptools-36.8.0
python setup.py install --user && cd ..
curl -L -O https://github.com/pypa/pip/archive/refs/tags/9.0.3.tar.gz
tar -xvzf 9.0.3.tar.gz && cd pip-9.0.3
python setup.py install --user
cd ${CUR_DIR}
- name: get depenencies
run: |
export PATH=$PATH:/github/home/.local/bin
CUR_DIR=$(pwd)
cd ../
git clone https://github.com/SteveHNH/jenkins-s2i-example.git pips
(cd ./pips/slave26/pip_packages && test -f coverage-4.3.4-cp26-cp26mu-manylinux1_x86_64.whl && mv coverage-4.3.4-cp26-cp26mu-manylinux1_x86_64.whl coverage-4.3.4-py2.py3-none-any.whl)
pip install --user --no-index -f ./pips/slave26/pip_packages -r ./pips/slave26/ci_requirements.txt
cd ${CUR_DIR}
mkdir ../collections_module
sudo curl -L -o ./../collections_module/collections.py https://raw.githubusercontent.com/RedHatInsights/insights-core/5c8ca0f2fb3de45908e8d931d40758af34a7997a/.collections.py
- name: flake8
run: |
export PATH=$PATH:/github/home/.local/bin
pip install --user -e .[linting] -f ./pips/slave26/pip_packages
flake8 .
- name: pytest
run: |
export PATH=$PATH:/github/home/.local/bin
pip install --user -e .[testing] -f ./pips/slave26/pip_packages
export PYTHONPATH=${PYTHONPATH}:./../collections_module
pytest

docs-test:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install dependencies
run: |
sudo apt-get install pandoc
python -m pip install --upgrade pip
- name: docs Test
run: |
pip install docutils==0.17
pip install -e .[docs]
sphinx-build -W -b html -qa -E docs docs/_build/html
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pylint.out
cover/
docs/plugin_catalog/*.rst
docs/components.rst
docs/specs_catalog.rst
build/
.idea*
dist/
Expand All @@ -48,4 +49,8 @@ share/
.Python
.python*
.pytest_cache
.vscode
.vscode
insights/filters.yaml
.nox/
.venv/

3 changes: 3 additions & 0 deletions .tito/packages/.readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
the .tito/packages directory contains metadata files
named after their packages. Each file has the latest tagged
version and the project's relative directory.
9 changes: 9 additions & 0 deletions .tito/tito.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[buildconfig]
builder = tito.builder.Builder
tagger = tito.tagger.VersionTagger
changelog_do_not_remove_cherrypick = 0
changelog_format = %s (%ae)
tag_format = {component}-{version}
[version_template]
template_file = ./.tito/version_template_file
destination_file = ./insights/VERSION
1 change: 1 addition & 0 deletions .tito/version_template_file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$version
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

22 changes: 13 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ phase).

## Rule Development Setup

Clone the project::
Clone the project:

git clone [email protected]:RedHatInsights/insights-core.git

Or, alternatively, using HTTPS::
Or, alternatively, using HTTPS:

git clone https://github.com/RedHatInsights/insights-core.git

Initialize a virtualenv::
Initialize a virtualenv:

cd insights-core
virtualenv .

Install the project and its dependencies::
Install the project and its dependencies:

bin/pip install -e .

Install a rule repository::
Install a rule repository:

bin/pip install -e path/to/rule/repo

Expand All @@ -42,16 +42,16 @@ Install a rule repository::

If you wish to contribute to the insights-core project you'll need to create a fork in github.

1. Clone your fork::
1. Clone your fork:

git clone [email protected]:your-user/insights-core.git

2. Reference the original project as "upstream"::
2. Reference the original project as "upstream":

git remote add upstream [email protected]:RedHatInsights/insights-core.git

At this point, you would synchronize your fork with the upstream project
using the following commands::
using the following commands:

git pull upstream master
git push origin master
Expand Down Expand Up @@ -133,7 +133,11 @@ from the current master branch of the upstream project.
of the topic branch. Again, such manipulations change history and
require a `--force` push.

6. When ready, use the github UI to submit a pull request.
6. When ready, use the github UI to submit a pull request. Fill out
the information requested in the PR template. If your PR fixes an
issue make sure to reference the issue using a
[keyword](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
so that it will be closed once your PR is merged.

7. Repeat steps 4 and 5 as necessary. Note that a forced push to the
topic branch will work as expected. The pull request will be
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM centos:7
RUN yum install -y python-devel file zip gcc libffi-devel && yum clean all
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py
COPY . /src
RUN pip install /src
18 changes: 9 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ pipeline {
sh """
virtualenv .testenv
source .testenv/bin/activate
pip install "idna<=2.7"
pip install "pycparser<=2.18"
pip install -e .[testing]
pip install /pip_packages/pip-9.0.3-py2.py3-none-any.whl
pip install -r /var/lib/jenkins/ci_requirements.txt -f /pip_packages
pip install -e .[testing] -f /pip_packages
pytest
"""
echo "Testing with Linter..."
sh """
virtualenv .lintenv
source .lintenv/bin/activate
pip install "idna<=2.7"
pip install "pycparser<=2.18"
pip install -e .[linting]
pip install /pip_packages/pip-9.0.3-py2.py3-none-any.whl
pip install -r /var/lib/jenkins/ci_requirements.txt -f /pip_packages
pip install -e .[linting] -f /pip_packages
flake8
"""
}
Expand Down Expand Up @@ -69,14 +69,14 @@ pipeline {
steps {
echo "Testing with Pytest..."
sh """
/bin/python36 -m venv .testenv
/bin/python3 -m venv .testenv
source .testenv/bin/activate
pip install -e .[testing]
pytest
"""
echo "Testing with Linter..."
sh """
/bin/python36 -m venv .lintenv
/bin/python3 -m venv .lintenv
source .lintenv/bin/activate
pip install -e .[linting]
flake8
Expand All @@ -99,7 +99,7 @@ pipeline {
steps {
echo "Building Docs..."
sh """
/bin/python36 -m venv .docenv
/bin/python3 -m venv .docenv
source .docenv/bin/activate
pip install -e .[docs]
sphinx-build -W -b html -qa -E docs docs/_build/html
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in.client
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include insights/defaults.yaml
include insights/revoked_playbooks.yaml
include insights/compliance_obfuscations.yaml
include insights/NAME
include insights/VERSION
include insights/COMMIT
Expand Down
17 changes: 17 additions & 0 deletions MANIFEST.in.core
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include insights/defaults.yaml
include insights/NAME
include insights/VERSION
include insights/COMMIT
include insights/RELEASE
prune examples
prune insights/client
prune insights/combiners/tests
prune insights/components/tests
prune insights/parsers/tests
prune insights/parsr/tests
prune insights/plugins
prune insights/parsr/examples/tests
prune insights/parsr/query/tests
prune insights/tests
include insights/parsers/__init__.py
include insights/combiners/__init__.py
10 changes: 10 additions & 0 deletions build_core_rpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
PYTHON=${1:-python}

rm -rf BUILD BUILDROOT RPMS SRPMS
rm -rf insights_core.egg-info
cp MANIFEST.in.core MANIFEST.in
$PYTHON setup.py sdist
rpmbuild -ba -D "_topdir $PWD" -D "_sourcedir $PWD/dist" insights-core.spec
rm -rf dist BUILD BUILDROOT
git checkout MANIFEST.in
Loading