-
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
keep the drive letter prefix in the path for windows #7094
keep the drive letter prefix in the path for windows #7094
Conversation
815a372
to
5dbefd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid this PR constitutes a breaking change that might adversely affect users.
The way OPA separates prefix and file path with a :
has an unfortunate syntactic overlap with how drive letters are specified in Windows paths.
On Windows, to specify an absolute path that includes a drive letter, the file:///c:/a/b/c
format should be used.
5dbefd7
to
03d4654
Compare
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
03d4654
to
1c148b5
Compare
Signed-off-by: Alex Rohozneanu <[email protected]>
1c148b5
to
cccded7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and clean solution! 😃
Signed-off-by: Alex Rohozneanu <[email protected]>
5eecca3
to
e6af23b
Compare
I noticed an issue with these changes that we need to fix before this can be merged into main. Once loaded, the TLS cert, private key, and CA pool files are continually checked for changes on disk. Your changes unfortunately only accounts for the first load, and not subsequent reloads. You can test this by either changing one of the specified cert/key material files after starting the OPA server; or by additionally adding the I think what needs to change to account for this is to also set the |
Signed-off-by: Alex Rohozneanu <[email protected]>
37bb0cf
to
472124d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, great work!
Why the changes in this PR are needed?
Because i fixes issue #6910 and #4521. The windows like paths, prefixed with the drive letter are being stripped.
What are the changes in this PR?
Notes to assist PR review:
Further comments: