-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update boltdb dependency to the currently maintained bbolt fork #974
Comments
Hey, thanks for the issue. |
The benefit that I see is mainly in getting timely security updates and bugfixes. I'm currently looking to install Atlantis in a security conscious environment. I think the above memory/type safety issue would be something we'd want to address. I tried out dropping in bbolt and tests seem to run, and I didn't notice any problems with Atlantis. |
Looks like I do see unsafe pointer conversions when I run tests with the -race flag with bolt dependency in place:
Don't see those errors with bbolt dependency in place. |
Okay thanks for looking into it. Sounds like it makes sense to switch then. |
Hello, I noticed that Atlantis is depending on boltdb (for the atlantis.db file). The author of boltdb considers the project to be complete and stable, does not plan to continue work on it.
While boltdb may continue to work just fine, I think it'd be good to update to the fork maintained by CoreOS, bbolt. The most recent release of bbolt fixes some unsafe pointer conversions caught by Go 1.14 checkptr, which I think could have possible security implications, and at least seems to be required to upgrade Atlantis to Go 1.14.
The api of bbolt is backwards compatible with bolt, so hopefully it would be a drop-in replacement.
Edit: sorry I misspoke...I don't think bbolt is necessary to upgrade Atlantis to Go 1.14, rather the above change was necessary to upgrade bbolt to Go 1.14. I still think it'd be a good idea to switch over to a maintained dependency though.
The text was updated successfully, but these errors were encountered: