Run database discovery as a restricted macOS service Let's carry database discovery into a macOS background service. This follows the database connection lessons and the Windows and Linux service walkthroughs. We'll enroll one collector, give its dedicated account access to one approved SQLite file, install the signed service, and follow a real job into the inventory. By the end, you'll know how to separate installation, local authorization, and successful discovery. Those are three different checks even when the installer finishes cleanly. Start by enrolling an individual database collector. Use a name your team can recognize and save its credential in a protected file. This is a separate identity for this Mac. Approving database cryptography in the workspace lets the device receive that kind of task. It doesn't give the service permission to read every database on the computer. We still need to define its local scope under the account that will actually run the scan. Here's that local boundary. The policy maps an opaque connection identifier to one approved SQLite file. Its private directory and read permissions belong to the scanner's dedicated account. Other users can't replace the policy or redirect the target. For a server database, use the engine-specific connection instructions and make its protected credentials and certificate authority file available to the same service identity. Your interactive login's access doesn't automatically carry over into Launchd. We're installing through the unified macOS packages scanner service command. The configuration file and enrollment credential are separate protected inputs. The launcher verifies the signed native release before registering it with Launch. This is a native binary deployment. The scanner doesn't depend on a system Python installation. Keep the downloaded package protected and verify the published release identity. If verification fails, investigate the package or permissions instead of bypassing the check. Now check both sides. Locally, the service is registered and runs under the dedicated scanner account. In the workspace, look for recent contact, the compiled runtime version, and the applied configuration. A registered launch job is only an installation result. The workspace also needs a current heartbeat and database readiness before we can call this collector usable. If one of those is missing, check its configuration and local policy before queuing more work. Create a database discovery task and select this Mac. For the target, enter the approved connection identifier, not an arbitrary local file path. Give the job a useful name, submit it, and refresh the latest results. The service resolves that identifier through its own policy. We're scanning a small owned example database, and the verification checks that its application row stays on the host and the file remains unchanged. Open the resulting observation and read what it actually proves. We have database metadata from this collector and this task. Unsupported cipher probes and unknown encryption states remain visible. A metadata result doesn't prove that the disk is encrypted or that an application uses safe cryptography. For SQL cipher or a database server, continue with the matching engine lesson. Keep the evidence boundary attached to the finding when you explain it to someone else. We've connected the full macOS service path. Separate enrollment, restricted local scope, verified native installation, a real managed job, and its evidence. For this temporary collector, we'll stop and remove the service, then revoke and archive its cloud identity. The demonstration restores the Mac's earlier stopped installation afterward. For your permanent collector, leave the approved service installed and move on to rollout policy monitoring and the database specific permission checks.