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

TLS enforcement and package refactoring #16

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

peterhoneder
Copy link
Contributor

This commit improves goben to be able to enforce TLS and refactors it to allow usage as a package from external golang projects.

Full changes:

  • enforce TLS and full validation
  • made the code more testable
  • made it usable as a package (split the main to the cmd folder)
  • added end to end main unit test that launches a server and client
  • added Makefiles for common dev tasks
  • added cert generation for testing
  • refactored the config to provide defaults
  • moved config validation to the respective server and client code paths
  • added a bugfix to fix a crash when total duration <= 2 * update interval
  • changed docs to reflect the changes

Please let me know if you can consider this PR something to be merged upstream.

@udhos
Copy link
Owner

udhos commented May 23, 2024

Hi!

Thank you for the PR!

Sorry to take so long to reply!

I am currently unable to merge it due to conflicts, can you have a look at them?

@udhos udhos self-assigned this May 23, 2024
to allow usage as a package from external golang projects.

Full changes:
- enforce TLS and full validation
- made the code more testable
- made it usable as a package (split the main to the cmd folder)
- added end to end main unit test that launches a server and client
- added Makefiles for common dev tasks
- added cert generation for testing
- refactored the config to provide defaults
- moved config validation to the respective server and client code paths
- added a bugfix to fix a crash when total duration <= 2 * update
  interval
- changed docs to reflect the changes
- moved the version to be an exported package property in config.go
@peterhoneder
Copy link
Contributor Author

Hi!

Thank you for the PR!

Sorry to take so long to reply!

I am currently unable to merge it due to conflicts, can you have a look at them?

Hi! sorry it took so long, but I rebased the PR and incorporated your latest changes to main.go since my initial PR into the other source files. This was necessary since the config logic moved to config.go.

@udhos udhos merged commit 6ca5550 into udhos:master Jun 19, 2024
@udhos
Copy link
Owner

udhos commented Jun 19, 2024

Merged, thanks!

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.

None yet

2 participants