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

fix: batch authservice checksum updates #735

Merged
merged 29 commits into from
Oct 21, 2024

Conversation

UnicornChance
Copy link
Contributor

@UnicornChance UnicornChance commented Sep 9, 2024

Description

Currently we update the authservice secret and apply a checksum each time a chain is added, updated or deleted. This ends up resulting in unnecessary churn on Authservice and also can be problematic when we switch to the kindNsName based queues for Pepr (multiple authservice clients can reconcile concurrently).

The changes in this PR switch to using an in-memory secret for tracking chain changes (rather than pulling from the cluster on each change) as well as debouncing updates so that concurrent chain creations are batched together.

Related Issue

Fixes #561

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@UnicornChance UnicornChance self-assigned this Sep 9, 2024
@UnicornChance UnicornChance requested a review from a team as a code owner September 9, 2024 14:54
@UnicornChance UnicornChance linked an issue Sep 9, 2024 that may be closed by this pull request
@rjferguson21
Copy link
Contributor

@UnicornChance Did you take a stab at addressing at batching authservice updates across multiple packages?

IMO I don't think this is worth doing unless we address that scenario. I don't think we have anyone who currently using more than one sso client per Package.

I would try to debounce whatever function is actually checksuming the deployment and that would probably work.

@UnicornChance UnicornChance marked this pull request as draft September 10, 2024 15:43
@rjferguson21 rjferguson21 marked this pull request as ready for review October 17, 2024 14:23
Copy link
Contributor

@mjnagel mjnagel left a comment

Choose a reason for hiding this comment

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

Reviewed synchronously with @rjferguson21 - this behaves as expected in testing and LGTM. Definitely a good feature/change to track with users - we may want to capture the reconcile strategy change in the description and/or PR title as well.

@rjferguson21 rjferguson21 merged commit 100d35b into main Oct 21, 2024
18 checks passed
@rjferguson21 rjferguson21 deleted the batch-authservice-checksum-updates branch October 21, 2024 20:30
rjferguson21 pushed a commit that referenced this pull request Oct 28, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.30.0](v0.29.1...v0.30.0)
(2024-10-28)


### ⚠ BREAKING CHANGES

* remove uds-runtime from core
([#955](#955))

### Features

* add finalizer for UDS Package CRs
([#953](#953))
([fa42714](fa42714))
* adds registry1 flavor of uds runtime
([#925](#925))
([0011852](0011852))


### Bug Fixes

* batch authservice checksum updates
([#735](#735))
([100d35b](100d35b))
* logout redirect uri
([#945](#945))
([8e2b5d8](8e2b5d8))
* resolve lingering note formatting
([#938](#938))
([455a530](455a530))
* vector remap language logic typo
([#959](#959))
([89af729](89af729))


### Miscellaneous

* add proper version update to aks nightly bundle
([#942](#942))
([2f51c75](2f51c75))
* block local auth for neuvector
([#965](#965))
([8f25b41](8f25b41))
* **deps:** update vector to 0.42.0
([#946](#946))
([2f63db2](2f63db2))
* remove uds-runtime from core
([#955](#955))
([c6f6664](c6f6664))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Batch authservice checksum updates
3 participants