Updated November 10, 2026
Audit-trail continuity during a platform migration: what auditors ask, and what actually survives
SOC 2 and ISO 27001 assume a continuous audit trail. A platform migration breaks that assumption in specific, avoidable ways. What survives, what does not, and how to preserve the record without freezing the migration.
Update, November 2026. The closing section said the platform coordinates the export of the source platform's audit log. It does not: the platform keeps the identity mapping, attributes migrated content to its original authors, and has its own exportable audit log of operator actions, while exporting the source's audit log is program work. The section now draws that line.
The auditor does not care that you migrated. They care that on the twelfth of March, when someone force-pushed to main on the payments service repo, a record exists showing who did it, whether they were authorised to, and when a reviewer was notified. If that record was in your old platform and the old platform has been decommissioned and nobody exported the log, you have a control failure inside the audit period regardless of what the migration diagram looked like.
This is the audit-trail continuity problem, and it is one of the least-discussed workstreams in a platform migration. Every large migration produces a natural discontinuity in the audit record: some events are in the source system's audit log, some are in the destination's, and the mapping between them is not automatic. Auditors ask for evidence spanning both. Compliance and security teams are usually the ones to notice, and they usually notice a few months after the migration is "done", when the source platform's audit UI is either shut off or has aged past its retention window. This post is a practical playbook for keeping the audit record intact across the transition, without slowing the migration down.
TL;DR
- Native migration tools move repos, pipelines, and work items. They do not move audit logs. The source's audit history stays with the source and disappears with it unless you export it first.
- Retention windows on the source platform's audit UI are shorter than most people think: six months on GitHub Enterprise Cloud's UI, 90 days on Azure DevOps portal, and tier-dependent on GitLab. Standard SOC 2 or ISO audit periods are longer.
- Set up audit-log streaming from the destination on day one of the migration, not on go-live day. The first weeks of destination activity are the highest-risk period and the ones auditors read most carefully.
- Export the source's full audit log to an immutable store (S3 Object Lock, Azure immutable blob, dedicated SIEM cold store) with an integrity manifest, before decommissioning anything. This is the single most important artefact.
- Identity mapping is the joint that makes cross-platform queries work. Preserve the source-to-destination identity map alongside the exports; without it, "who did X" answers cannot cross the cutover date.
- Rebuild critical linkage in the destination where the tools support it: a
.mailmapfile so commit history displays consistent identities without being rewritten, work-item comments annotated with source references, deployment records tagged with source run IDs. Not everything can be backfilled, and that is fine as long as the source export exists.
What auditors actually ask for (and where the migration breaks it)
Trust Services Criteria under SOC 2 (particularly CC6.1, CC6.2, CC6.3 on logical access, and CC7.2 on system monitoring) and ISO 27001 Annex A controls (A.5.15 access control, A.8.15 logging, A.8.16 monitoring activities) share a common shape when it comes to audit evidence. The auditor asks: for the audit period, can you show me who had what access, who changed what access, who committed and merged code with what review, and how you would know if any of those events were anomalous?
Every migration breaks this in specific ways:
- Access-control changes on the source (role added, team membership changed, admin granted) are logged in the source's audit log. Access-control changes on the destination are logged in the destination's audit log. The join key is user identity, which changes format across platforms.
- Repository events (push, force-push, branch-protection change, secret set) are logged in each platform natively, and a migrated repo starts a fresh event log on the destination on the migration day. There is no unified timeline unless you build one.
- Pipeline runs and deployment records are logged on the source until cutover and on the destination after cutover. Auditors asking "who deployed to production on this date" need both logs to answer for any date crossing the transition.
- Approval and review events (PR reviews, environment approvals) live inside the source's PR/merge-request records, most of which are approximated in the destination migration (see what happens to migrated PR review history) rather than reproduced verbatim.
The discontinuity is not the auditor's problem to solve; it is yours to document and evidence. A migration project that treats audit as a launch-day checkbox rather than a workstream discovers this the first time the compliance team asks for evidence covering the transition.
What survives and what does not
The ranges and behaviours below follow from the platforms' documented retention and from what migration tools move. Actual coverage varies with tier and configuration.
| Audit event category | On source after cutover | On destination going forward | Preserved by native migration | Recommended action |
|---|---|---|---|---|
| Access-control changes (org, team, repo roles) | Retained per source's window (90 to 180 days UI) | Logged fresh from day one | No | Export source log; stream destination log |
| Repository writes (push, merge, branch-protect) | Retained per source's window | Logged fresh from day one | No, though Git history itself moves | Export source log; retain source Git objects |
| Pipeline and deployment runs | Retained per source's window | Logged fresh from day one | No | Export source log; retain artefacts separately |
| Secrets and service connections | Retained per source's window | Logged fresh from day one | No, and secret values do not move | Export source log; document re-entry in the destination |
| PR and merge-request review events | Approximated in migration output | Logged fresh from day one | Partially (metadata may be flattened) | Rely on Git history plus source export for pre-cutover reviews |
| Identity and login events | Retained per source's window | Logged fresh from day one | No | Export source log; keep identity mapping alongside |
Ranges are indicative. The specific retention numbers depend on your tier and any streaming configuration; verify against the platform's current retention documentation before you plan around them.
The pattern is consistent: nothing in the audit-event class migrates natively, and every platform's UI retention window is shorter than a typical annual audit horizon. The action items follow from that.
Set up destination streaming on day one, not go-live day
The first weeks of destination activity are the highest-risk period for audit findings. New identities are being provisioned, permissions are being tuned, teams are learning where the boundaries are, and human errors (a main branch left unprotected for a week, a secret placed in a repo secret when it should have been an environment secret) are at their maximum frequency. Auditors read these weeks with particular attention on the next review.
The right move is to set up audit-log streaming to your own store before any real production traffic reaches the destination. On GitHub Enterprise Cloud that means enterprise audit-log streaming to your SIEM, S3 bucket, or Azure/GCP equivalent. On Azure DevOps that means an audit stream to a target other than the portal. On GitLab it means confirming that audit events are being exported at the retention you need.
We treat this as a hard gate before the first wave of production repos migrates. If the destination is not streaming to a store you control, no repos migrate.
Export the source's audit log before decommissioning
The source platform is going to be decommissioned. When it is, the audit UI goes away with it, and so does anything not exported. This is the highest-consequence irreversible action in the whole migration, and it has a right time to run: before the source is shut off, well before, and with enough runway to verify the export.
The export needs three properties for it to be usable as evidence years later:
- Complete. Every event within the audit period the source held, exported to a schema-stable format (JSON Lines is a good default; native platform CSV exports usually flatten nested fields in ways that destroy evidence value).
- Integrity-manifested. A file alongside the export listing per-file SHA-256 hashes and per-day event counts. Auditors ask "how do we know this file is what came out of the source", and a manifest signed by the migration lead at export time is a defensible answer.
- Immutably stored. Object storage with Object Lock (AWS S3), immutability policies (Azure Blob), or a dedicated SIEM cold-store tier. Not a shared drive, not a file the migration team can overwrite, not a bucket without retention.
We plan for the source export to happen no later than two weeks before the source-decommission date, and the manifest check runs the day of the export and again the day before decommission. Two weeks is enough headroom to catch export tool failures without cornering the migration schedule.
Identity mapping is the joint
The single artefact that lets audit queries cross the cutover date is the identity mapping: the table of source-user-identity to destination-user-identity, produced during the migration and preserved as its own record.
Without it, an event in the source log saying "jsmith@corp.example changed the deploy permissions for the payments repo on 2026-03-12" cannot be joined to the destination event saying "js_migrated_2026 promoted a team member to admin on 2026-04-05" as being the same person. The two logs live side by side and neither answers the question.
The mapping needs to survive at three layers:
- As a migration artefact: the CSV or database table produced during identity mapping, preserved alongside the source audit-log export in the immutable store.
- As destination metadata: user profiles on the destination annotated with their source identity where the platform supports it (custom fields, SAML claims, notes on the user record). Not every platform allows this cleanly, and that is fine as long as the artefact record exists.
- As a queryable resource in your SIEM or evidence store: a lookup table that the audit query tooling can join against when producing cross-cutover reports.
We treat the identity mapping as a first-class deliverable of the migration, not a working artefact of the migration team. It gets an owner, a review, and a retention policy that matches the audit-log retention policy.
Rebuild what you can in the destination, and stop when the tools stop
There is a tension in every migration between "reconstruct history in the destination as faithfully as possible" and "accept that the source is the source of truth for pre-cutover events". The right answer, in our view, is a small amount of the first and a large amount of the second.
Where the destination tools support reconstruction, use it:
- Commit history carries author and committer names, emails, and dates inside each commit, and that data is part of what the commit SHA is computed from. A migration that preserves history moves it unchanged, and it should: rewriting authors to destination identities would change every SHA and break signatures and every reference to those commits. To present consistent identities without touching history, add a
.mailmapfile at the top level of the repository. Git uses it "to map author and committer names and email addresses to canonical real names and email addresses" when it displays history (git logapplies it by default), and no commit is altered. On GitHub, a commit is linked to an account through the commit email, so ask mapped users to add their historical commit addresses to their accounts. - Work-item comments and PR bodies can carry a "migrated from" line with the source item ID and URL. This is annotation, not reconstruction, and it is enough for an auditor tracing a specific event back.
- Deployment records in the destination CI/CD can be tagged with the source pipeline's run ID for events that spanned the transition. This is manual for the small number of releases that were in flight during the cutover; do it deliberately for those.
Where the destination tools do not support reconstruction, do not fake it. Backdating audit events into a modern audit log is almost never the right answer; auditors are trained to spot it and it damages the credibility of the whole record. The source export is the evidence for the source period; the destination log is the evidence for the destination period; the identity mapping and annotations are the join. That is the story auditors accept.
Retention, legal hold, and the source-decommission timeline
The last question the compliance team asks, and the one that surfaces late in a migration if it surfaces at all, is: how long do we keep the source export?
Two rules of thumb we apply:
- At least as long as the destination's own retention. If SOC 2 for the destination requires seven years, the source export retention matches. Auditors ask a single question and expect a single-tier answer; splitting retention by platform confuses the record.
- Longer if any legal hold applies. Ongoing litigation, regulatory investigation, or an internal investigation touching the pre-cutover period extends the retention indefinitely. Coordinate with legal before setting the source-decommission date; a legal hold discovered a week after decommission is a bad conversation.
The source-decommission timeline follows from these: source shutoff happens only after the export is verified, the identity mapping is preserved, the destination is streaming and stable, and legal has confirmed no active hold. The export gates the whole decommission plan, and that is the correct order. The pace of the migration itself is separate from the pace of the source shutoff.
How Shyftport handles this
Audit-trail continuity is one of the workstreams we scope explicitly on every enterprise migration because it is the one that fails silently and years later. The division of labour is worth stating exactly. The platform keeps the identity mapping as a reviewable record you can export, writes the original author and a link back to the source into the pull requests, issues, and comments it migrates across platforms, moves commits with their authorship unchanged, and keeps its own append-only audit log of operator actions (plan changes, run starts, retries and cancellations, connection changes), which can be exported as CSV or forwarded to your SIEM. It does not export the source platform's audit log: that export, its integrity manifest, and the pre-decommission gate around it are work we run with you as part of the migration program. The immutable-store setup for the export itself lives inside the customer's environment, not ours, because the evidence has to be under the customer's retention control. If your migration plan does not yet name an owner for the audit workstream, and you are already thinking about the next SOC 2 or ISO cycle, talk to a Shyftport engineer and we will map the specific gaps your source and destination will produce.
Sources
- About audit logs for your organization - GitHub Docs(accessed 2026-08-24)
- Streaming the audit log for your enterprise - GitHub Docs(accessed 2026-08-24)
- Audit log data retention (GitHub)(accessed 2026-08-24)
- Audit log (Azure DevOps)(accessed 2026-08-24)
- GitLab audit events documentation(accessed 2026-08-24)
- SOC 2 Trust Services Criteria (AICPA)(accessed 2026-08-24)
- gitmailmap - Map author/committer names and/or E-Mail addresses (Git documentation)(accessed 2026-11-10)
FAQ
- Do platform migrations reset our SOC 2 or ISO 27001 audit period?
- Not automatically, but they can if you cannot show evidence continuity. Auditors care about controls operating effectively over the audit period, not about which platform hosted them. If your access-control evidence is intact for the source period, the destination period, and the transition, the report is unaffected. If there is a gap where nobody can answer who had admin rights on a Tuesday in March, that is a control failure regardless of what the platform migration diagram looked like.
- How long do GitHub, Azure DevOps, and GitLab actually retain audit logs?
- GitHub Enterprise Cloud retains its enterprise audit log for six months in the UI, longer via streaming to your own store. Azure DevOps retains audit events for 90 days in the portal, with export required for longer periods. GitLab's default retention varies by tier and self-managed configuration. None of these are long enough for a typical SOC 2 or ISO audit horizon. Export the source log to an immutable store before you decommission anything.
- Do the audit events from the old platform get migrated into the new one?
- No. Native migration tools move repositories, work items, and pipelines; they do not move audit events. The audit history in the source platform stays there until the source is decommissioned, and it disappears with the source unless it was exported. This is one of the highest-consequence oversights in a platform migration and it has to be handled before cutover, not after.
- What is the single most important artefact to preserve before decommissioning the source platform?
- The full audit log export, in a schema-stable format, with an integrity manifest (hashes and record counts), stored in an immutable location outside the source platform. Everything else can usually be reconstructed from repository history or backups; the audit log cannot. If you preserve one thing before pulling the plug on the source, it is this.
Related reading
Permissions are not portable: security groups, teams, and what your migration silently drops
After a migration, the people who can push to main may not be the same as before, and nothing tells you. Why ADO, GitHub, and GitLab access models refuse to map.
Test Plans: the orphan of every Azure DevOps migration
No migration tool moves Azure Test Plans to GitHub or GitLab: not GEI, not Shyftport. What Test Plans actually contains, why it has no equivalent, and four real options.
Work item history: what survives a migration and what silently doesn't
Work items record who changed what and when. Many migrations flatten that to one revision by a service account. Here is what survives, and what auditors ask for.