Files
firezone/elixir
dependabot[bot] 3859a593f1 build(deps-dev): bump dialyxir from 1.4.5 to 1.4.6 in /elixir (#10472)
Bumps [dialyxir](https://github.com/jeremyjh/dialyxir) from 1.4.5 to
1.4.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jeremyjh/dialyxir/releases">dialyxir's
releases</a>.</em></p>
<blockquote>
<h2>1.4.6</h2>
<h3>Fixed</h3>
<ul>
<li><code>CallWithoutOpaque</code> function clause error on OTP-28</li>
<li><code>invalid_contract</code> warning showed spec twice instead of
success typing</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Update <code>ex_doc</code> to the latest version for an improved
UI</li>
</ul>
<h3>Docs</h3>
<ul>
<li>Add a note about the <code>:unknown</code> flag to the &quot;Default
Flags&quot; section in the README</li>
<li>Fix dead hex doc links by including CI config docs in
<code>mix.exs</code>'s <code>:docs</code></li>
<li>Fix a typo in the README</li>
</ul>
<h3>CI</h3>
<ul>
<li>Update the Ubuntu version used in CI to 24.04</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jeremyjh/dialyxir/blob/master/CHANGELOG.md">dialyxir's
changelog</a>.</em></p>
<blockquote>
<h2>Unreleased changes post [1.4.6]</h2>
<h2>[1.4.6] - 2025-08-09</h2>
<h3>Fixed</h3>
<ul>
<li><code>CallWithoutOpaque</code> function clause error on OTP-28</li>
<li><code>invalid_contract</code> warning showed spec twice instead of
success typing</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Update <code>ex_doc</code> to the latest version for an improved
UI</li>
</ul>
<h3>Docs</h3>
<ul>
<li>Add a note about the <code>:unknown</code> flag to the &quot;Default
Flags&quot; section in the README</li>
<li>Fix dead hex doc links by including CI config docs in
<code>mix.exs</code>'s <code>:docs</code></li>
<li>Fix a typo in the README</li>
</ul>
<h3>CI</h3>
<ul>
<li>Update the Ubuntu version used in CI to 24.04</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a0e4cf90f4"><code>a0e4cf9</code></a>
Bump version to 1.4.6</li>
<li><a
href="51266a5a4d"><code>51266a5</code></a>
Merge pull request <a
href="https://redirect.github.com/jeremyjh/dialyxir/issues/569">#569</a>
from dvic/fix/call-without-opaque-otp28-issue-561</li>
<li><a
href="c564806f70"><code>c564806</code></a>
Merge branch 'master' into fix/call-without-opaque-otp28-issue-561</li>
<li><a
href="bf06a92928"><code>bf06a92</code></a>
Merge pull request <a
href="https://redirect.github.com/jeremyjh/dialyxir/issues/570">#570</a>
from pwcsquared/ci-fix-ubuntu-ver</li>
<li><a
href="d3776d2f78"><code>d3776d2</code></a>
Update ubuntu version used in CI to 24.04 (currently supported)</li>
<li><a
href="431f6c922c"><code>431f6c9</code></a>
Merge branch 'master' into fix/call-without-opaque-otp28-issue-561</li>
<li><a
href="c5da65f9b7"><code>c5da65f</code></a>
Merge pull request <a
href="https://redirect.github.com/jeremyjh/dialyxir/issues/564">#564</a>
from camatcode/master</li>
<li><a
href="684f1bbeba"><code>684f1bb</code></a>
Refactor OTP-28 clause to delegate to existing implementation</li>
<li><a
href="bea2032e4b"><code>bea2032</code></a>
Fix CallWithoutOpaque function clause error on OTP-28</li>
<li><a
href="73529050d3"><code>7352905</code></a>
Docs: Fix dead hex doc links by including CI config docs in mix.exs
'docs'</li>
<li>Additional commits viewable in <a
href="https://github.com/jeremyjh/dialyxir/compare/1.4.5...1.4.6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dialyxir&package-manager=hex&previous-version=1.4.5&new-version=1.4.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-29 11:26:30 +00:00
..
2025-09-28 11:59:39 -07:00

Firezone Elixir Development

Before reading this doc, make sure you've read through our CONTRIBUTING guide.

Getting Started

This is not an in depth guide for setting up all dependencies, but it should give you a starting point.

Prerequisites:

  • All prerequisites in the CONTRIBUTING guide
  • Install ASDF and all plugins/tools from .tool-version in the top level of the Firezone repo
  • Install pnpm

From the top level director of the Firezone repo start the Postgres container:

docker compose up -d postgres

Inside the /elixir directory run the following commands:

# Install dependencies
# --------------------
> mix deps.get

# Install npm packages and build assets
# -------------------------------------
> cd apps/web/
> mix setup

# Setup and seed the DB
# ---------------------
> cd ../..
> mix ecto.seed

# Start all of the portal Elixir apps:
# ------------------------------------
> iex -S mix

The web and api applications should now be running:

Stripe integration for local development

Prerequisites:

  • Stripe account
  • Stripe CLI

Steps:

  • Use static seeds to provision account ID that corresponds to staging setup on Stripe:

    STATIC_SEEDS=true mix do ecto.reset, ecto.seed
    
  • Start Stripe CLI webhook proxy:

    stripe listen --forward-to localhost:13001/integrations/stripe/webhooks
    
  • Start the Phoenix server with enabled billing from the elixir/ folder using a test mode token:

    cd elixir/
    BILLING_ENABLED=true STRIPE_SECRET_KEY="...copy from stripe dashboard..." STRIPE_WEBHOOK_SIGNING_SECRET="...copy from stripe cli tool.." mix phx.server
    

When updating the billing plan in stripe, use the Stripe Testing Docs for how to add test payment info

WorkOS integration for local development

Prerequisites:

  • WorkOS account

WorkOS is currently being used for JumpCloud directory sync integration. This allows JumpCloud users to use SCIM on the JumpCloud side, rather than having to give Firezone an admin JumpCloud API token.

Connecting WorkOS in dev mode for manual testing

If you are not planning to use the JumpCloud provider in your local development setup, then no additional setup is needed. However, if you need to use the JumpCloud provider locally, you will need to obtain an API Key and Client ID from the WorkOS Dashboard.

After obtaining WorkOS API credentials, you will need to make sure they are set in the environment ENVs when starting your local dev instance of Firezone. As an example:

WORKOS_API_KEY="..." WORKOS_CLIENT_ID="..." mix phx.server

Acceptance tests

You can disable headless mode for the browser by adding

@tag debug: true
feature ....