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

Feat/add docker test for wg #361

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Feat/add docker test for wg #361

merged 5 commits into from
Apr 9, 2024

Conversation

VendettaReborn
Copy link
Contributor

🤔 This is a ...

  • New feature
  • Bug fix
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

Motivation: I wish to change some code in wireguard module, but the test is hard, i can only test it by running the whole app

📝 Changelog

feat: add docker test for wg

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Changelog is provided or not needed

Comment on lines 72 to 73
tracing::debug!("config: private key: {:x?}, endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}",
config.private_key.to_bytes(), config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tracing::debug!("config: private key: {:x?}, endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}",
config.private_key.to_bytes(), config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits);
tracing::debug!("config: endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}",
config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't print out the private key in logs

Copy link
Contributor Author

@VendettaReborn VendettaReborn Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, it's a line for debug, forgot to delete

Copy link
Member

@ibigbug ibigbug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@VendettaReborn
Copy link
Contributor Author

lgtm

great

@VendettaReborn VendettaReborn enabled auto-merge (squash) April 9, 2024 11:14
@VendettaReborn VendettaReborn merged commit a53f14a into master Apr 9, 2024
15 checks passed
@VendettaReborn VendettaReborn deleted the feat/wg_docker_test branch April 9, 2024 11:31
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.

2 participants