Rotating Group/Project access token results in an error after the first rotation
Bug Report
Related to #6164 (closed)
When token rotation was implemented, we now persist state after update instead of destroying and re-creating a whole new token each time. However, rotated tokens have a separate primary key, which causes issues because we only store the ID during create
and not during `update.
We need to store the relevant primary key during Update in addition to during Create, so the subsequent Read operations properly read the newly rotated token.
Relevant Log Output
These are the debug logs of the `terraform` command output:
Additional Details
- GitLab Terraform Provider Version: ``
- GitLab Version: ``
- Terraform Version: ``