{
    "componentChunkName": "component---src-templates-post-tsx",
    "path": "/blog/posts/2025-03-11-jwt-configuration-and-sqlite-support/",
    "result": {"data":{"post":{"html":"<p>With the next minor release, we are introducing some exciting changes, particularly regarding JWT (JSON Web Token) configuration and Javadoc.\nWe would also like to give you an outlook on what lies ahead regarding SQLite.</p>\n<h2 id=\"jwt--flexible-lifetime-configuration\" style=\"position:relative;\"><a href=\"#jwt--flexible-lifetime-configuration\" aria-label=\"jwt  flexible lifetime configuration permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>JWT – Flexible Lifetime Configuration</h2>\n<p>You will be able to set the JWT lifetime on an hourly basis in the global configuration.\nThis gives you more control over token validity and allows you to adjust security settings to match your requirements.</p>\n<p>If you reduce the token lifetime in the configuration, all previously issued tokens will immediately become invalid.\nThis ensures a consistent security strategy and prevents older tokens from staying active longer than necessary.</p>\n<p>We are also introducing a new option for infinite JWTs in the configuration file (<code class=\"language-text\">config.yml</code>), but we strongly advise against using it.\nKeeping tokens valid indefinitely poses a significant security risk.\nIf you choose this option, ensure you have alternative protection measures in place to prevent unauthorized access.</p>\n<p>This feature will be available with the next release.</p>\n<h2 id=\"javadoc\" style=\"position:relative;\"><a href=\"#javadoc\" aria-label=\"javadoc permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Javadoc</h2>\n<p>From now on, we will publish the <a href=\"https://scm-manager.org/javadoc\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Javadoc for the latest SCM Manager core version</a> on our website with every release.\nIn Java, Javadoc comments are used as a standardized method to document code.\nThis is a first step and will be updated and expanded to improve clarity and help developers better understand the core API.</p>\n<p>The entry point for this will also be available via the development section in the documentation.</p>\n<h2 id=\"sqlite-support--a-work-in-progress\" style=\"position:relative;\"><a href=\"#sqlite-support--a-work-in-progress\" aria-label=\"sqlite support  a work in progress permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>SQLite Support – A Work in Progress</h2>\n<p>SCM-Manager currently works with XML files to save settings and status, which can sometimes become hard to handle in larger instances or over time.\nIn these cases, we sometimes encounter performance problems when reading and writing.\nEspecially aggregations over different data sets are cumbersome and often slow.\nWe introduced a lot of caching mechanisms, but we think, we've met a dead end here.\nThe advantages, on the other hand, are simple migrations of data or manual changes on the basis of XML files and simple expandability by plugin developers.</p>\n<p>So after weighing pros and cons for a while, we identified <a href=\"https://www.sqlite.org/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">SQLite</a> as a possible alternative, tested it positively and are happy to confirm that it's in development!\nWe created an API, that on the one hand extends the existing store API so that migration is simple, but on the other hand allows somewhat complex queries, that are still type-safe.\nThis could be done without moving away from the simple entity based approach with XML annotations.\nInstead of XML files, entities will be stored as JSON blobs in the database.\nThese JSON blobs can be handles extremely fast and effective by SQLite.</p>\n<p>However, we don't want to make any premature promises.\nThere is no fixed timeline for when SQLite will be fully integrated.\nAs a user, you should not notice any changes at all (despite some performance improvements, if we're lucky).\nThe only downside will be, that data for plugins using this new store will no longer be stored exclusively in the directory of the repository.\nExports and imports will work the same way as before, nonetheless.</p>\n<p>Also, we will not migrate everything into the new database. Only those use cases where we've experienced performance issues or data inconsistencies will be migrated.\nSo this only effects a tiny number of plugins.\nThings like configurations will probably never be moved away from XML files.\nIt is way too convenient to be able to modify them manually when something does not work as expected (like an authorization plugin that blocks any access).</p>\n<p>Since development is still in progress, now is the perfect time to share your thoughts.\nWhat do you need from SQLite support?\nAre there specific use cases we should consider?\nCommunity feedback is crucial to shaping our roadmap, so let's discuss!\nWe encourage you to join the conversation in our community forums or through other channels.</p>\n<h2 id=\"closing-words\" style=\"position:relative;\"><a href=\"#closing-words\" aria-label=\"closing words permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Closing Words</h2>\n<p>Are you still missing an important feature? How can SCM-Manager help you improve your work processes?\nWe would love to hear from you about what you need most!</p>\n<p>Do you have any questions or suggestions about the SCM-Manager?\nContact the DEV team directly on <a href=\"https://github.com/scm-manager/scm-manager/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">GitHub</a> and make sure\nto check out our <a href=\"https://community.cloudogu.com/c/scm-manager/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">community platform</a>.</p>","tableOfContents":"<ul>\n<li><a href=\"#jwt--flexible-lifetime-configuration\">JWT – Flexible Lifetime Configuration</a></li>\n<li><a href=\"#javadoc\">Javadoc</a></li>\n<li><a href=\"#sqlite-support--a-work-in-progress\">SQLite Support – A Work in Progress</a></li>\n<li><a href=\"#closing-words\">Closing Words</a></li>\n</ul>","description":"With the next minor release, we are introducing some exciting changes, particularly regarding JWT (JSON Web Token) configuration and Javadoc.\nWe would also like…","frontmatter":{"title":"JWT Configuration and SQLite Support","date":"2025-03-11","author":{"id":"Florian Scholdei"},"categories":["scm-manager"],"alert":null,"displayToc":null,"description":null,"keywords":["performance","security","authentication"],"image":null}}},"pageContext":{"slug":"/posts/2025-03-11-jwt-configuration-and-sqlite-support/","socialSharingCard":{"width":1200,"height":628,"src":"/social-sharing-cards/fc340a4093fcc9bf3a462102b588218aef33795c.png"}}},
    "staticQueryHashes": ["1738896638","1973669194","2742214048","2956773653"]}