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

Profile count report #1030

Merged
merged 4 commits into from Apr 13, 2018
Merged

Profile count report #1030

merged 4 commits into from Apr 13, 2018

Conversation

poundbangbash
Copy link
Contributor

Attempt at #860

This creates a Profiles report and widget that lists the unique profiles an a count for each.
Clicking on the profile name in the widget links to a filtered search in the listing against the profile name.

-Eric

@gmarnin
Copy link
Contributor

gmarnin commented Apr 13, 2018

Tested on a local test environment. Looks good, nice addition.

@bochoven bochoven merged commit b34e3ae into munkireport:wip Apr 13, 2018
@poundbangbash poundbangbash deleted the profile-count branch May 20, 2018 03:27
bochoven added a commit that referenced this pull request Jul 1, 2018
* Added ssh status widget to report

* Updated fa icon

* Travis CI (#1031)

* Add new deploy config to travis_ci branch

* Add tar script

* Add composer dependency caching

* Enable skip cleanup to solve vendors going missing

* Only deploy releases on tags

* Build both zip and tar

* Added support for server-side IP filtering (#990)

* Finished implementing the cidr/ip filter - everything is working and allows for a custom 403 page

* Ready for PR
Cleaned up the head.php partial

* Added the default config documentation for the module

* Commented out the default config

* Revided the conf name to manage
Makes it a little more understandable that the management interface is whitelisted

* Fixed spelling

* Moved the check to the pre-auth

* Moved the ip_blocker.php to a class and fixed other requested changes

* Fixed the default config.php

* Moved decision out of auth.php so it is all handled by AuthHandler.php
Also, removed old IPBlocker.php
Also fixed the config_default.php errors

* Removed old ip_blocker and IPBlocker.php

* Readded spacing

* Readded spacing

* Fixed the default config's documentation

* Moved the whitelist functions out of the AuthHandler to their own class

* Update auth.php

* Release version 3.2.0.

* Bumping to v3.2.0 for development.

* Update CHANGELOG

* Release version 3.1.1.

* Bumping to v3.2.0 for development.

* Added help button support with option to enable/disable

* Includes fixes from @precursorca for infections and spotlightindexing (#1047)

Updated ReadMe explaining the license requirements.

* phpdotenv support (#1032)

* Needed to reorder index.php in order to load phpdotenv first via autoload.
Add example .env
Add requirement phpdotenv
Change config_default so that most defaults can be sourced from the environment.

* Ignore user .env
Fix triple equality operator causing issues with .env configuration

* Add database connection variables to .env

* Add unit tests for getenv function
Add dev requirement: PHPUnit
Add PHPUnit configuration

* Config tests pass

* Documentation update about dotenv configuration

* More env vars in the docs.

* Update .env.example

* Move dotenv loader into config_default.php
Expand available env variables
Add fixture dotenv file for unit tests

* More fixture variables to test.

* Update .travis.tml

* Remove php 7.0 from travis

* Add travis build info to README

* Update build instructions

* Add extra connection vars to .env.example

* Fixes for detectx model

* Changed bool to int, fixed listing errors

* Uncomment $lis in detectx_model

* Move getenv_default to helper

* Add keys to .env.example

* Add tests for ad config

* Add tests for AD config

* Add config_helper

* Add tests for ldap auth

* Move dotenv init to helper

* Add tests for auth_saml config

* Clean up auth_config loader

* Add x509cert to SAML config

* Add advanced SAML settings

* Cleanup config files

* Add config_helper to migration script

* Remove ssl settings from config

* backup2go list view fix (#1056)

For the backup2go module the listing view for the pane “Last
successfull backup” didn’t work properly.

* Wip (#1060)

* backup2go list view fix

For the backup2go module the listing view for the pane “Last
successfull backup” didn’t work properly.

* Added comment for the firmware_escrow script

I tried the example script for the firmware_escrow module and it
failed. You need to change the first octet of the ip range to make it
work. I’ve a extra comment to the README.

* Add apple-mobile-web-app-capable meta header

* Make the SIP check more resilient (#1063)

The output of csrutil can be more than just one line of enabled or
disabled. If it's in a custom config, it will have '"enabled (Custom
Configuration)' in it, and many of the functions could still turned off.

Searching for just 'enabled' would make SIP seem active if just any of
the sup parts of SIP were enabled.

* Drop Down the Login Page (#1062)

The text that pops over the lock icon at the login page is cutoff because the login box is too high up on the page. This PR pushes the login box down a bit so the text is visible. 

There maybe a more appropriate fix than a bunch of `<br>` tags but this works and looks good on a 27" iMac, 15" MBP and iPhone X.

* Adds Metal support to GPU module (#1058)

* Adds Metal support to GPU module

* Changed to report what version of Metal

* Added ability to skip bundle IDs in Appusage module (#1055)

* Change model to skip bundle IDs

* Added config to skip bundle IDs in Appusage

* Profile count report (#1030)

* Create profile count widget and report

* Added missing files

* Fixed report title

* added quotes to search for preserving spaces

* Added local network ip option for vnc and ssh links (#1029)

* Added another USB device type (#1022)

* Add disable_sso_sls_verify config option (#1007)

* Add disable_sso_sls_verify config option to be more forgiving on single logout requests

* Match a more specific saml logout error for disable_sso_sls_verify

* Fixed localized event message (#1051)

* Added support for 10.13+ caching server (#907)

* Added support for 10.13+ caching server

Basically a whole new module bolted on to the existing caching module

* Disable error message

* Tweaked caching widget

* Reverted changes done to model

* Add MR3 migration

* Update v3 migration

* Remove unique

* Updated for latest v3 changes

* Updated migrations

Tested with MR v3.0 final

* Cleaned older migrations

* Changed class name

* Renamed migration

* Renamed migration

* Rename migration

* Cleaned up controller

* Actually fix security.py module (#1068)

Further to 13900e8, actually fix SIP reporting.

* Fix for Find My Macs widget not supporting business units (#1067)

* docker fix (#1003)

* docker-fix 2 (#1004)

one more change in README (oops)

* Fixed Find My Mac module for business units

bug reported by @robriley78

* Fixed apps tab order (#1069)

* Add column to filter bound status against (#1065)

* Add bound column to filter against

* Fixed migration table name

* Fixed migration table name

* Fixed migration

* Fixed locales

* Fixed typo

* Adjust localizations

* Add UID to reportdata, user_sessions module, localadmin module, and client summary (#1059)

* Add uid to reportcommon and user_sessions. Struggling with Summary_tab.

* Set default value to null

* Added UID to client summary page.

* Fixed variable name for accuracy.

* Use getpwnam to get uid instead of shelling out.

* Add check network based users added to com.apple.local.ard_interact (#1071)

* Devtools Module (#913)

* Commit of Devtools Module

* Removed extra comments

* Fixed whitespace

* Add support for 10.7

* Tweaked devtools.py

* Add MR3 migration

* Update v3 migration

* Update for latest v3 changes

* Removed older table giblets

* add auth return

* Fix installation error

* Changed nullable state

* Added basic crypt checkin url (#1077)

* Added basic crypt checkin url

* Updated README

* Frree ipa support (#1080)

* Add support for alternative schemas in AuthAD

* Downgrade php unit

For php 7.0 support

* Fix dynamic class usage

* Fix search for non-AD LDAP servers

* Add optimise autoloader to composer.json

* Added Registration Date to listing (#1086)

Requested in PR #1085

* Fix an issue where failed migrations would not display an error if they threw a PDOException. (#1084)

* Hotfix/migration patches (#1087)

* backport migrations if you had an ancient copy of munkireport v2
migration errors are properly displayed in the console again.

* backported some more migrations to support upgrading from an earlier version of mr2

* Initial rewrite of all migrations present in v2.13 for MunkiReport 3, with a few omissions.

* Fix migration names

* More legacy migrations

* Power migrations ported from v2.15

* More migrations from v2.15

* Add the model changes introduced to timemachine_model in v2.13

* Reinstate diskreport media_type migration
Disable migration timemachine_Add_columns_for_rewrite it is identical to schema v1

* Add missing core migrations

* Legacy migrations should check for null `migration` table and skip if a new installation.

* only run timemachine schema v1 if v0 existed in the db
trying to sort out the loop where _orig hangs around

* Tried to fill out remaining data migrations.

* Fix some of the new migrations that didnt check for an empty db.

* Fix for no workflow title (#1082)

* Highest Supported OS module (#834)

* Highest Supported OS module

* Fixed Mac Mini

* Fixed accedental bug fix

* Updated for latest OS release

* Fix report title

* Added manual skip

* Add iMac Pro

* Fixed missing bracket

* Updated for 10.13.2

* Fixed model

* Added MR3 Migration

* Update v3 migration

* Updated for latest v3 changes

* Fixed migrations

Tested with MR v3.0 final

* Removed older table bits

* Fixe bug in controller

* Updated for 10.13.5

* Set database fields to be nullable

* Fixed another bug

* Updated for 10.14

* Implement db size calcs (#1094)

* Sophos Anti-virus module (#1093)

* first pass at new sophos module

* update provides.php for sophos installs widget

* remove testing file

* add additional strings

* updates to add bar graph widgets for various versions

* add report

* first draft of client tab - need to sort out JS not loading?

* fix controller to return non-array

* correct typo on running status rewrite

* Restore detectx files

* Remove include

* Add check for custom module path

* Fix composer.json

* Fix error reporting in report.php

* FIX #1075
AbstractAuth: checking isset() still meant that the default empty array enforced user and group whitelists in AD auth.
AuthAD: Reference to undeclared schema object ActiveDirectory, imported.
AuthAD: NULL account_suffix now means that the user must specify the UPN to log in, otherwise ARN is used.
config/auth_ad.php: defaults are adjusted to be more sensible.

* FIX #1074: $.each was converted back to old-style for loop because the return; did not shortcut the execution of $.each and caused it to iterate over empty array indices.

* Changed Extensions add teamid column method (#1098)

Changed to use make new table, copy data, drop old table method of renaming a column for SQLite compatibility.

* Make ds bound column nullable

* New Module: SentinelOne (#1072)

* Created new sentinelone module.

* Migration db setup fixes.

* Model change, locales syntax.

* typo fixes

* Multiple fixes

* Fixed controller for version output.

* Add client tab data

* Attempted tab fix.

* Fix locales after alphabetizing.

* brackets

* controller fix.

* Tab date format fix

* Add tab link to listing.

* Stuck getting data in model.

* Delete previous data.

* Cleaned out debug code. Fixed spacing.

* Change active threat label color in listing to match warning.

* Added retrieve record to model to fix client tab

* Rewrite tab output for clarity.

* Adjust listing formatting. Replace tabs with 4x spaces.

* Fix javascript else if calls.  Check if date data exists before trying to format.

* Created mgmt_url widget. Added to report.

* Removed agent-install-time as it didn't provide data.

* Updated readme

* Fix timezone shift in display.

* SentinelOne Quarantine module to compliment the SentinelOne module. (#1073)

* SentinelOne Quarantine module to compliment the SentinelOne module.

* Delcared variable earlier to avoid errors on a clean run.

* Update Changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants