Run database discovery as a restricted Linux service Let's turn a Linux database collector into a managed service. By the end, you'll have a restricted service identity, a private database policy, and a scan dispatched from your workspace. This builds on the earlier database connection lessons. We're using a disposable Ubuntu host and a sample SQLite database, so you can see the entire life cycle without touching a production database. Start by enrolling a database capable agent in your workspace. Keep the enrollment token private. For this lesson, we're using the signed component installer supplied inside the unified package. There's a current limitation worth knowing. Bulk deployment authorization doesn't accept the database capability yet. Use this individual enrollment path for the database service rather than trying to force that unsupported bulk configuration. Before starting the service, give it something specific that it's allowed to inspect. Here, the non-login service account can read one database file and its private policy. The policy maps our connection identifier to that local path. It doesn't authorize a subnet, a repository, or any other database. For a network database, you'd instead use the engine specific connection and credential settings from the earlier lessons with permissions granted to this service identity. Now install from the verified package. The component installer checks the signed release and the minimum release sequence. We pass the private configuration and token as files rather than typing the token into the terminal. Notice the order. The local policy exists before the service starts. Without an authorized local scope, startup is supposed to fail. That's a useful guard, not a reason to grant the agent broad access. The manifest identifies the release, and the detached signature lets the installer verify who published it. The archive contains the actual agent files. Keep those files together with the trusted release key from your verified package. The minimum sequence is an anti-rollback boundary. If any of these checks fails, stop and correct the package. Don't bypass verification to get the service running. Check both sides. On the host, the native service is active under its restricted account. In the workspace, wait for a fresh heartbeat and database readiness. Those checks tell us the collector is available. They don't prove a database scan succeeded. We'll test that separately. Also, a service account has its own file permissions. A database you can read in your personal terminal may still be inaccessible to the service. Choose the enrolled collector, enter the connection identifier from the local policy, and start the database scan. The cloud sends the task while the agent resolves that identifier against its local authorization. Watch the job move to a terminal state, then open its evidence. In this example, the result is partial. Don't turn that into a clean bill of health just because the collector returned an observation. Here's what we actually learned. The SQLite runtime was observed and the schema was readable. Storage encryption wasn't assessed, and these cipher probes aren't supported by this runtime. Unknown means we still need evidence. The collector returns cryptographic metadata, not table rows. Our test also checks that the database file stayed unchanged. Use the earlier SQL cipher lesson when you need to inspect that specific encrypted SQLite configuration. You've now connected a restricted Linux service to the workspace, dispatched a database task, and read the limits of its evidence. We're removing this temporary service and revoking its agent identity, then deleting the disposable host. For a permanent deployment, keep the protected policy and credential files under your normal configuration management. Next, we'll carry the same separation of identity, local authorization, and cloud orchestration into the other operating systems.