security
Confirm where a shared service account is used
Identify confirmed and unverified consumers of a shared service account before changing its access. Combine provider records, configuration and owner review.
TrustIvan · · 10 min read
A shared service account named report-runner appears attached to a reporting job. The reporting team plans to remove one storage role after reviewing that job's activity. A separate finance workflow reaches the same service account by impersonation at quarter-end, and a recovery template includes the account even though it has never run in the last 30 days. Those consumers affect the change decision even when the identity's recent events look familiar.
Build a consumer map using approved configuration, provider records, scheduler evidence and owner review. Keep the principal, the way each workload uses it, and what it can do as separate observations. A useful map also shows where attribution is missing. That uncertainty should have an owner and a verification step before someone retires access for a shared identity.
Identify the principal and why it is shared
Record the provider's immutable identity where available, tenant or project, environment and human-readable account name. Verify that two references with the same short name point to the same principal. Capture the organization that owns the grants and the people who can answer for the workloads. A platform account owner may be able to change group policy while application owners know which schedules and operational paths depend on it.
List how each consumer can use the principal. A workload may have the service account attached, obtain short-lived credentials through an approved federation or impersonation path, use a managed secret reference, or receive a token through a delegated job. For example, Google Cloud documents multiple service account use models, including attachment, external workload federation, keys and impersonation. Check the provider's documented model in your own environment. Google Cloud service account overview.
Record the generation or receiving evidence without preserving any secret value. You can often use safe identifiers for workload deployments, scheduled definitions, provider records and credential versions. Give any credential owner a separate responsibility record. The team that owns issuance and revocation may be different from the team accountable for why the service account has a particular role. Identity and credential ownership guide.
Gather three kinds of evidence and note their limits
Start with configured references in deployment manifests, approved secret metadata, job definitions and identity grants. Include inactive definitions, launch templates, failover configuration and backups where they can come into service. Record revision, effective dates and where a configuration applies. A reference proves the workload has an intended path. It does not show that the workload used the path, succeeded, or still needs it.
Next, look for provider-side or workload observations. Use approved audit and runtime data to show the calling workload where possible, the effective service account, the operation, destination scope, result and timestamp. A credential issuance event confirms that credentials were issued and may help identify the caller. An actual resource operation confirms activity at that resource boundary. Either can be useful even if the evidence does not correlate all stages. Record the permissions and logging limitations for each source. Google Cloud IAM audit logging.
Finally, ask candidate owners to validate the specific consumer, schedule and business action. An owner can explain why a standby template exists and arrange a controlled test. Their recollection alone cannot establish actual recent use. Attach the operator's result or the work item that will obtain it. Start with the people who can verify critical paths before expanding the inspection.
Work from a synthetic service account map
Use a non-production identity and synthetic dependencies. Define an hourly reporting workload, a quarterly finance export that can use delegated credentials, a dormant disaster recovery template and a retired test worker. Add one provider event that shows the effective principal without enough evidence to identify the originating workload.
| Candidate | Evidence in the fixture | Disposition |
|---|---|---|
| Reporting scheduler | Current attached identity and a successful hourly read in provider and job records | Confirmed active consumer |
| Quarterly finance export | Approved federation mapping and previous quarterly run beyond the initial observation window | Confirmed historical use, current version test scheduled |
| Disaster recovery worker | Launch template includes account, no workload runs observed | Configured standby, validate in a rehearsal |
| Retired test worker | Old definition once used account, decommissioning evidence confirms removal in this test scope | Historical reference retained, inactive in reviewed scope |
| Unknown client | Provider shows a storage read under the shared account, caller attribution missing | Escalate attribution, preserve unknown activity |
At first review, filter the audit result to the last 30 days. This correctly shows frequent report reads and the unknown event. It gives no fresh evidence for the quarterly export. A scheduler record dated two months ago and a retained authorized provider operation confirm the earlier known use. Verify whether the new release still selects the same identity before treating that as current. Label standby capability as configured rather than observed.
Change the test by repointing the recovery template to a dedicated account and executing an approved recovery rehearsal. Verify both the attached principal and a harmless successful operation. Review the running service definition, the actually selected template revision and the provider observation. A new checked-in template does not establish which effective identity a restore job would use. Keep the earlier reference as history and link the new verified decision.
Explain how you assigned each operation to a workload
Start with selectors that can support the attribution. They might include a cloud resource identity, scheduler execution identifier, deployment revision, approved workload marker or a trusted delegation event. Compare UTC timestamps and expected operation kinds. When several consumers issue the same operation near the same time, a shared account name and date do not separate them. Use a second source or retain an unknown disposition.
If a resource log names only the effective service account, ask whether the issuer or broker can link the credential session to its originating workload. A service may retain provenance for some methods and lack it for others. In a controlled replay, generate one harmless request from each candidate and compare the observed fields. Record which route or provider integration exposed a matching identity. Keep the limitations available to subsequent reviewers who want to apply the same inference to production data.
Also separate assigned capability from actual activity. The finance workflow might be allowed to impersonate the reporting principal but routinely use a dedicated service account. Its approved permission still matters during a grant review. It does not establish that the shared account performed recent finance operations. Conversely, a provider event with an unresolved actor is evidence of activity even when current configuration has no matching reference. Give each of these states a different follow-up.
Choose observation windows from the actual schedules
Record how often each workload runs and when a recovery run is expected. Include job calendar, time zone, retry behavior, seasonal processing and manual triggers. A 30-day window can be reasonable for hourly reporting and inadequate for a quarterly export. If a logging system retains less than the relevant schedule, request the approved alternative record or use a scoped staging run. Save which source answered which part of the question. Quarterly job identity review.
Test a positively identified consumer to confirm the verification process works. Observe a known job with access before changing anything. Verify one useful application result and the identity used. Then repeat for the expected replacement identity in the approved environment, again recording the resource action and successful result. This catches a case where a configuration update succeeded while a fallback credential still served the request.
Give infrequent consumers their own validation date and owner. If the next real opportunity is after the intended change date, decide with the workflow owner whether an approved representative rehearsal is sufficient, a narrowly scoped dependency should remain, or the work requires a different rollout window. Keep the justification and expected verification together so the next operator knows which path actually supports the decision.
Make the access decision without collapsing the evidence
Write a per-consumer record with the effective principal, access method, privileges relevant to the task, confirmed activity and evidence source, application owner, identity owner and next action. Keep stale references and unknown activity visible. A confirmed active use, a planned future path and a retired historical use should not receive the same operational state.
One approach in the fixture is to move the frequent reporting service to a dedicated identity first. Confirm its expected access and an appropriate restricted result for an operation it should not be able to perform in staging. The old account may still be required for another scheduled consumer. Observe both the migrated worker and the shared identity during the defined window, and verify all authoritative workflow references before any approved grant removal or retirement.
If you decide to restrict a shared account, record exactly which actions or destinations change, who approves, when it takes effect and what a caller should observe afterward. A failed downstream job can appear after the first report succeeds. Keep job owners informed through the existing workflow, and define which evidence would reopen the review. Do not rely on the phrase “all consumers migrated” unless the enumerated scope and verification support it.
Review the gaps after the change
Compare the updated consumer map with current inventory and the actual provider scope. Include job definitions newly created during the review, dormant failover replicas and archived workflows that restoration procedures can still launch. In the synthetic example, a new reporting replica appears after the inventory snapshot and inherits an obsolete template reference. Keep the observation open until an owner verifies whether it can use the shared account. A count of migrated consumers can be correct while the original inventory is incomplete.
Keep observations at two points if the change involves credential retirement. One can show new jobs selecting the replacement and performing their normal operations. Another can verify the prior credential state or policy at its owner system. Test an approved record with missing evidence at either point. A reviewer should know whether to contact the application owner or credential issuer for the next check.
Before handing off, ask a second reviewer to reproduce one attribution with access equivalent to the new owner. An original investigation may rely on privileged provider logs that a consumer cannot view. Attach an approved event reference, scope and sufficient summary, and identify the team allowed to inspect the source. Use separate observations for staging and production. Similar workflow names can otherwise make a staging proof appear to support a live permission change.
Compare visibility using the same identity fixture
Ask each evaluator to find the hourly reporter, quarterly export, recovery template and unknown event from the same authorized data. Have them distinguish configured relationships from observed resource operations and explain what evidence attributes them. Record connector coverage, audit data requirements, owner confirmation and export fields. Where a product sees current activity but lacks a scheduler or deployment integration, include the extra manual step in the comparison. See the Entro comparison for related identity coverage and owner mapping criteria.
Retain the review time, source scopes, known use paths, pending confirmations and decision owner. An operator should be able to identify which workload might be affected by a change, which evidence establishes it, and what to check when the map contains an unknown.