Skip to content
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

openvpn: T3834: verify() is not allowed to change anything on the system #3850

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Jul 22, 2024

Change Summary

Commit e3c71af ("remove secrets file if the tunnel is deleted and fix opmode commands") added a code path into verify() which removed files on the system if TOTP was not defined.

This commit moves the code path to the appropriate generate() function.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Proposed changes

How to test

Smoketest result

[email protected]:~$ /usr/libexec/vyos/tests/smoke/cli/test_interfaces_openvpn.py
test_openvpn_client_interfaces (__main__.TestInterfacesOpenVPN.test_openvpn_client_interfaces) ... ok
test_openvpn_client_verify (__main__.TestInterfacesOpenVPN.test_openvpn_client_verify) ... ok
test_openvpn_options (__main__.TestInterfacesOpenVPN.test_openvpn_options) ... ok
test_openvpn_server_subnet_topology (__main__.TestInterfacesOpenVPN.test_openvpn_server_subnet_topology) ... ok
test_openvpn_server_verify (__main__.TestInterfacesOpenVPN.test_openvpn_server_verify) ... ok
test_openvpn_site2site_interfaces_tun (__main__.TestInterfacesOpenVPN.test_openvpn_site2site_interfaces_tun) ... ok
test_openvpn_site2site_verify (__main__.TestInterfacesOpenVPN.test_openvpn_site2site_verify) ... ok

----------------------------------------------------------------------
Ran 7 tests in 67.527s

OK

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Commit e3c71af ("remove secrets file if the tunnel is deleted and fix
opmode commands") added a code path into verify() which removed files on the
system if TOTP was not defined.

This commit moves the code path to the appropriate generate() function.
@c-po c-po requested a review from a team as a code owner July 22, 2024 14:42
@c-po
Copy link
Member Author

c-po commented Jul 22, 2024

@Mergifyio backport sagitta circinus

@c-po c-po enabled auto-merge July 22, 2024 14:42
Copy link

👍
No issues in PR Title / Commit Title

Copy link
Contributor

mergify bot commented Jul 22, 2024

backport sagitta circinus

✅ Backports have been created

Copy link


warning: Unused get_interface_config imported from vyos.utils.network in src/conf_mode/vrf.py:29.

Copy link

CI integration ❌ failed!

Details

CI logs

  • CLI Smoketests ❌ failed
  • Config tests ❌ failed
  • RAID1 tests ❌ failed

@c-po c-po merged commit 748fb96 into vyos:current Jul 22, 2024
12 of 14 checks passed
dmbaturin added a commit that referenced this pull request Jul 22, 2024
openvpn: T3834: verify() is not allowed to change anything on the system (backport #3850)
@c-po c-po deleted the openvpn-totp-T3834 branch July 25, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants