Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secret deleted and recreated in the apply pipeline #6680

Closed
jackstockley89 opened this issue Jan 14, 2025 · 1 comment
Closed

Secret deleted and recreated in the apply pipeline #6680

jackstockley89 opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@jackstockley89
Copy link
Contributor

Service name

Namespace: effected legal-framework-api-uat
Effected Resource: lfa-secrets

slack thread

Problem description

User raised an issue with a secret not working anymore due to it being blank, on investigation the secret had been deleted and recreated Sunday deleted, recreated

unsure how the terraform destroy action triggered. as there weren't any changes to this pull request or state file secret terraform

We need to understand how this happened and make sure it can't happen again

Contact person

[email protected]

@jaskaransarkaria
Copy link
Contributor

It's hard to replicate this issue but my intuition is telling me this is a race condition where the dir the the apply is happening is misaligned with the namespace. We've added a check to enforce that this should always be the same namespace and dir before any apply and added some debug logs to monitor if this happens again.

ministryofjustice/cloud-platform-cli#681

@jaskaransarkaria jaskaransarkaria moved this from 🏗 In Progress to 👀 Review/QA in Cloud Platform Jan 23, 2025
@ChikC ChikC pinned this issue Jan 27, 2025
@jaskaransarkaria jaskaransarkaria moved this from 👀 Review/QA to 🥇 Done in Cloud Platform Jan 28, 2025
@jaskaransarkaria jaskaransarkaria closed this as completed by moving to 🥇 Done in Cloud Platform Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🥇 Done
Development

No branches or pull requests

3 participants