-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support fsnotify based reloading of certificate, key and CA certs #5788
Comments
Sounds good! We likely want to keep the manual option too, as the file watcher has been known not to work with things like nfs/efs, and similar. |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. |
I think this might be made easier once some of the work in #5812 is merged. |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue. |
@anderseknert would this be a |
I don't see why not! 😃 I know @ashutosh-narkar recently worked with some fsnotify related stuff in #5950 so maybe he could provide some pointers. But I'd say go for it! |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue. |
I've just had a report that from a user who's been burned by this. Their certs had been rotated, but the OPA instance didn't reload it as they'd not set |
@charlieegan3 I've been moving but plan to pick this up this weekend! I'll keep you posted |
Hey that's no problem 🙂 I've been OOO too - tis the season! If you're still keen, it'd be nice to try and get something for this in the next release (in around 2 weeks time). |
@charlieegan3 yep, still keen :D. Started in over the weekend and should have something ready by this next Monday. |
Sounds great, keep us posted! |
@charlieegan3 I've still been busy.. might be able to get something up end of the week but if this is really time-sensitive I'm happy to bow out and pick up another issue when I have bandwidth - lmk. |
Hey, thanks for keeping us in the loop! I'm going out on leave again on Friday for a week. Keen to let you have a go 🙂, but if you'd rather someone else did it, I can take a look when I get back. |
Cool, I'll keep it on my todo list |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue. |
Hey @tjons, I have some time to work on this issue this week. Do you have something WIP, or should I pick this up? |
Hi @charlieegan3 , can I look at this ? I can start after couple of days. have to learn abt fsnotify also. |
Hey @charlieegan3 - I do have something WIP, was hoping to wrap by end of week. Sorry for the delays here, I understand if you want to just handle it. I can pick up another issue instead. |
👍 still keen for you to do it if you have time and something WIP @tjons 🙂. (@yogisinha, lmk if you need help selecting a good issue in a few days time!) |
yes @charlieegan3 lmk what I can work on. |
Have you seen the backlog list here: https://github.com/open-policy-agent/opa/projects/5 (if you'd like to chat more, can you drop me a message in the OPA slack to keep this issue on-task. Thanks!) |
Hey @tjons, @yogisinha was interested in picking this one up, does that sound ok? |
@charlieegan3 sure yes. I'll find something else to do when my schedule frees up. Have been quite busy with my regular day job. |
Thanks @tjons! No worries, @yogisinha it's all yours 🙂 |
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue. |
I've opened a PR for this here: #6415, any comments welcome and I'll get back to them tomorrow. |
We currently have a command line parameter
tls-cert-refresh-period
to control how often certificates and keys (tls-cert-file
,tls-private-key-file
) are reloaded from disk.We can see this here:
opa/cmd/run.go
Line 196 in 107cace
This triggers a reloading loop but only if the refresh interval is set
opa/server/server.go
Line 562 in 107cace
It would be nice to make use of fsnotify which we already depend on for the watch run flag.
There are other functionalities that could benefit from this too #1719 (comment). Some refactoring out our use of fsnotify into something more generic might be a pre-requisite in both cases.
The text was updated successfully, but these errors were encountered: