﻿<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text" xml:lang="en">Leicmin</title>
  <link type="application/atom+xml" href="https://mfgames.com/leicmin/atom.xml" rel="self" />
  <link type="text/html" href="https://mfgames.com/leicmin/" rel="alternate" />
  <updated>2026-11-09T17:31:55Z</updated>
  <id>https://mfgames.com/leicmin/</id>
  <author>
    <name>D. Moonfire</name>
  </author>
  <rights>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International</rights>
  <entry>
    <title>New Version - v0.5.1 (Leicmin)</title>
    <link rel="alternate" href="https://mfgames.com/blog/2026/08/14/new-version-v0.5.1/" />
    <updated>2026-08-14T05:00:00Z</updated>
    <id>https://mfgames.com/blog/2026/08/14/new-version-v0.5.1/</id>
    <category term="leicmin" scheme="https://mfgames.com/categories/" label="Leicmin" />
    <content type="html">&lt;p&gt;Well, it's been four months since we introduced &lt;a href="//mfgames.com/leicmin/"&gt;Leicmin&lt;/a&gt;. As far as we know, there is only one instance &amp;ldquo;in the wild&amp;rdquo; but that one instance has given us quite a list of issues, observations, and pain points.&lt;/p&gt;
&lt;h2&gt;Group Passwords&lt;/h2&gt;
&lt;p&gt;Probably the biggest one was how group passwords work. This is our attempt to handle providing accounts and passwords for static websites. Naturally, this is always a difficulty since we don't have a &lt;code&gt;/auth/me&lt;/code&gt; endpoint that some sites have (mostly because we have no clue how to set it up), and OpenID Connect (OIDC) requires a bit of dynamic code (not to mention having Leicmin act as a OIDC provider, which is on the future list).&lt;/p&gt;
&lt;p&gt;So that means we have an endpoint to generate &lt;a href="https://httpd.apache.org/docs/current/programs/htpasswd.html"&gt;htpasswd&lt;/a&gt; files directly which means the passwords are encrypted from the server down to the client, but it also means we have to decrypt the passwords in the server. This is in contrast to account passwords which are hashed with &lt;a href="https://en.wikipedia.org/wiki/Argon2"&gt;argon2&lt;/a&gt; and not recoverable.&lt;/p&gt;
&lt;p&gt;However, it wasn't obvious to some of the users that they also had to have their group password set for the &lt;code&gt;htaccess&lt;/code&gt; file to work. So we &amp;ldquo;fixed&amp;rdquo; that by putting a notice on a couple key pages that give a link and dirctions to setting the password.&lt;/p&gt;
&lt;p&gt;Obviously, once we figure out how OIDC can work with static sites, we'll provide that also. But, let's be honest, we aren't moving very quickly on this project.&lt;/p&gt;
&lt;h2&gt;Refactoring&lt;/h2&gt;
&lt;p&gt;This month's coding involved a couple nasty refactoring.&lt;/p&gt;
&lt;p&gt;THe first was changing our template system. While we were using &lt;a href="https://docs.rs/minijinja/latest/minijinja/"&gt;Minijinja&lt;/a&gt; for everything, it was getting a bit cumbersome (pain point on our case). We've switched Minijinja doing the page-level templating and generate the controls using &lt;a href="https://maud.lambda.xyz/"&gt;Maud&lt;/a&gt;. It made it a lot easier to manage the code and catch typos.&lt;/p&gt;
&lt;p&gt;But it also lead into our other refactor: challenges. Challenges were always intended to be part of the system. The idea of having a pluggable system for handling log in and registration was appealing, such as introducing an &lt;a href="https://github.com/TecharoHQ/anubis"&gt;Anubis-like&lt;/a&gt; system for registration that automatically scales with load, or allow something to register with a SSH or GnuPG key instead of email has been one of our goals.&lt;/p&gt;
&lt;p&gt;However, in the process of getting April's release, we ended up writing the login/registration process as a state machine. Well, switching to Maud made the checkbox to change password not work out well. So to do that, we migrated to challenges, which then encouraged us to also change our database strategy because of another pain point. So, now we can introduce a number of challenge steps into a generic work flow.&lt;/p&gt;
&lt;p&gt;And that lead to us introducing &lt;a href="https://www.sea-ql.org/SeaORM/"&gt;SeaORM&lt;/a&gt; into the system. Originally we worked directly with &lt;a href="https://docs.rs/sqlx/latest/sqlx/"&gt;SQLx&lt;/a&gt; and hand-written SQL statements but that got painful. We decided to go with SeaORM to reduce the boilerplate we were seeing in the code that made things a little painful.&lt;/p&gt;
&lt;h2&gt;Membership Expiration&lt;/h2&gt;
&lt;p&gt;One of the &amp;ldquo;we would really like this feature now&amp;rdquo; that we go was expiring groups. This is because some people pay directly and want access? Well, not entirely sure, but we implemented it. Since Leicmin is still pretty rough, the membership expiration has to be done via the CLI but it should work to let someone introduct temporary memberships.&lt;/p&gt;
&lt;h2&gt;Integration Tests&lt;/h2&gt;
&lt;p&gt;This isn't really useful for most people, but we figured out how to mock out the Patreon and Subscribe Star API, so we're in the process of also making sure those have some integration tests going because that section was always a manual effort.&lt;/p&gt;
&lt;h2&gt;Next Steps&lt;/h2&gt;
&lt;p&gt;Overall, there wasn't a lot of obvious changes in the code (except for the challenges). But, the code base is a lot easier to work with and hopefully that will set us up for the next few steps.&lt;/p&gt;
&lt;p&gt;From the alpha tester, the biggest ones are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Email registration&lt;/li&gt;
&lt;li&gt;Password recovery&lt;/li&gt;
&lt;li&gt;Single sign-on for Patreon and Subscribe Star&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our longer-term goals are still frustrating that they are needed, but there is clearly a desire for it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Group membership limits (e.g., age verification)&lt;/li&gt;
&lt;li&gt;Auditing (legal requirements of some of the age verification laws)&lt;/li&gt;
&lt;li&gt;Geo blocking (so someone can do the Pornhub thing of banning entire states)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;No idea of when the next time we'll circle around to this. Mostly depends on folks being interested, asking questions, or installing the &lt;em&gt;still alpha-quality&lt;/em&gt; instance and try to use it. Other than that, we'll just keep plugging away.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Semantic Versioning (Leicmin)</title>
    <link rel="alternate" href="https://mfgames.com/blog/2026/04/12/semantic-versioning/" />
    <updated>2026-04-12T05:00:00Z</updated>
    <id>https://mfgames.com/blog/2026/04/12/semantic-versioning/</id>
    <category term="leicmin" scheme="https://mfgames.com/categories/" label="Leicmin" />
    <content type="html">&lt;p&gt;&lt;a href="//d.moonfire.us/blog/2026/04/04/leicmin/"&gt;Six months ago&lt;/a&gt;, we started on a new project called &lt;a href="/leicmin/"&gt;Leicmin&lt;/a&gt; to provide an application for managing members of subscriber groups along with a naieve implementation of age verification checks for those who enjoy the &amp;ldquo;spicer&amp;rdquo; side of creation.&lt;/p&gt;
&lt;p&gt;We were lucky to have an early adopter who helped us iron out some of the more egregarious bugs that were in the application, but there is a still a long way to go. But it is nice to have an instance &amp;ldquo;in the wild&amp;rdquo; as it were.&lt;/p&gt;
&lt;p&gt;This also marks the point where Lecimin is going to have proper semantic versioning, at least for releases. This is important because there was a lot of going back and redoing Postgres migrations which would then require a full install to work.&lt;/p&gt;
&lt;p&gt;Moving forword (e.g., after v0.3.0), the retroactive database changes will only happen between one tag and another. So, if you do use it (and &lt;a href="//d.moonfire.us/contact/"&gt;let us know&lt;/a&gt; if you want to), stick with version tags instead of going directly against &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;
</content>
  </entry>
</feed>
