pomerium/internal
Caleb Doxsey 6918bf83cb
databroker: add a wait field to sync request (#5630)
## Summary
Add a new `wait` field to the sync request for the databroker. The
current behavior is to always wait for changes in a never-ending stream
of records, but there are cases where it would be useful to stream the
changes and stop when there are no changes remaining. The storage
backends already support this.

The `wait` field is optional and the default will be to wait, preserving
the existing behavior.

## Related issues
-
[ENG-2401](https://linear.app/pomerium/issue/ENG-2401/enterprise-console-improve-performance-of-directory-sync-using-cached)

## Checklist

- [x] reference any related issues
- [ ] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [x] ready for review
2025-05-29 12:50:14 -06:00
..
atomicutil upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
authenticateflow multi-domain login redirects (#5564) 2025-04-04 13:14:30 -07:00
autocert logging: standardize on hyphens in attribute names (#5577) 2025-04-22 10:57:19 -07:00
benchmarks upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
chanutil fileutil: update watcher to use fsnotify and polling (#3663) 2022-10-19 09:13:08 -06:00
contextkeys xds: only tag contexts used for UpdateRecords (#2269) 2021-06-04 14:01:25 -04:00
controlplane config: use stable route ids for authorize matching and order xds responses (#5618) 2025-05-19 10:52:15 -06:00
databroker databroker: add a wait field to sync request (#5630) 2025-05-29 12:50:14 -06:00
deterministicecdsa core/ci: update linting (#4844) 2023-12-14 09:07:54 -08:00
enabler Fix many instances of contexts and loggers not being propagated (#5340) 2024-10-25 14:50:56 -04:00
encoding core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
errgrouputil core/go: use max procs (#4766) 2023-12-07 09:14:57 -07:00
events core/logging: change log.Error function (#5251) 2024-09-05 15:42:46 -06:00
fileutil remove debug log message for directories (#5560) 2025-04-02 10:17:42 -06:00
handlers Add an 'issuer' field to the /.well-known/pomerium endpoint (#5344) 2024-10-25 13:07:57 -04:00
hashutil replace xxhash with xxh3 (#5457) 2025-01-31 08:44:08 -07:00
headertemplate add support for pomerium.request.headers for set_request_headers (#5563) 2025-04-07 10:32:03 -06:00
httputil config: use stable route ids for authorize matching and order xds responses (#5618) 2025-05-19 10:52:15 -06:00
jwtutil authorize: support authenticating with idp tokens (#5484) 2025-02-18 13:02:06 -07:00
log config: use stable route ids for authorize matching and order xds responses (#5618) 2025-05-19 10:52:15 -06:00
mcp mcp: add list-routes client helper (#5596) 2025-05-01 15:02:28 -04:00
middleware New tracing system (#5388) 2025-01-21 13:26:32 -05:00
oauth21 mcp: handle and pass upstream oauth2 tokens (#5595) 2025-05-01 12:42:31 -04:00
registry upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
retry New tracing system (#5388) 2025-01-21 13:26:32 -05:00
rfc7591 chore(deps): bump the go group across 1 directory with 31 updates (#5608) 2025-05-07 10:04:03 -07:00
scheduler feature/databroker: user data and session refactor project (#926) 2020-06-19 07:52:44 -06:00
sessions authorize: return 403 on invalid sessions (#5536) 2025-03-19 14:41:28 -06:00
sets core/go: use hashicorp/go-set (#5278) 2024-10-03 12:59:11 -06:00
signal log context (#2107) 2021-04-22 10:58:13 -04:00
syncutil config: generate cookie secret if not set in all-in-one mode (#3742) 2022-11-11 14:14:30 -07:00
telemetry core: more metrics (#5629) 2025-05-29 09:34:41 -06:00
testenv storage: add sync querier (#5570) 2025-04-23 10:15:48 -06:00
tests/xdserr Fix many instances of contexts and loggers not being propagated (#5340) 2024-10-25 14:50:56 -04:00
testutil chore(deps): bump the go group with 39 updates (#5559) 2025-04-04 16:26:51 -07:00
tripper config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
urlutil multi-domain login redirects (#5564) 2025-04-04 13:14:30 -07:00
version ci: do not include timestamp into buildmeta (#5215) 2024-08-15 10:57:10 -04:00
zero logging: standardize on hyphens in attribute names (#5577) 2025-04-22 10:57:19 -07:00