Skip to content

Dynamic Reload of topic policies and KMS definitions #10

Open
@robobario

Description

We could implement dynamic updating of policies and KMS definitions in Kroxylicious without it being implemented upstream.

We could set up watches on the files for changes, or naively reload the configuration periodically. Then on update we load it in and swap out the old set of policies.

Upstream offers the PolicyRepository so we could build it using this and PR it back.

Maybe there's some way to establish it as a pattern that could be used with other implementations, like if the TopicPolicies are stored externally in something like vault.

We could make this in-memory reloading implementation that can ask whether/when a delegate PolicyRepository has been modified and therefore that it's cache is invalid and it should reload. Maybe it's a two way thing since a modification is more like an event that should be pushed out of the delegate and reacted to in the caching reloader.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions