2k3k.adoc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. = Understanding OliveTin 2k vs 3k
  2. NOTE: OliveTin 3k was a rebuilding of OliveTin 2k from the ground up - and has high compatibility with OliveTin 2k while people migrate. OliveTin 2k is now end of life and no longer receives any updates, so please upgrade to 3k, and report anything that blocks your upgrade!
  3. == Quick summary of key points
  4. |===
  5. | Release Series | Versioning Scheme | Supported Until
  6. | **OliveTin 2k**
  7. eg: 2022.11.11
  8. eg: 2023.04.15
  9. | Calendar Versioning (calver)
  10. | End of life on 25th November 2026 (policy change) - no security fixes or bug fixes - see <<end-of-2k-support>>
  11. | **OliveTin 3k**
  12. eg: 3000.0.0
  13. eg: 3000.1.0
  14. | Semantic Versioning (semver)
  15. | Ongoing - new features and updates
  16. |===
  17. Users who are upgrading are encouraged to try OliveTin 3k, but understand that it represents several major technology changes, so subtle things might change or break in the first few releases. The objective is to maintain as much compatibility as is pragmatically possible, and highlight any breaking changes clearly.
  18. The main reason for OliveTin 3k is to allow for major technology changes inside the project that enable new features at a later date.
  19. == Understanding why a change was necessary - from calver to semver
  20. The original version of OliveTin was released in May 2021, and it used a versioning system called link:https://calver.org[calver] (Calendar Versioning). For those of you unfamiliar with the calver standard, it means that instead of using 1.0.0 as the first version, the first version was actually called **2021-05-19**. One of the benefits of this approach is that you can determine how old the version is just by looking at the version number alone. Unfortunately this is the only real benefit.
  21. However, this worked just fine for a while, but as OliveTin grew, it became clearer that most packaging systems and users were more accustomed to the more traditional link:https://semver.org[semver] (Semantic Versioning) system. As a stopgap measure, OliveTin switched the format of it's versioning to use dots (".") instead of dashes ("-") in an attempt to make it look more like a traditional semver version. This resulted in a change with version **2022.11.11** (November 11th, 2022 - what a cool date!).
  22. As OliveTin continued to mature, and more features were added, it became clear that there were some major architecture and library choices that were no longer ideal. Switching these out (like the configuration library, Viper), is a really major change, and isn't something that is good to do without a lot of users being very aware of it. In May 2025, a proposal was launched to switch OliveTin to a more traditional semver versioning system. You can view the detail of that proposal here: https://github.com/OliveTin/OliveTin/discussions/591
  23. In short, the benefits of switching to semver are;
  24. - Easier to understand versioning for most users
  25. - Allows for major technology changes without confusing users (like the Viper change)
  26. - Better compatibility with packaging systems
  27. - Better reflects the maturity of versions, and allows people to opt out of minor patches for example
  28. This proposal seemed to be positively received by the community, and so the James (founder) decided to move forward with the change.
  29. == What were the major reasons for the technology changes in OliveTin 3k?
  30. OliveTin 2k has the following technology choices which limited it's potential for stability, maintainability and growth;
  31. - The communication between the client and the server uses gRPC, which is then fronted by a REST API and messages are very hackily wrapped in JSON. This has worked remarkably well, but the web has moved on to offer websockets and streaming in a far better way, and connectrpc solves many of these challenges neatly and elegantly.
  32. - The configuration library, Viper, is a defacto standard in Go several years ago - big projects like kubectl and others use it. However the library is extremely heavyweight (lots of dependencies), it has lots of open issues, and doesn't support some commonly requested features like configuration file splitting and inclusion - which would really help user's manage large configurations.
  33. - The entity management inside OliveTin was written in a weekend, and is just a large map of strings inside OliveTin2k, again this has worked surprisingly well, but there are lots of interesting use cases with entities that would be much easier to implement with a proper typed backend - and far better mapping between actions and entities (which is extremely horrible in OliveTin 2k).
  34. - The javascript in OliveTin 2k is raw web components, based on the "new" (at the time) specs from 2011. It's fast and standards compliant, but it's also resulted in a LOT of spaghetti code that is very hard to test and maintain.
  35. == Why version 3000.0.0 (and not 3.0.0)?
  36. If you look through the original proposal, it was to create a new package called "OliveTin-semver", and start the versioning at 1.0.0. However, after some more thought, it was decided that this would actually create a lot of confusion, as users would have to figure out if they were using "OliveTin" or "OliveTin-semver" - and it duplicates the package in in places like Linux distributions, which is not a good idea.
  37. However, starting with version "2.0.0" after versions like "2022.11.11" would break the logic of lots of update tools and scripts that people use. This is because major version "2" is below "2022", and so the version ordering, and logic would always think that version 2022.x.x is newer than 2.x.x. This would be very confusing for users, and would likely lead to people not updating, or even downgrading by mistake.
  38. To avoid this confusion, it was decided to jump straight to version "3000.0.0" - which is clearly above "2022.11.11" and any other 2k version. This way, users can easily see that 3000.x.x is newer than any 2k version, and it avoids any confusion with version ordering.
  39. - OliveTin versions like 2022.11.11 and 2023.04.15 are part of "**OliveTin 2k**" (2000 series) and use a **calendar versioning** (calver) scheme. These versions are end of life, and no longer receive any updates.
  40. - OliveTin 2k was originally promised support until at least 31st December 2028. This changed on 25th November 2026, when 2k reached end of life - see <<end-of-2k-support>>.
  41. - OliveTin versions starting from 3000.0.0 and onwards are part of "**OliveTin 3k**" (3000 series) and also use a **semantic versioning scheme**. These versions will receive new features, improvements, and updates.
  42. == Should I automatically update to OliveTin 3k?
  43. Yes, please plan to upgrade. OliveTin 2k is end of life and no longer receives security fixes or bug fixes, so staying on 2k means staying on known, unpatched vulnerabilities.
  44. OliveTin 3k represents several major technology changes, so test your configuration after upgrading, and please report anything that breaks.
  45. [#end-of-2k-support]
  46. === Policy change (25th November 2026): end of support for OliveTin 2k
  47. Until 25th November 2026, this page said OliveTin 2k would receive bug fixes and security updates until at least 31st December 2028. That has changed: **as of 25th November 2026, OliveTin 2k is end of life, and no longer receives any updates - neither security fixes nor bug fixes.** We're sorry. The original commitment was made in good faith, and we know some of you planned around it.
  48. There are four reasons for the change:
  49. - **There isn't enough maintainer time to patch 2k.** In practice, 2k has received almost no patches since 3k was released. All the available time has gone into 3k, and it is more honest to say so than to keep a promise on paper that isn't being kept.
  50. - **Very few people are asking for 2k.** Interest in staying on 2k has been very low compared to the number of users who have simply upgraded to 3k.
  51. - **Many fixes can't be made safely in 2k's architecture.** Recent fixes in 3k rely on typed entities, the Connect RPC API, and a configuration system that can be reloaded cleanly. 2k has none of these, so a lot of fixes would mean rewriting large parts of 2k, which would effectively rebuild 3k inside 2k.
  52. - **Reports are arriving much faster than 2k could be patched.** AI-assisted security research now finds issues faster than ever. That is good for OliveTin users overall, but it means 2k fixes would ship late, incomplete, or not at all, and a branch that still claims security support without getting it is worse than an honest end-of-support notice.
  53. Existing 2k releases and the `latest-2k` container images remain available, and nothing will stop working. If something blocks your upgrade to 3k, please open an issue - fixing upgrade blockers is now the best way we can keep 2k users safe.
  54. See the link:https://github.com/OliveTin/OliveTin/blob/main/SECURITY.md[security policy] for details.
  55. The developers of this project have quite a lot of test infrastructure around OliveTin 3k (more than was possible with 2k), and would like to **strongly urge problems with updates to be reported, so that they can be fixed when possible**.
  56. === How do I stop my OliveTin 2k containers from upgrading to OliveTin 3k automatically?
  57. WARNING: OliveTin 2k is end of life and no longer receives any updates. Only pin to 2k while you prepare to upgrade.
  58. Change your `latest` tag to `latest-2k` in your container definitions.
  59. 3 tags now exist for container images and container registries;
  60. - `olivetin/olivetin:latest-2k` - This tag will always point to the latest OliveTin 2k version (eg 2025.11.11)
  61. - `olivetin/olivetin:latest-3k` - This tag will always point to the latest OliveTin 3k version (eg 3000.2.0)
  62. - `olivetin/olivetin:latest` - This tag will always point to the latest OliveTin version (currently 3k)
  63. xref:install/container.adoc[More information about installing OliveTin in containers]
  64. === What does GitHub "latest" point to?
  65. GitHub's "latest" release tag isn't super helpful. It currently points to the "release that was pushed last". So sometimes this will be 2k, and sometimes this will be 3k. We're trying to find a way to fix this.
  66. == What are the changes I need to make to upgrade from OliveTin 2k to 3k?
  67. === OliveTin Configuration files
  68. To date, no changes are required to the configuration file (and configs are being automatically migrated internally to OliveTin 3k - without rewriting the original config file).
  69. However, it is possible that some configuration changes will be necessary as we learn more about people's setups with OliveTin 2k.
  70. === Reverse Proxy configurations
  71. If you are using a reverse proxy (like Nginx, Apache, Caddy, Traefik etc), then you will need to make some changes to your configuration. This is because OliveTin 3k uses websockets for communication between the client and the server, instead of gRPC over HTTP/2. Many proxies use short default timeouts and will close websocket connections; increase the websocket or proxy timeout in your proxy config to avoid disconnects (OliveTin will reconnect automatically). See xref:troubleshooting/err-websocket-connection.adoc#reverse-proxies-will-close-websockets[Reverse proxies will close websockets] for more.
  72. Please refer to the [Reverse Proxies](reverse-proxies/intro.adoc) section of the documentation for updated configuration examples for various reverse proxies.
  73. - xref:reverse-proxies/nginx.adoc#upgrade3k[Nginx: Updating your configuration from OliveTin 2k to OliveTin 3k]