Skip to content

feat: hot-reload support for access controller #70

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

Merged
merged 9 commits into from
Jun 10, 2025
Merged

Conversation

qrayven
Copy link
Collaborator

@qrayven qrayven commented May 22, 2025

This PR introduces a new HTTP endpoint, POST /v1/reload_access_controller , which triggers the gas-station service to re-read its configuration file and re-instantiate the access controller with the updated rules and settings. When this endpoint is invoked, the service performs a full teardown and rebuild of the access controller component—loading the latest YAML, recompiling any embedded policies, and swapping in the new instance without requiring a process restart.

Security Note
This endpoint is intentionally exposed without built-in authentication: it assumes the gas-station runs in a trusted environment. Access control for this reload operation should be enforced upstream—typically by an API gateway or HTTP proxy configured by the deployment team.

closes #61

@qrayven qrayven changed the title Qrayen/feat/reloading feat: hot-reload support for access controller May 22, 2025
@qrayven qrayven requested a review from wulfraem May 26, 2025 09:57
@qrayven qrayven force-pushed the qrayen/feat/reloading branch from cdc3cf1 to 2f92491 Compare June 10, 2025 11:07
@qrayven qrayven changed the base branch from qrayven/feat/rego-expressions to dev June 10, 2025 11:08
@qrayven qrayven marked this pull request as ready for review June 10, 2025 11:09
@qrayven qrayven merged commit f3a16b9 into dev Jun 10, 2025
1 check passed
@qrayven qrayven deleted the qrayen/feat/reloading branch June 11, 2025 19:21
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.

Implement Dynamic Configuration Updates for Filters & Limitations
2 participants