Skip to content

Conversation

lstipakov
Copy link
Member

No description provided.

This requires elevated privileges which virtual service user
doesn't have.

GitHub: OpenVPN#26

Signed-off-by: Lev Stipakov <[email protected]>
Signed-off-by: Lev Stipakov <[email protected]>
@lstipakov lstipakov requested review from flichtenheld and uddr June 24, 2025 10:40
@NiKiZe
Copy link

NiKiZe commented Jun 24, 2025

Consider adding better error handling, allow for parts of the process to throw, without killing the whole service.

@lstipakov lstipakov requested a review from d12fk June 24, 2025 10:41
@lstipakov
Copy link
Member Author

Does it even make sense to continue if we cannot log?

lstipakov added a commit to lstipakov/openvpn-build that referenced this pull request Jun 24, 2025
This enables OpenVPNService, running under limited virtual
service account, to log to event log.

GitHub: OpenVPN/openvpnserv2#27

Signed-off-by: Lev Stipakov <[email protected]>
@NiKiZe
Copy link

NiKiZe commented Jun 24, 2025

Is a log needed? I would prefer for as much as possible keep working on non critical errors.

Another assumption that is often wrong is that the OpenVPN installer has been used. Please consider a "portable" use-case.

@cron2
Copy link

cron2 commented Jun 24, 2025

Is a log needed? I would prefer for as much as possible keep working on non critical errors.

Yes, a log is needed. Figuring out later that things failed at some point and can not be debugged because we knew beforehand that we cannot log is inacceptable - so, "not being able to write a log file" is a critical error.

Another assumption that is often wrong is that the OpenVPN installer has been used. Please consider a "portable" use-case.

If you want to contribute code for that, and have a usecase that makes sense, you're welcome - but this is not what we are interested in spending time on. We do this for our usecase, which is "the OpenVPN installer is used" (and this seems to be hard enough to get right in all corner cases).

@lstipakov
Copy link
Member Author

The change to the installer which creates event source: OpenVPN/openvpn-build@1cdee86

@lstipakov lstipakov merged commit 43dee38 into OpenVPN:master Jun 24, 2025
4 checks passed
lstipakov added a commit to lstipakov/openvpn-build that referenced this pull request Jun 24, 2025
This enables OpenVPNService, running under limited virtual
service account, to log to event log.

GitHub: OpenVPN/openvpnserv2#27

Signed-off-by: Lev Stipakov <[email protected]>
lstipakov added a commit to OpenVPN/openvpn-build that referenced this pull request Jun 24, 2025
This enables OpenVPNService, running under limited virtual
service account, to log to event log.

GitHub: OpenVPN/openvpnserv2#27

Signed-off-by: Lev Stipakov <[email protected]>
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.

4 participants