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

sync with --select-tag can replace existing certificate without indicating an update / delete if ID is mixed up by mistake #1543

Open
harshadixit12 opened this issue Feb 19, 2025 · 0 comments

Comments

@harshadixit12
Copy link
Contributor

harshadixit12 commented Feb 19, 2025

Issue
We have a customer report where two separate teams were running deck gateway syncs (from separate files) with --select-tag and a certificate object. Somehow, they crossed wires and the ID became the same for both files (but different tags)
The console output for both indicates it is "creating" the object, however, it was actually overwriting/updating the original object.

How to recreate?
Have two files for sync
On deck file A - Select tag was "TestA" and the ID of certificate was "XYZ"
On deck file B - Select tag was "TestB" and the ID of certificate was "XYZ"
Now, run deck gateway sync --select-tag {tag} {file} for each file one after the other

This would be the response for both
creating certificate XYZ
Summary:
Created: 1
Updated: 0
Deleted: 0

Now, run deck gateway dump and check the output - the first certificate is replaced.

Indication that the certificate is being replaced is missing.

Expected behaviour
When a resource is being updated / replaced, we should indicate on the console.
Ideally, selected tags should match even when ID is provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant