security
Review workload access for a quarterly job
Use run schedules and purpose to review permissions for infrequent service jobs, whose credentials may look unused in a short activity report.
TrustIvan · · 10 min read
A monthly identity review marked the refund reconciliation account as inactive. Its activity report covered the previous thirty days. The finance team's schedule, however, showed a job that runs only after each quarter closes. Removing the read grant looked harmless from the report and would have left the next close without a way to fetch settlement records.
The review did identify a real cleanup opportunity. A former export job also used the account, and its old bucket grant remained attached months after retirement. A sound access decision keeps the permissions the reconciliation job still needs, removes unjustified access through the normal change process and leaves evidence that the next run will work.
Start with the execution calendar
Find the controlling schedule rather than estimating cadence from the latest event you can see. Capture the scheduler, cadence, time zone, job definition, intended next run and business process that depends on it. A finance process may run on the first business day after quarter end instead of repeating every ninety days. A year-end run may wait for a handoff while the ordinary quarterly schedule has no manual step.
Check the recent expected executions with their owners. Mark each as completed, failed before reaching the dependency, intentionally skipped or pending. If an operator invoked a catch-up manually, link the invocation to the job's ordinary definition and note any difference in identity or configuration. Review suspended schedules before treating their access as orphaned. An active permissions review needs the reason and duration for suspension.
Keep scheduler evidence separate from business completion. A Kubernetes CronJob for example creates Jobs on a schedule, and configuration can affect whether and when an execution starts. Check the Job outcome and the downstream activity as separate evidence, including missed or overlapping schedules where relevant. Kubernetes CronJob documentation.
Trace the identity that actually does the work
Write down the scheduler's identity and the identity the task uses to access data. They can be different. A cloud scheduler might authenticate an invocation, while the task runtime reads an object using its own service account. Key reuse or temporary impersonation introduces another distinction. A meaningful access review names the principal whose permissions would be changed and the dependency action those permissions allow.
Use the deployed job definition, issuer records and a successful downstream request as three independent anchors where available. Tie them together with approved run, request and resource identifiers. A CI record that deployed the job can establish the intended credential source. It does not establish which principal the live workload used when the provider processed an operation. For managed integrations, the downstream log may show the effective service identity without the originating actor. Google's IAM documentation describes examples and exceptions for this distinction. Google Cloud service account audit log examples.
Give each identity a responsible owner and each necessary credential or role relationship an operator who can change it. If the job relies on a credential that is rotated on a shorter cadence than it runs, record where it receives the latest configuration and who validates the next quarter. A recently rotated credential can have no production usage while the service account remains essential.
Pick a lookback that can support an inactivity conclusion
Measure the window that the product actually queried. An interface may show a thirty-day default even when source records allow a longer review. Determine which events are collected, how far back they go, which locations they cover and whether the review role can read them. A full quarter of log retention will still miss a run that straddled the interval if the query uses calendar rather than execution times.
Try to obtain evidence from at least one expected successful run and evidence covering each material permission in scope. Some permissions only support error handling, restoration or a year-end branch. Ask the owner for the expected invocation and test those conditions on an approved representative workload. If older logs have expired, record that information explicitly. Combine the schedule and configuration with current controlled evidence rather than treating the expired period as confirmed idle.
The review can contain several valid states. Recent activity is established when a scoped event supports it. Scheduled need can remain supported by the job definition and owner when the next run has not happened. A grant can be under review because its last known consumer retired. Some permissions remain unknown when there is neither retained activity nor an authorized test. Preserve the distinction so a cleanup queue can prioritize real candidates.
Work through a synthetic quarter-end fixture
The fictional finance service processes a bounded set of synthetic input files and writes a reconciliation result. The last completed run was on April 2. Review takes place June 12, and the finance calendar shows July 2 as the next scheduled run. A report with thirty days of source data contains no April activity. The job definition points to a production principal that reads the settlement input, writes one results prefix and still has a broad legacy export grant.
| Evidence in the exercise | What it establishes | Decision for the reviewer |
|---|---|---|
| April 2 scheduler record and archived task result | A previous reconciler invocation finished | Preserve both artifacts while checking which principal finished it |
| May 14 to June 12 activity report | No collected events are visible in that interval | Treat it as a statement about the specific window |
| July 2 schedule and service owner attestation | The job has an active future dependency | Keep supported grants while reviewing the scope |
| Deployment history for the retired export | That consumer is no longer deployed in the fixture | Review the old grant with the export owner and a representative test |
| Controlled replay with scoped test data | The proposed scope can read expected input and write expected output | Collect evidence at the effective identity and decision points before approval |
Add a replay in which the scheduler entry says “completed” but no result object is produced. The downstream data action in that exercise should report denied or unknown depending on the evidence provided. Add another run where an administrator's temporary credential succeeds, while the job's effective identity is missing from the logs. Those two cases prevent a reviewer from mistaking a successful test command for proof that the scheduled workload will succeed.
Test the permission change without depending on quarter end
Prepare a test environment with representative input, output, identity issuance and timing. Keep synthetic or approved non-production records and replace irreversible downstream actions with approved checks. Reproduce the executable path through the scheduler if possible. Where a test invokes the same task definition manually, identify which controls are bypassed in the test, such as scheduling or invocation authentication, and verify those separately.
Exercise the minimum expected sequence. The job should authenticate using its intended workload identity, read the approved input, write the approved output and record errors in the authorized location. Add one known safe request outside the permitted fixture scope and verify the expected refusal at the provider decision point. Retain the issuance or configuration reference and the downstream event identifier. Keep tokens, account secrets and sensitive payloads out of the report.
Bring the same evidence to change review. An approved removal requires the current role definition, proposed difference, accountable owner and an outcome if the next production run fails. Agree which authorized operator can follow the normal recovery path and which signal will trigger it. Use the team's change process for any production modifications. The evidence from the rehearsal establishes a predicted outcome under the tested conditions.
Separate retained access from cleanup
Document the input and output grants as distinct pairs of operation and resource. If the test requires a read for one approved collection and a write for one results location, the active job may have no need for administration of either. Use the platform's available scoping controls and note where a proxy or service boundary must enforce finer restrictions. Google's service account guidance covers dedicated workload identities and least privilege. Google Cloud service account security best practices.
Review the legacy export grant with evidence that addresses both the retired job and any other consumers. If the principal is shared, find separately scheduled uses before changing a shared policy. An ordinary quarterly review might discover that two independent workflows still rely on the same grant. Assign follow-up to redesign their identities separately, then evaluate removal against the resulting inventory and tests.
An exception may permit temporary retention while an unknown dependency is checked. Record the responsible owner, scope, basis, expiry and next evidence date. For infrequent schedules, place the next review soon after the expected invocation, when audit and scheduler evidence is still available. If a run is intentionally skipped, reschedule the evidence review rather than assuming the retained approval will remain valid until the next routine cycle.
Handle a schedule change while the review is open
Suppose the owner moves the next run from July 2 to July 9. Update the review with the source and approval for the new schedule. Check whether a temporary permission window or exception now expires before the job starts. If a long-running job may still be in progress at the end of a window, agree on the expected deadline with the operator and validate the provider's behavior in the fixture. Keep any approved change bounded to the execution requirement.
Also ask what the job does on retry. It might read the same inputs, write a different output or pick up a checkpoint in another approved resource. A fixture that tests only the happy path can leave the retry grant either unnecessarily broad or missing. Ask the service owner to select the applicable retry case and expected decision, and run it with representative test data.
If the job is retired while the review is in progress, record who canceled the schedule and who confirmed its consumers were moved or decommissioned. Use that decision as stronger evidence than mere silence. Review any connected grants and old credentials separately, because the same identity may serve another workload on a different calendar.
Verify the result after the next scheduled run
The new production run should add evidence that complements the rehearsal. Observe whether the workload starts on schedule and which identity reaches the relevant dependency. Confirm the expected business outcome, such as an approved result reference, without capturing the finance data itself. Reconcile unexpected requests and retries against the role review rather than immediately deciding to restore a broad grant.
Record completion against the scheduled run identifier and the deployed job revision. If the identity could still reach a retired target according to a policy review, route the remaining grant to an accountable owner. A healthy execution proves the operations it actually used. A separate policy verification provides evidence about dormant paths that the healthy execution did not touch.
When comparing tools, give reviewers the same schedule, short activity feed, older execution evidence and proposed scoped fixture. Ask them to account for each grant, identify the currently effective identity and choose a date to verify the decision. Compare the exported record for retention window, collection coverage, identity relationships and evidence links. The Astrix comparison and identity inventory guide offer related criteria for a product pilot.
A quarterly workload is easiest to review when the schedule sets the observation window. Give uncertain activity a clear label, preserve the permissions the next run needs and test removal of unrelated access under controlled conditions.