<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Casdoor</title>
    <description>The latest articles on DEV Community by Casdoor (@casdoor).</description>
    <link>https://dev.to/casdoor</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4217228%2F55a5464d-fb9f-4a25-a144-804838a9b165.png</url>
      <title>DEV Community: Casdoor</title>
      <link>https://dev.to/casdoor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/casdoor"/>
    <language>en</language>
    <item>
      <title>Casvisor 2.0: system accounts, SQL auditing, jobs and access requests in an open-source bastion host</title>
      <dc:creator>Casdoor</dc:creator>
      <pubDate>Thu, 19 Nov 2026 18:43:17 +0000</pubDate>
      <link>https://dev.to/casdoor/casvisor-20-system-accounts-sql-auditing-jobs-and-access-requests-in-an-open-source-bastion-host-4l06</link>
      <guid>https://dev.to/casdoor/casvisor-20-system-accounts-sql-auditing-jobs-and-access-requests-in-an-open-source-bastion-host-4l06</guid>
      <description>&lt;p&gt;Casvisor is an open-source bastion host, Apache-2.0, written in Go. People open SSH, RDP, VNC or Telnet sessions to your servers from a browser tab, or bring their own &lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;scp&lt;/code&gt; and VS Code through its SSH gateway. They only reach the assets a permission gives them, never see the servers' passwords, and every session is recorded.&lt;/p&gt;

&lt;p&gt;When we first published the project, we wrote down what it did not do yet. This week we tagged 2.0.0, and most of that list is now in the release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;System accounts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An asset used to have one set of credentials, shared by everyone allowed to connect. Now an asset can carry several system accounts, for example &lt;code&gt;root&lt;/code&gt;, &lt;code&gt;deploy&lt;/code&gt; and &lt;code&gt;readonly&lt;/code&gt;, and each permission says which account the user may connect with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the asset's own account, an account with the same name as the user, all accounts, or a named account; a permission without an account keeps its old behaviour&lt;/li&gt;
&lt;li&gt;the workbench lists one row per asset and account; on the SSH gateway the account goes in the user name: &lt;code&gt;ssh -p 2222 alice@deploy@web-01@casvisor.example.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;the password stays on the server. The browser only receives the account name, and the permission is checked again for that account when the session opens its WebSocket&lt;/li&gt;
&lt;li&gt;rotate a password now, and Casvisor sets a fresh 24-character password on the server and signs in with it once to prove it works&lt;/li&gt;
&lt;li&gt;push an account: if the server does not have it yet, Casvisor creates it (&lt;code&gt;useradd -m&lt;/code&gt; on Linux, &lt;code&gt;New-LocalUser&lt;/code&gt; over Windows OpenSSH)&lt;/li&gt;
&lt;li&gt;rotate on a schedule, 30 days by default, with a retry an hour after a failure&lt;/li&gt;
&lt;li&gt;revoking the permission, disabling or deleting the account disconnects the sessions that use it, immediately&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Password changes are carried out through the asset's own account, which needs root, passwordless sudo, or Administrator on Windows. Only SSH assets support them for now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Databases&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;MySQL, MariaDB and PostgreSQL are now asset types with a SQL console in the browser: databases, tables and columns on the left, run a selection or the whole editor, one tab per result.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;every statement goes through the command rules before it is sent, and into the command records with its result&lt;/li&gt;
&lt;li&gt;rules also match the statement with comments removed, so &lt;code&gt;/* note */ DROP TABLE t&lt;/code&gt; is still caught; MySQL's executable &lt;code&gt;/*! ... */&lt;/code&gt; comments are kept&lt;/li&gt;
&lt;li&gt;results stop at 1,000 rows; Copy and CSV export are separate permissions, and export is checked on the server against the account the session is using&lt;/li&gt;
&lt;li&gt;a database session has no screen to record; its playback is the list of statements&lt;/li&gt;
&lt;li&gt;network gateways and system accounts work for databases too&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Jobs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/jobs&lt;/code&gt; runs one command, a Bash or PowerShell script, or a file copy on many SSH assets at once, picked by name or by tag, with a concurrency limit and a per-asset timeout. Each asset's output, exit code and duration are kept separately (the last 1 MB of output), failed assets can be retried on their own, and a job can be cancelled or copied. Every asset's run is a session, and command rules apply.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access requests&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Users can see which assets exist in the organization (name, protocol, tags, account names, but not addresses or passwords), ask for one with a reason and an end time, and must include the Connect action. An administrator approves, possibly narrowing the actions or the end time, and Casvisor creates the permission. Withdrawing it removes the permission and disconnects open sessions. Pending requests can be cancelled by the user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Smaller additions&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TOTP two-step verification for local accounts, with any authenticator app&lt;/li&gt;
&lt;li&gt;session, command and operation logs export to CSV, and forward to syslog as RFC 5424 JSON or CEF, with exponential backoff on a dropped TCP connection&lt;/li&gt;
&lt;li&gt;images and files can move between the browser and an RDP session through the clipboard&lt;/li&gt;
&lt;li&gt;the SSH gateway forwards a local port to any asset: &lt;code&gt;ssh -p 2222 -N -L 13306:db-01:3306 alice@casvisor.example.com&lt;/code&gt;, then DBeaver or mstsc connects to localhost. This is a transparent tunnel: it is listed and logged as a session, but not recorded, and SQL is not parsed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is still missing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a database client over port forwarding is not audited; only the browser console is&lt;/li&gt;
&lt;li&gt;password rotation is SSH-only, and jobs on Windows assets have not been tested in production&lt;/li&gt;
&lt;li&gt;no Ansible playbooks or scheduled jobs&lt;/li&gt;
&lt;li&gt;access requests have no email or chat notification, and there is no login or command approval&lt;/li&gt;
&lt;li&gt;syslog has no TLS, there are no reports, and recordings still live on the local disk&lt;/li&gt;
&lt;li&gt;no Kubernetes terminal, asset tree or bulk import yet&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Upgrading&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;docker pull casbin/casvisor:2.0.0&lt;/code&gt;, or download the archive for your platform from the releases page. The data stays in the database; existing permissions without an account behave as before.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/casvisor/casvisor" rel="noopener noreferrer"&gt;https://github.com/casvisor/casvisor&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://casvisor.org" rel="noopener noreferrer"&gt;https://casvisor.org&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo: &lt;a href="https://demo.casvisor.com" rel="noopener noreferrer"&gt;https://demo.casvisor.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Release: &lt;a href="https://github.com/casvisor/casvisor/releases/tag/v2.0.0" rel="noopener noreferrer"&gt;https://github.com/casvisor/casvisor/releases/tag/v2.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Casvisor is Apache-2.0. Recording, the SSH gateway, network gateways and everything above are in the open-source project; there is no enterprise edition.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>go</category>
      <category>security</category>
      <category>devops</category>
    </item>
    <item>
      <title>Casnode 2.0: a Discourse-style forum built with Go and Next.js</title>
      <dc:creator>Casdoor</dc:creator>
      <pubDate>Sat, 31 Oct 2026 07:27:06 +0000</pubDate>
      <link>https://dev.to/casdoor/casnode-20-a-discourse-style-forum-built-with-go-and-nextjs-25gp</link>
      <guid>https://dev.to/casdoor/casnode-20-a-discourse-style-forum-built-with-go-and-nextjs-25gp</guid>
      <description>&lt;p&gt;Casnode 2.0 is out. It's a rewrite: Go on the backend, Next.js on the frontend, and an interface modeled closely on Discourse's default theme.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it looks like Discourse&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because people already know how to use it. The topic list, the timeline next to a long thread, the composer that docks at the bottom of the screen, the little blue dot on your avatar. If your members have spent any time on an open-source project's forum, they've seen all of this before.&lt;/p&gt;

&lt;p&gt;What they haven't seen is the server side. Discourse needs Ruby, Ember, PostgreSQL, Redis and a Docker image measured in gigabytes. That's fine for a large community with someone on call. It's a lot for a small project that just wants a place to answer questions.&lt;/p&gt;

&lt;p&gt;Casnode keeps the part your users see and replaces the part you have to run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deploying&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Download the archive for your platform from the releases page. It's around 30 MB, with builds for Linux, macOS and Windows on both amd64 and arm64. Unpack it, run &lt;code&gt;./casnode&lt;/code&gt;, and sign up: the first account is the administrator. Nothing else to set up first. You'll need Node.js 20 or later on the machine; the Go process starts the Next.js server on its own and proxies to it.&lt;/p&gt;

&lt;p&gt;SQLite is the default, so your whole database is one file and backing it up means copying it. If you'd rather use MySQL, PostgreSQL or SQL Server, change two lines of config. Tables are created on first start.&lt;/p&gt;

&lt;p&gt;There's no Redis, no background job queue, and no compose file with six services in it. Live updates use long polling handled by the Go process itself. A Dockerfile is included if you prefer containers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resource use&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The backend is a compiled Go binary and the pages are rendered by Next.js. No Ruby runtime, no Redis, no Sidekiq sitting in memory. A small VPS is enough, and since there are arm64 builds, so is that spare ARM board in your drawer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SEO&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A forum earns most of its long-term traffic from search. Someone pastes an error message into Google and lands on a thread where your community already solved it.&lt;/p&gt;

&lt;p&gt;Every topic, category, tag and profile page in Casnode is rendered on the server, so crawlers get real HTML. Canonical URLs, Open Graph tags, JSON-LD (&lt;code&gt;DiscussionForumPosting&lt;/code&gt;), sitemaps, RSS feeds and crawler-friendly pagination are built in. Nothing to install.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accounts and single sign-on&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Accounts work out of the box: sign up with an email and a password, log in with your user name or email, reset a forgotten password by email. No identity service to run first.&lt;/p&gt;

&lt;p&gt;Single sign-on is there when you want it. Admins add providers on the Logins page: anything that speaks OpenID Connect or OAuth 2.0, with presets for GitHub, Google, Microsoft Entra ID, GitLab, Discord and Keycloak. If your company already has Okta, Keycloak or &lt;a href="https://casdoor.ai" rel="noopener noreferrer"&gt;Casdoor&lt;/a&gt;, members log in with the accounts they have. For SAML or LDAP, put an identity server like Casdoor or Keycloak in between.&lt;/p&gt;

&lt;p&gt;For an internal forum, turn password logins off and leave single sign-on only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's in it&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Topic lists: Latest, New, Unread, Hot, Top (by year, quarter, month, week, day), filtered by category or tag, with pinned topics and endless scrolling; new topics are announced at the top without a reload&lt;/li&gt;
&lt;li&gt;Topics: a post stream that loads in both directions, the timeline, the topic map (views, likes, users, reading time), likes, bookmarks, quote-on-select, edit history, suggested topics; new replies show up as they're posted&lt;/li&gt;
&lt;li&gt;Composer: Markdown with live preview, image and file uploads by paste or drag, &lt;code&gt;@mentions&lt;/code&gt;, drafts, Discourse's &lt;code&gt;[quote]&lt;/code&gt;, &lt;code&gt;[details]&lt;/code&gt; and &lt;code&gt;[poll]&lt;/code&gt; blocks, emoji shortcodes; a link on its own line becomes a preview card&lt;/li&gt;
&lt;li&gt;Tracking: reading position, notification levels (Watching, Tracking, Normal, Muted), notifications for mentions, replies, quotes, likes and messages, with email when you're away&lt;/li&gt;
&lt;li&gt;Chat: category channels and direct messages, with reactions and replies&lt;/li&gt;
&lt;li&gt;Accounts: sign up, log in by user name or email, password reset by email, rate-limited logins, single sign-on through OpenID Connect, OAuth 2.0 or Casdoor&lt;/li&gt;
&lt;li&gt;People: personal messages, profiles, user cards, a users directory, groups (mention a group, message a group, grant category access by group), 28 built-in badges plus your own&lt;/li&gt;
&lt;li&gt;Search with &lt;code&gt;@user&lt;/code&gt;, &lt;code&gt;#category&lt;/code&gt;, &lt;code&gt;tags:&lt;/code&gt;, &lt;code&gt;in:title&lt;/code&gt;, &lt;code&gt;status:open&lt;/code&gt;, &lt;code&gt;order:likes&lt;/code&gt; and quick results in the header&lt;/li&gt;
&lt;li&gt;Moderation: flags and a review queue, close / pin / archive / unlist / delete / recover, move and merge posts, suspend and silence, staff-only categories&lt;/li&gt;
&lt;li&gt;Branding: brand and header colors, fonts, a homepage banner, header links and custom CSS, all from the admin pages&lt;/li&gt;
&lt;li&gt;English and Chinese UI, dark mode that follows the system, works on phones, Discourse's keyboard shortcuts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Casbin community forum, &lt;a href="https://forum.casbin.com" rel="noopener noreferrer"&gt;forum.casbin.com&lt;/a&gt;, already runs on 2.0. We moved over three years of Discord history into it, about 780 topics, so it's a good place to see a real community on Casnode. You can also try posting on &lt;a href="https://demo.casnode.com" rel="noopener noreferrer"&gt;demo.casnode.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coming from 1.x&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;2.0 replaces both the code and the database tables, so a 2.0 install starts empty. There's no in-place upgrade. If you run a 1.x forum, leave it running and set up 2.0 as a new site.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/casnode/casnode" rel="noopener noreferrer"&gt;https://github.com/casnode/casnode&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo: &lt;a href="https://demo.casnode.com" rel="noopener noreferrer"&gt;https://demo.casnode.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download (currently v2.1.0): &lt;a href="https://github.com/casnode/casnode/releases/latest" rel="noopener noreferrer"&gt;https://github.com/casnode/casnode/releases/latest&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Discord: &lt;a href="https://discord.gg/d8dsAWgn43" rel="noopener noreferrer"&gt;https://discord.gg/d8dsAWgn43&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Casnode is Apache-2.0 licensed. It's an independent implementation inspired by Discourse's interface and contains no Discourse code.&lt;/p&gt;

</description>
      <category>opensource</category>
    </item>
  </channel>
</rss>
