Russell Hancox
d82e64aa5f
Project: Split integration VM license into its own LICENSE file ( #1147 )
2023.7
2023-08-08 13:29:06 -04:00
Ivan Tadeu Ferreira Antunes Filho
a9c1c730be
Project: Cast some enums to int ( #1146 )
...
Allows the string displaying the enum to format it using %d.
Fixes the error: `error: format specifies type 'int' but the argument has type 'T' [-Werror,-Wformat]`
2023-08-08 13:08:11 -04:00
Matt W
6c4362d8bb
Add hot cache for targets of read only policies ( #1145 )
...
* Add hot cache for file reads
* Clear cache on policy change
* Prevent unbounded cache growth
* Move cache impl to its own class
* Add some additional tests
* Cleanup
* Comment cleanup
* Switch to absl containers
* Use default absl::Hash instead of custom hasher
* Removing another reference to PairHash
* Remove unused imports
2023-08-08 12:38:33 -04:00
Russell Hancox
c1189493e8
sync/UI: Add ability to send custom URLs for blocking rules. ( #1140 )
...
This allows a sync server to send a `custom_url` field along with a rule blocking execution and this will be used as the URL for the "open" button in place of the normally generated URL.
2023-08-04 15:01:45 -04:00
Russell Hancox
aaa0d40841
sync: Add SyncExtraHeaders config option. ( #1144 )
...
* sync: Add SyncExtraHeaders config option.
Fixes #1143
2023-08-03 23:16:59 -04:00
Matt W
a424c4afca
Only update daemon settings when sync settings explicitly set ( #1142 )
2023-08-03 16:18:40 -04:00
Matt W
2847397b66
Have distributed notifications delivered immediately ( #1141 )
2023-08-03 15:49:10 -04:00
Matt W
ad8b4b6646
Check if spool dir has changed before estimating size ( #1138 )
2023-08-03 14:54:14 -04:00
alexgraehl
39ee9e7d48
sync: Change backoff in SNTSyncStage.m to be exponential ( #1135 )
...
* Change backoff in SNTSyncStage.m to be exponential instead of linear
* Improves the log message to indicate that the job will ALWAYS abort after N retries. Previously, it was not clear why it would try 5 times and then give up.
2023-07-26 15:55:37 -04:00
Matt W
3cccacc3fb
Add additional dep to satisfy import issue ( #1134 )
2023-07-26 12:50:29 -04:00
Matt W
6ed5bcd808
Enforce expected case for various rule type identifiers ( #1132 )
...
* Bump DB version. Ensure proper casing for rule identifiers on insert.
* Minor comment fixes, more test cases
* Handle SigningIDs using the delimiter character
* lint
* PR feedback
2023-07-26 12:31:28 -04:00
Matt W
bcac65a23e
Wire up TTYWriter instance to the file access client ( #1129 )
2023-07-26 00:11:36 -04:00
Matt W
03fcd0c906
Add more file access config options ( #1128 )
...
* New file access config options supporting silencing and custom messages
* Rename custom message key
2023-07-26 00:01:04 -04:00
p-harrison
d3b71a3ba8
Update sync-protocol.md to include SIGNINGID rule type ( #1130 )
...
* Update sync-protocol.md
Couple of formatting changes, added SIGNINGID as a rule type
* Update docs/development/sync-protocol.md
Co-authored-by: Matt W <436037+mlw@users.noreply.github.com >
---------
Co-authored-by: Matt W <436037+mlw@users.noreply.github.com >
2023-07-25 14:31:13 -04:00
Pete Markowsky
9e124f4c51
Add kSyncEnableCleanSyncEventUpload to the _forcedConfigKeyTypes dict ( #1123 )
...
* Add kSyncEnableCleanSyncEventUpload to the _forcedConfigTypes dict.
* Add KVO helper.
---------
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2023.6
2023-07-06 17:39:51 -04:00
Matt W
cd719ccef4
Fix issue with invalid lengths ( #1122 )
...
* Fix issue with invalid lengths
* Disable clang format around a small block of code for now
2023-07-06 11:22:18 -04:00
Matt W
dde42ee686
Fix check to detect changes to StaticRules ( #1121 )
2023-06-30 16:39:52 -04:00
Pete Markowsky
d144e27798
Fix rule evaluation for TeamID and SigningID rules when encountering broken signatures. ( #1120 )
2023-06-30 09:54:27 -04:00
Matt W
afc2c216b8
Add include for proto status stub ( #1119 )
2023-06-29 13:32:14 -04:00
Matt W
03d7556f22
Use angle brackets for includes ( #1118 )
2023-06-29 11:55:46 -04:00
Nick Gregory
020827b091
Fix memleak in fsspool ( #1115 )
2023-06-29 10:17:08 -04:00
Russell Hancox
baa31a5db0
Conf: Update notarization_tool in signing script ( #1116 )
2023-06-28 22:32:58 -04:00
Pete Markowsky
9ba7075596
Add macOS 13 to the test matrix. ( #1113 )
2023-06-27 13:22:36 -04:00
Pete Markowsky
5d08538639
Add Support for Logging to JSON (beta feature) ( #1112 )
...
* Add support for logging protobuf to JSON.
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2023-06-23 10:06:45 -04:00
Matt W
e73bafb596
Fix build issues due to macOS 13.3 SDK changes ( #1110 )
...
* Fix minor build issues due to changes in the macOS 13.3 SDK
* Disable -Wunknown-warning-option
2023-06-20 22:23:55 -04:00
Matt W
1e92d109a7
Basic dialog functionality when access to a watch item is denied ( #1106 )
...
* Basic working prototype to display a UI on blocked file access
* Force watch items policies to be silent for now
* Remove unused view
* Refactor to not use newer SwiftUI features
* Address PR feedback
2023-06-19 14:00:35 -04:00
Matt W
6a6aa6dce8
Abstract TTY writing so multiple writers can be synchronized ( #1108 )
...
* Abstract TTY writing so multiple writers can be synchronized
* Address PR feedback
2023-06-13 20:19:50 -04:00
Matt W
0715033d6a
Migrate to new SNTRuleType enum values ( #1107 )
...
* Migrate to new SNTRuleType enum values
* Bump table version. Fix comments to address PR feedback.
* Add log message when a downgrade detected
2023-06-09 11:50:42 -04:00
Matt W
123d7a2d6a
Update docs for signing id rules ( #1105 )
...
* Update docs for signing id rules
* Formatting, Address PR feedback
2023-05-30 13:27:29 -04:00
Matt W
7b4d997589
Fix missing check for FileChangesRegex ( #1102 )
2023-05-22 16:13:06 -04:00
Matt W
5307bd9b7f
Fix precedence for static rule evaluation, update santactl fileinfo output. ( #1100 )
2023.5
2023-05-18 15:05:23 -04:00
Matt W
0622e6de71
Handle database downgrade scenarios gracefully ( #1099 )
2023-05-17 04:31:40 +02:00
Russell Hancox
e7c32ae87d
Update SECURITY.md ( #1098 )
2023-05-12 10:30:58 -04:00
Matt W
deaf3a638c
Add new rule type for Signing IDs ( #1090 )
...
* WIP: Signing ID rules
* WIP: More work supporting signing ID rules
* Expanded exec controller tests for signing ID and team ID
* wip all current tests now pass
* Added integration tests
* Branch cleanup
* Update protobuf tests for signing id reason types
* Remove old commented out code
---------
Co-authored-by: Russell Hancox <russell@hancox.us >
2023-05-12 09:22:46 -04:00
Matt W
8a7f1142a8
Stop unmuting the default mute set unnecessarily. ( #1095 )
...
* Stop unmuting the default mute set unnecessarily.
* lint
* Added note to docs explaining operations from default mute set binaries aren't logged
2023-05-10 09:07:13 -04:00
Matt W
c180205059
Return unique_ptr from Enrich instead of shared_ptr ( #1093 )
2023-05-08 10:55:38 -04:00
Matt W
337df0aa31
Don't establish the FAA client pre-macOS 13 ( #1091 )
...
* Don't establish the FAA client pre-macOS 13
* Only watch FAA keys on macOS 13 and newer
2023-05-05 15:33:34 -04:00
Russell Hancox
e2b099aa50
santactl/rule: Fix --path argument ( #1089 )
...
Fixes #1088
2023-05-04 17:57:59 -04:00
Pete Markowsky
fc4e29f34c
Docs: Added instructions for how to use config-overrides.plist ( #1077 )
...
* Added instructions for how to use config-overrides
---------
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2023-05-01 16:16:11 -04:00
Matt W
bf3b6bc6e2
Inject additional dependencies into the serializers ( #1078 )
...
* Injects dependecies for decision cache and client mode lookup
* Fix up tests
* Stored client mode at decision time. Remove clientMode func injection.
* PR Feedback, group property members
2023-05-01 15:13:54 -04:00
Matt W
b810fc81e1
Add support to file monitoring config to invert process exceptions ( #1083 )
...
* Add support to file monitoring config to invert process exceptions
* Update docs
* Added link to github issue
2023-05-01 15:04:40 -04:00
Matt W
3b3aa999c5
Switch SNTEventState to uint64_t, reposition flag values and masks ( #1086 )
2023-05-01 14:37:11 -04:00
Faizan
59428f3be3
docs: Fix documentation for clean sync field in the preflight request. ( #1082 )
...
The 'request_clean_sync' field is set here: https://github.com/google/santa/blob/main/Source/santasyncservice/SNTSyncPreflight.m#L76
The constant is defined here: https://github.com/google/santa/blob/main/Source/common/SNTSyncConstants.m#L27
2023-04-27 23:38:44 -04:00
Jason McCandless
ae6451a9b2
docs: Clarify that execution_time, file_bundle_hash_millis and quarantine_timestamp are float64 ( #1080 )
2023-04-27 18:54:02 -04:00
Russell Hancox
feac080fa7
sync: Permit XSRF header between sync stages/sessions ( #1081 )
2023.4
2023-04-27 10:52:35 -04:00
Nick Gregory
d0f2a0ac4d
One more TSAN fix ( #1079 )
2023-04-26 17:30:06 +02:00
Pete Markowsky
7fc06ea9d8
Make the sync client content encoding a tunable ( #1076 )
...
Make the sync client content encoding a tunable.
This makes the sync client's content encoding a tunable so that it can be
compatible with more sync servers.
Removed the "backwards compatibility" config option.
---------
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2023-04-24 15:00:29 +02:00
Russell Hancox
1dfeeac936
README: Add more badges ( #1075 )
2023-04-21 09:54:33 -04:00
Matt W
ac9b5d9399
Cache flush metrics ( #1074 )
...
* Added a reason enum when flushing auth result cache
* Set metrics when auth result cache is flushed.
2023-04-20 16:47:06 -04:00
Matt W
7f3f1c5448
Process unmount events first ( #1073 )
2023-04-19 11:13:13 -04:00