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

CP/DP split: update/delete user secrets #3193

Open
wants to merge 1 commit into
base: change/control-data-plane-split
Choose a base branch
from

Conversation

sjberman
Copy link
Collaborator

@sjberman sjberman commented Mar 4, 2025

Problem: When a user updates or deletes their docker registry or NGINX Plus secrets, those changes need to be propagated to all duplicate secrets that we've provisioned for the Gateway resources.

Solution: If updated, update the provisioned secret. If deleted, delete the provisioned secret.

Testing: Verified that when a special Secret is updated, the provisioned Secret is also updated. When the special Secret is deleted, the provisioned Secret is deleted.

Closes #2845

@sjberman sjberman requested a review from a team as a code owner March 4, 2025 00:18
@github-actions github-actions bot added the chore Pull requests for routine tasks label Mar 4, 2025
@sjberman sjberman force-pushed the change/control-data-plane-split branch from aab4411 to afa658a Compare March 4, 2025 22:27
@sjberman sjberman requested a review from a team as a code owner March 4, 2025 22:27
Problem: When a user updates or deletes their docker registry or NGINX Plus secrets, those changes need to be propagated to all duplicate secrets that we've provisioned for the Gateway resources.

Solution: If updated, update the provisioned secret. If deleted, delete the provisioned secret.
@sjberman sjberman force-pushed the chore/secret-updates branch from 84e1e4b to a076855 Compare March 4, 2025 22:48
return false
}

func (p *NginxProvisioner) deleteSecret(ctx context.Context, secretNSName types.NamespacedName) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider adding a leader check here? Is it necessary?

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

Successfully merging this pull request may close these issues.

2 participants