Commit Graph

2066 Commits

Author SHA1 Message Date
Jamil
330cafbbe5 Boot minimal app for DB changes (#1305)
Adds a minimal supervision tree for making DB changes from the
`FzHttp.Release` module. This allows the `bin/create-or-reset-admin` and
`bin/create-api-token` commands to be with `docker compose exec` or
`docker compose run --rm` indiscriminately.

Starting the FzHttp.Repo directly is more involved it's not compiled
into the release as an OTP app.
2023-01-13 13:45:18 -08:00
Jamil
e2e1dd441b Fix docs link (#1303) 2023-01-13 12:22:52 -08:00
Andrew Dryga
7760817191 Hotfix default PK values on connectivity_checks table (#1300)
The migration is edited in place. Otherwise, the users that partially
upgraded to 0.7 won't be able to proceed.

Another migration is added to add default values for every table that
did not have it to make things consistent and make sure that both users
that have failed migration executed and the ones that executed it
successfully will end up with the same schema.

Closes #1295
2023-01-13 11:48:13 -08:00
Jamil
b9328c4145 Add note on generating API token (#1294) 2023-01-12 23:12:11 -08:00
Jamil
51a0cf251e Bump to 0.7.0 release (#1291)
Bumps Release Drafter to 0.7.0 for publish
2023-01-12 22:52:50 -08:00
Andrew Dryga
6003ea7e26 Generate API docs from tests and Phoenix Controller docs (#1286)
1. The test data is taken from tests, you can override attributes by
adding keyword params to `doc` macro;
2. Additionally, you can add a section title using a `@moduledoc` in a
controller and a controller action title using `@doc` on a controller
function. (It will be added to all instances of its usage).
3. To make parameters nice a helper was added to build it using
`DocHelper`, you can find an example in UserController.

Overall, the code is messy, I'll need to revisit it, but was doing it in
a rush so hope it's good enough for v0.

Results you can see at https://firezone.docs.apiary.io/.

To generate it locally run `DOC=1 mix test
test/fz_http_web/controllers/json`.

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
2023-01-12 22:40:21 -08:00
Jamil
05ad3f3239 Add HTTP_CLIENT_SSL_OPTS example (#1290)
Fixes #1284 

Coming in 0.7.0
2023-01-12 17:29:59 -08:00
Jamil
ed23d9f346 Use eval for create-or-reset-admin; expose with RESET_ADMIN_ON_BOOT (#1287)
Fixes #1285
2023-01-11 19:55:18 -08:00
Jamil
3e1d3c5d74 Add deprecation warning to postinst script (#1282)
Firezone 0.7.x will be the last release to support Omnibus.
2023-01-10 09:19:17 -08:00
Jamil
0cdc3ec1a3 Fix minor deploy docs typos (#1280) 2023-01-09 17:12:35 -08:00
dependabot[bot]
cd6be4443e Bump phoenix_live_view from 0.18.3 to 0.18.6 (#1278)
Bumps
[phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view)
from 0.18.3 to 0.18.6.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/phoenixframework/phoenix_live_view/blob/master/CHANGELOG.md">phoenix_live_view's
changelog</a>.</em></p>
<blockquote>
<h2>0.18.6 (2023-01-09)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Fix external anchor click unloading on external click</li>
</ul>
<h2>0.18.5 (2023-01-09)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Fix external anchor click unloading socket</li>
</ul>
<h2>0.18.4 (2023-01-05)</h2>
<h3>Enhancements</h3>
<ul>
<li>Support string upload name to support dynamically generated
<code>allow_upload</code>'s</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Fix nested LiveView race condition on live patch causing nested
child to skip updates in some cases</li>
<li>Fix browser history showing incorrect title when using live
navigation with <code>@page_title</code></li>
<li>Fix undefined _target param when using <code>JS.push</code> for form
changes</li>
<li>Fix <code>phx-no-feedback</code> missing from inputs added after a
form submit</li>
<li>Fix <code>phx-disconnected</code> events firing when navigating away
or submitting external forms</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e1168e34fd"><code>e1168e3</code></a>
Release 0.18.6</li>
<li><a
href="12ca28cd0e"><code>12ca28c</code></a>
Release 0.18.5</li>
<li><a
href="629910dbc1"><code>629910d</code></a>
Fix external anchor click unloading socket. Closes <a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix_live_view/issues/2386">#2386</a></li>
<li><a
href="88282b3f14"><code>88282b3</code></a>
fix: add hidden attr to csrf inputs (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix_live_view/issues/2384">#2384</a>)</li>
<li><a
href="00f9bf037c"><code>00f9bf0</code></a>
Test live component inside conditional slot</li>
<li><a
href="a7e66d81fc"><code>a7e66d8</code></a>
Remove accidentally committed test</li>
<li><a
href="674fd69344"><code>674fd69</code></a>
Consistently convert slots into rendered structs</li>
<li><a
href="92bf7c0bef"><code>92bf7c0</code></a>
Further optimize slot rendering to only flatten on multiple entries</li>
<li><a
href="4929c7ba9e"><code>4929c7b</code></a>
Release 0.18.4</li>
<li><a
href="48b0054fe4"><code>48b0054</code></a>
Bump build</li>
<li>Additional commits viewable in <a
href="https://github.com/phoenixframework/phoenix_live_view/compare/v0.18.3...v0.18.6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=phoenix_live_view&package-manager=hex&previous-version=0.18.3&new-version=0.18.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 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>
2023-01-09 14:59:33 -08:00
Jamil
b3ae440a36 API Token CLI (#1271)
Adds a mechanism for generating API tokens from the CLI. Requires the
default admin user to be present. From there the token can be used to
create additional admins. In the future, we could allow specifying a
user's email to generate the token for.

Generate like so:

```
docker compose run --rm firezone bin/create-api-token
```
2023-01-09 14:59:18 -08:00
Jamil
19289165e0 Update upgrade.mdx
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2023-01-09 14:06:20 -08:00
dependabot[bot]
9a4b1b4d80 Bump excoveralls from 0.15.1 to 0.15.2 (#1274)
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.15.1
to 0.15.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/parroty/excoveralls/releases">excoveralls's
releases</a>.</em></p>
<blockquote>
<h2>v0.15.2</h2>
<h4>Changes</h4>
<ul>
<li>Add .coverdata file export (<a
href="https://github-redirect.dependabot.com/parroty/excoveralls/issues/298">#298</a>).
<ul>
<li>Allow default use of <code>mix test --cover --export-coverage
XXX</code>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md">excoveralls's
changelog</a>.</em></p>
<blockquote>
<h2>0.15.2</h2>
<h4>Changes</h4>
<ul>
<li>Add .coverdata file export (<a
href="https://github-redirect.dependabot.com/parroty/excoveralls/issues/298">#298</a>).
<ul>
<li>Allow default use of <code>mix test --cover --export-coverage
XXX</code>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="2dc17fd56c"><code>2dc17fd</code></a>
Update CHANGELOG</li>
<li><a
href="bd08a506bc"><code>bd08a50</code></a>
add .coverdata file export (<a
href="https://github-redirect.dependabot.com/parroty/excoveralls/issues/298">#298</a>)</li>
<li>See full diff in <a
href="https://github.com/parroty/excoveralls/compare/v0.15.1...v0.15.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=excoveralls&package-manager=hex&previous-version=0.15.1&new-version=0.15.2)](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 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>
2023-01-09 12:55:44 -08:00
dependabot[bot]
1489df7b86 Bump phoenix from 1.7.0-rc.0 to 1.7.0-rc.1 (#1275)
Bumps [phoenix](https://github.com/phoenixframework/phoenix) from
1.7.0-rc.0 to 1.7.0-rc.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/phoenixframework/phoenix/blob/master/CHANGELOG.md">phoenix's
changelog</a>.</em></p>
<blockquote>
<h2>1.7.0-rc.1 (2023-01-06)</h2>
<h3>Enhancements</h3>
<ul>
<li>Raise if using verified routes outside of functions</li>
<li>Add tailwind.install/esbuild.install to mix setup</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>[Presence] fix task shutdown match causing occasional presence
errors</li>
<li>[VerifiedRoutes] Fix expansion causing more compile-time deps than
necessary</li>
<li>[phx.gen.auth] Add password inputs to password reset edit form</li>
<li>[phx.gen.embedded] Fixes missing :references generation to
phx.gen.embedded</li>
<li>Fix textarea rendering in core components</li>
<li>Halt all sockets on intercept to fix longpoll response already sent
error</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9a07c909db"><code>9a07c90</code></a>
Release 1.7.0-rc.1</li>
<li><a
href="c75a06a7b6"><code>c75a06a</code></a>
Fix test</li>
<li><a
href="cac8cf4282"><code>cac8cf4</code></a>
Correct the swoosh api client configuration (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5166">#5166</a>)</li>
<li><a
href="38b24ce513"><code>38b24ce</code></a>
Improve docs on custom errors from <code>Socket.connect/3</code> (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5171">#5171</a>)</li>
<li><a
href="8cb51ee216"><code>8cb51ee</code></a>
Bump parse-url from 7.0.2 to 8.1.0 in /assets (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5184">#5184</a>)</li>
<li><a
href="b9cabf8a31"><code>b9cabf8</code></a>
Bump json5 from 2.2.1 to 2.2.3 in /assets (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5185">#5185</a>)</li>
<li><a
href="f411caec7b"><code>f411cae</code></a>
Sync components</li>
<li><a
href="b07c83d5e6"><code>b07c83d</code></a>
bugfix: flash component's phx-click hide should go to <a
href="https://github.com/id"><code>@​id</code></a>, not #flash (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5188">#5188</a>)</li>
<li><a
href="8a9f68997a"><code>8a9f689</code></a>
touchup styles, add navigation links (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5190">#5190</a>)</li>
<li><a
href="c9c65c6eed"><code>c9c65c6</code></a>
Fix sentence (<a
href="https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/5191">#5191</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/phoenixframework/phoenix/compare/v1.7.0-rc.0...v1.7.0-rc.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=phoenix&package-manager=hex&previous-version=1.7.0-rc.0&new-version=1.7.0-rc.1)](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 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>
2023-01-09 12:50:02 -08:00
dependabot[bot]
df13e1f38e Bump gettext from 0.20.0 to 0.21.0 (#1276)
Bumps [gettext](https://github.com/elixir-gettext/gettext) from 0.20.0
to 0.21.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/elixir-gettext/gettext/blob/main/CHANGELOG.md">gettext's
changelog</a>.</em></p>
<blockquote>
<h2>v0.21.0</h2>
<h3>New features and improvements</h3>
<ul>
<li>
<p>Bump Elixir requirement to 1.11+.</p>
</li>
<li>
<p>Extract parsing and dumping of PO/POT files to the
<a href="https://github.com/elixir-gettext/expo">expo</a> library, and
start depending
on that.</p>
</li>
<li>
<p>Support marking messages as obsolete with the new
<code>:on_obsolete</code> Gettext
configuration option.</p>
</li>
<li>
<p>Add the <code>:write_reference_line_numbers</code> Gettext
configuration option.</p>
</li>
<li>
<p>Save the previous messages when there's a fuzzy match, with the new
<code>:store_previous_message_on_fuzzy_match</code> Gettext
configuration option.</p>
</li>
<li>
<p>Change <code>:sort_by_msgid</code> to accept <code>false</code>,
<code>:case_sensitive</code>, or
<code>:case_insensitive</code> and deprecate the <code>true</code>
value.</p>
</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Sort messages independent of line splits when dumping PO files.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="35e423eb75"><code>35e423e</code></a>
Release v0.21.0</li>
<li><a
href="0dd72d3b34"><code>0dd72d3</code></a>
Add case-insensitive sorting to :sort_by_msgid (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/326">#326</a>)</li>
<li><a
href="9285a82426"><code>9285a82</code></a>
Fix typos (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/332">#332</a>)</li>
<li><a
href="4000910a93"><code>4000910</code></a>
Sort messages independent of message line splitting (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/331">#331</a>)</li>
<li><a
href="2d9228c39a"><code>2d9228c</code></a>
Save previous message for fuzzy matches (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/316">#316</a>)</li>
<li><a
href="b720495c97"><code>b720495</code></a>
Add code coverage through coveralls (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/329">#329</a>)</li>
<li><a
href="3f6c98e70b"><code>3f6c98e</code></a>
Add badges to the README</li>
<li><a
href="189db2c9cb"><code>189db2c</code></a>
Fix CI and update Erlang/Elixir versions (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/328">#328</a>)</li>
<li><a
href="f10c122369"><code>f10c122</code></a>
Tweak some docs here and there</li>
<li><a
href="b8ce79b927"><code>b8ce79b</code></a>
Add a &quot;Basic Overview&quot; docs section (<a
href="https://github-redirect.dependabot.com/elixir-gettext/gettext/issues/327">#327</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/elixir-gettext/gettext/compare/v0.20.0...v0.21.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=gettext&package-manager=hex&previous-version=0.20.0&new-version=0.21.0)](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 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>
2023-01-09 12:49:06 -08:00
dependabot[bot]
2ec99ef76e Bump telemetry from 1.1.0 to 1.2.0 (#1277)
Bumps [telemetry](https://github.com/beam-telemetry/telemetry) from
1.1.0 to 1.2.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/beam-telemetry/telemetry/blob/main/CHANGELOG.md">telemetry's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/elixir-telemetry/telemetry/tree/v1.2.0">1.2.0</a></h2>
<h3>Added</h3>
<ul>
<li>Added <code>telemetry_test</code> module for testing telemetry
events. (<a
href="https://github-redirect.dependabot.com/beam-telemetry/telemetry/issues/118">#118</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/beam-telemetry/telemetry/commits">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=telemetry&package-manager=hex&previous-version=1.1.0&new-version=1.2.0)](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 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>
2023-01-09 12:48:43 -08:00
Jamil
17b4f321df Add more comprehensive REST API tests (#1269)
- [x] Call API plug pipeline in test env
- [x] Add missing token tests
- [x] Add 404 tests
- [x] Add comprehensive user tests
- [x] Add comprehensive rule tests
- [x] Add comprehensive device tests
- [x] Add comprehensive configuration tests
2023-01-09 11:51:44 -08:00
Jamil
af74a20de7 Fix docs page crash (#1265)
https://discourse.firez.one/t/issue-with-firezone-documentation/380
2023-01-03 12:21:11 -08:00
Andrew Dryga
4fe6b5ec31 Allow running Firezone in a non-root directory (#1248) 2023-01-03 13:48:01 -06:00
Jamil
9a4103318d Expose some http client ssl opts via HTTP_CLIENT_SSL_OPTS (#1221)
Expose the most commonly-used SSL client options to our OIDC and
ConnectivityChecks HTTP clients. Resolves some lingering issues some
users were facing with OIDC where they needed a custom TLS version
enforced or cacert file used to fetch the `discovery_document` and
resulting keys.

SSL misconfiguration can be a security concern, so we intentionally puke
when an unexpected key is passed. This should result in a new GitHub
issue being opened and dialog created to learn more about the use-case.

Fixes #996
2023-01-03 07:38:24 -08:00
dependabot[bot]
852fa6d779 Bump rubocop from 1.41.1 to 1.42.0 (#1260)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.41.1 to
1.42.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rubocop/rubocop/releases">rubocop's
releases</a>.</em></p>
<blockquote>
<h2>RuboCop 1.42</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11339">#11339</a>:
Add new <code>Style/MapToSet</code> cop. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11341">#11341</a>:
Add new <code>Style/MinMaxComparison</code> cop. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/9222">#9222</a>:
Add new <code>Style/YodaExpression</code> cop. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11261">#11261</a>:
Allow inherit_from to accept a glob. (<a
href="https://github.com/alexevanczuk"><code>@​alexevanczuk</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11204">#11204</a>:
Fix a false negative for <code>Lint/RedundantCopDisableDirective</code>
when using <code>--except</code> command line option. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11369">#11369</a>:
Fix an error for <code>Lint/UselessRuby2Keywords</code> when using
<code>Proc#ruby2_keywords</code>. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11351">#11351</a>:
Fix an incorrect autocorrect for <code>Lint/RegexpAsCondition</code>
when using regexp literal with bang. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11329">#11329</a>:
Accept simple freezed constants in <code>Layout/ClassStructure</code>
and correctly handle class methods. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11344">#11344</a>:
Fix an error for <code>Style/GuardClause</code> when using heredoc as an
argument of raise in <code>then</code> branch and it does not have
<code>else</code> branch. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11335">#11335</a>:
Fix an error for <code>Style/RequireOrder</code> when only one
<code>reuqire</code>. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11348">#11348</a>:
Fix an error for <code>Style/SelectByRegexp</code> when block body is
empty. (<a href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11320">#11320</a>:
Fix a false positive for <code>Lint/RequireParentheses</code> when
assigning ternary operator. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11361">#11361</a>:
Make <code>Style/MethodDefParentheses</code> aware of Ruby 3.2's
anonymous rest and keyword rest arguments. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11346">#11346</a>:
Fix a false positive for <code>Style/RedundantStringEscape</code> when
using escaped space in heredoc. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10858">#10858</a>:
Fix <code>Style/IdenticalConditionalBranches</code> to ignore identical
leading lines when branch has single child and is used in return
context. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11237">#11237</a>:
Fix <code>Layout/CommentIndentation</code> comment aligned with access
modifier indentation when EnforcedStyle is outdent. (<a
href="https://github.com/soroktree"><code>@​soroktree</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11330">#11330</a>:
Fix an error for <code>Style/RequireOrder</code> when using
<code>require</code> inside <code>rescue</code> body. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8751">#8751</a>:
Accept <code>super</code> within ranges for
<code>Layout/SpaceAroundKeyword</code> cop. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10194">#10194</a>:
Accept bracketed arrays within 2d arrays containing subarrays with
complex content for <code>Style/WordArray</code> cop. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8366">#8366</a>:
Ignore private constants in <code>Layout/ClassStructure</code> cop. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11325">#11325</a>:
Support autocorrection for percent literals in
<code>Style/ConcatArrayLiterals</code>. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11327">#11327</a>:
Make <code>Style/ZeroLengthPredicate</code> aware of
<code>array.length.zero?</code>. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10976">#10976</a>:
Support pattern matching for <code>Lint/OutOfRangeRegexpRef</code> cop.
(<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md">rubocop's
changelog</a>.</em></p>
<blockquote>
<h2>1.42.0 (2023-01-01)</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11339">#11339</a>:
Add new <code>Style/MapToSet</code> cop. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11341">#11341</a>:
Add new <code>Style/MinMaxComparison</code> cop. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/9222">#9222</a>:
Add new <code>Style/YodaExpression</code> cop. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11261">#11261</a>:
Allow inherit_from to accept a glob. ([<a
href="https://github.com/alexevanczuk"><code>@​alexevanczuk</code></a>][])</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11204">#11204</a>:
Fix a false negative for <code>Lint/RedundantCopDisableDirective</code>
when using <code>--except</code> command line option. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11369">#11369</a>:
Fix an error for <code>Lint/UselessRuby2Keywords</code> when using
<code>Proc#ruby2_keywords</code>. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11351">#11351</a>:
Fix an incorrect autocorrect for <code>Lint/RegexpAsCondition</code>
when using regexp literal with bang. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11329">#11329</a>:
Accept simple freezed constants in <code>Layout/ClassStructure</code>
and correctly handle class methods. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11344">#11344</a>:
Fix an error for <code>Style/GuardClause</code> when using heredoc as an
argument of raise in <code>then</code> branch and it does not have
<code>else</code> branch. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11335">#11335</a>:
Fix an error for <code>Style/RequireOrder</code> when only one
<code>reuqire</code>. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11348">#11348</a>:
Fix an error for <code>Style/SelectByRegexp</code> when block body is
empty. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11320">#11320</a>:
Fix a false positive for <code>Lint/RequireParentheses</code> when
assigning ternary operator. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11361">#11361</a>:
Make <code>Style/MethodDefParentheses</code> aware of Ruby 3.2's
anonymous rest and keyword rest arguments. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11346">#11346</a>:
Fix a false positive for <code>Style/RedundantStringEscape</code> when
using escaped space in heredoc. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10858">#10858</a>:
Fix <code>Style/IdenticalConditionalBranches</code> to ignore identical
leading lines when branch has single child and is used in return
context. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11237">#11237</a>:
Fix <code>Layout/CommentIndentation</code> comment aligned with access
modifier indentation when EnforcedStyle is outdent. ([<a
href="https://github.com/soroktree"><code>@​soroktree</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11330">#11330</a>:
Fix an error for <code>Style/RequireOrder</code> when using
<code>require</code> inside <code>rescue</code> body. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8751">#8751</a>:
Accept <code>super</code> within ranges for
<code>Layout/SpaceAroundKeyword</code> cop. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10194">#10194</a>:
Accept bracketed arrays within 2d arrays containing subarrays with
complex content for <code>Style/WordArray</code> cop. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/8366">#8366</a>:
Ignore private constants in <code>Layout/ClassStructure</code> cop. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11325">#11325</a>:
Support autocorrection for percent literals in
<code>Style/ConcatArrayLiterals</code>. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11327">#11327</a>:
Make <code>Style/ZeroLengthPredicate</code> aware of
<code>array.length.zero?</code>. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/10976">#10976</a>:
Support pattern matching for <code>Lint/OutOfRangeRegexpRef</code> cop.
([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="0f7416a0b3"><code>0f7416a</code></a>
Cut 1.42</li>
<li><a
href="b58c2cd6de"><code>b58c2cd</code></a>
Update Changelog</li>
<li><a
href="d8e5332b7c"><code>d8e5332</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11372">#11372</a>
from koic/ci_against_ruby_3_2_on_windows</li>
<li><a
href="ac9e723659"><code>ac9e723</code></a>
CI against Ruby 3.2 on Windows</li>
<li><a
href="33bf9a0252"><code>33bf9a0</code></a>
Fix an error for <code>Lint/UselessRuby2Keywords</code></li>
<li><a
href="3cce8c8443"><code>3cce8c8</code></a>
Fix <code>Style/WordArray</code> for subarrays</li>
<li><a
href="d5c303a85c"><code>d5c303a</code></a>
Bump license years to 2023</li>
<li><a
href="32e13c5812"><code>32e13c5</code></a>
Improve offense message for <code>Style/YodaExpression</code> cop</li>
<li><a
href="d4aeaf1fe5"><code>d4aeaf1</code></a>
[Doc] Update the doc for <code>Style/MinMaxComparison</code></li>
<li><a
href="7b4adef766"><code>7b4adef</code></a>
Add examples for 2d arrays to <code>Style/WordArray</code> cop</li>
<li>Additional commits viewable in <a
href="https://github.com/rubocop/rubocop/compare/v1.41.1...v1.42.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rubocop&package-manager=bundler&previous-version=1.41.1&new-version=1.42.0)](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 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>
2023-01-03 05:56:40 -08:00
Jamil
ecac23e19a Fix asserts -> assets typo (#1259) 2022-12-31 19:45:27 -06:00
Jamil
56ec179a83 [Supercedes #1255] Replace npm with yarn (#1256)
Renamed branch prefix to `build/` to build in CI
2022-12-31 15:44:23 -06:00
Jamil
5b4e9e74e5 Don't assume PostHog is available (#1258)
Fixes #1257
2022-12-31 15:40:23 -06:00
Jamil
1de24ff77e REST API (#1155)
### TODO

- [x] "/v0"
- [x] Double-check migration order; re-timestamp if necessary
- [x] Move `sites` fields to `configurations` so they can be updated
from API
- [x] #1240 -- it introduces possible race conditions for API requests
- [x] #1249 
- [ ] #1008 
- [ ] Final review

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Co-authored-by: Andrew Dryga <andrew@dryga.com>
2022-12-31 12:58:11 -06:00
Jamil
963aca75cb Update recommendations for local authentication (#1252)
Update the local auth docs to reflect current recommendations.
2022-12-29 17:13:18 -06:00
Jason G
7ad73b7b25 Remove broken link in docs (#1253) 2022-12-29 13:44:07 -06:00
Jamil
8fa280691d Conditionally append port to endpoint (#1247)
Fixes a bug where generated configs have an extra port added in some
cases.
2022-12-26 15:19:08 -06:00
dependabot[bot]
427edb9d5f Bump rubocop from 1.40.0 to 1.41.1 (#1243)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.40.0 to
1.41.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rubocop/rubocop/releases">rubocop's
releases</a>.</em></p>
<blockquote>
<h2>RuboCop 1.41.1</h2>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11293">#11293</a>:
Fix a false negative for <code>Style/Documentation</code> when using
macro. (<a href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11313">#11313</a>:
Fix a false positive for <code>Naming/BlockForwarding</code> when the
block argument is reassigned. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11014">#11014</a>:
Fix a false positive for <code>Style/Alias</code>cop when alias in a
method def. (<a
href="https://github.com/ydah"><code>@​ydah</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11309">#11309</a>:
Fix a false positive for <code>Style/RedundantStringEscape</code> when
using a redundant escaped string interpolation <code>\#\{foo}</code>.
(<a href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11307">#11307</a>:
Fix an error for <code>Style/GuardClause</code> when using lvar as an
argument of raise in <code>else</code> branch. (<a
href="https://github.com/ydah"><code>@​ydah</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11308">#11308</a>:
Fix disabling departments via comment. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11312">#11312</a>:
Mark <code>Style/ConcatArrayLiterals</code> as unsafe. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
</ul>
<h2>RuboCop 1.41</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11305">#11305</a>:
Add new <code>Style/RedundantDoubleSplatHashBraces</code> cop. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10812">#10812</a>:
New AllowMultilineFinalElement option for all LineBreaks cops. (<a
href="https://github.com/Korri"><code>@​Korri</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11277">#11277</a>:
Add new <code>Style/ConcatArrayLiterals</code> cop. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11255">#11255</a>:
Fix an error for <code>Style/RequireOrder</code> when
<code>require</code> with no arguments is put between
<code>require</code>. (<a
href="https://github.com/ydah"><code>@​ydah</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11273">#11273</a>:
Fix a false positive for <code>Lint/DuplicateMethods</code> when there
are same <code>alias_method</code> name outside <code>rescue</code> or
<code>ensure</code> scopes. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11267">#11267</a>:
Fix an error for Style/RequireOrder when modifier conditional is used
between <code>require</code>. (<a
href="https://github.com/ydah"><code>@​ydah</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11254">#11254</a>:
Fix an error for <code>Style/RequireOrder</code> when
<code>require</code> is a method argument. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11266">#11266</a>:
Fix a false positive for <code>Style/RedundantConstantBase</code> when
enabling <code>Lint/ConstantResolution</code>. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11296">#11296</a>:
Fix an error for <code>Lint/NonAtomicFileOperation</code> when use file
existence checks line break <code>unless</code> by postfix before
creating file. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11284">#11284</a>:
Fix an incorrect autocorrect for <code>Style/WordArray</code> when
assigning <code>%w()</code> array. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11299">#11299</a>:
Fix <code>base_dir</code> in <code>TargetFinder#find_files()</code>. (<a
href="https://github.com/dukaev"><code>@​dukaev</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11250">#11250</a>:
Fix an error for <code>Style/GuardClause</code> when a method call whose
last argument is not a string is in the condition body. (<a
href="https://github.com/ydah"><code>@​ydah</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11298">#11298</a>:
Fix <code>Lint/SafeNavigationChain</code> to correctly handle
<code>[]</code> operator followed by save navigation and method chain.
(<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11256">#11256</a>:
Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when
without parentheses call expr follows after multiple keyword arguments
method call. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11289">#11289</a>:
Correctly detect Rails version when using only parts of the framework,
instead of the &quot;rails&quot; gem. ([<a
href="https://github.com/bdewater"><code>@​bdewater</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11262">#11262</a>:
Fix an error for <code>Style/IfUnlessModifier</code> when the body is a
method call with hash splat. (<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>)</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11281">#11281</a>:
Fix <code>NoMethodError</code> for <code>Style/Documentation</code> when
a class nested under non-constant values. ([<a
href="https://github.com/arika"><code>@​arika</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11306">#11306</a>:
Make <code>Style/IfWithSemicolon</code> aware of one line without
<code>else</code> body. (<a
href="https://github.com/koic"><code>@​koic</code></a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md">rubocop's
changelog</a>.</em></p>
<blockquote>
<h2>1.41.1 (2022-12-22)</h2>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11293">#11293</a>:
Fix a false negative for <code>Style/Documentation</code> when using
macro. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11313">#11313</a>:
Fix a false positive for <code>Naming/BlockForwarding</code> when the
block argument is reassigned. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11014">#11014</a>:
Fix a false positive for <code>Style/Alias</code>cop when alias in a
method def. ([<a
href="https://github.com/ydah"><code>@​ydah</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11309">#11309</a>:
Fix a false positive for <code>Style/RedundantStringEscape</code> when
using a redundant escaped string interpolation <code>\#\{foo}</code>.
([<a href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11307">#11307</a>:
Fix an error for <code>Style/GuardClause</code> when using lvar as an
argument of raise in <code>else</code> branch. ([<a
href="https://github.com/ydah"><code>@​ydah</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11308">#11308</a>:
Fix disabling departments via comment. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11312">#11312</a>:
Mark <code>Style/ConcatArrayLiterals</code> as unsafe. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
</ul>
<h2>1.41.0 (2022-12-20)</h2>
<h3>New features</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11305">#11305</a>:
Add new <code>Style/RedundantDoubleSplatHashBraces</code> cop. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/10812">#10812</a>:
New AllowMultilineFinalElement option for all LineBreaks cops. ([<a
href="https://github.com/Korri"><code>@​Korri</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11277">#11277</a>:
Add new <code>Style/ConcatArrayLiterals</code> cop. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11255">#11255</a>:
Fix an error for <code>Style/RequireOrder</code> when
<code>require</code> with no arguments is put between
<code>require</code>. ([<a
href="https://github.com/ydah"><code>@​ydah</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11273">#11273</a>:
Fix a false positive for <code>Lint/DuplicateMethods</code> when there
are same <code>alias_method</code> name outside <code>rescue</code> or
<code>ensure</code> scopes. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11267">#11267</a>:
Fix an error for Style/RequireOrder when modifier conditional is used
between <code>require</code>. ([<a
href="https://github.com/ydah"><code>@​ydah</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11254">#11254</a>:
Fix an error for <code>Style/RequireOrder</code> when
<code>require</code> is a method argument. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11266">#11266</a>:
Fix a false positive for <code>Style/RedundantConstantBase</code> when
enabling <code>Lint/ConstantResolution</code>. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11296">#11296</a>:
Fix an error for <code>Lint/NonAtomicFileOperation</code> when use file
existence checks line break <code>unless</code> by postfix before
creating file. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11284">#11284</a>:
Fix an incorrect autocorrect for <code>Style/WordArray</code> when
assigning <code>%w()</code> array. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11299">#11299</a>:
Fix <code>base_dir</code> in <code>TargetFinder#find_files()</code>.
([<a href="https://github.com/dukaev"><code>@​dukaev</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11250">#11250</a>:
Fix an error for <code>Style/GuardClause</code> when a method call whose
last argument is not a string is in the condition body. ([<a
href="https://github.com/ydah"><code>@​ydah</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11298">#11298</a>:
Fix <code>Lint/SafeNavigationChain</code> to correctly handle
<code>[]</code> operator followed by save navigation and method chain.
([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11256">#11256</a>:
Fix an incorrect autocorrect for <code>Style/HashSyntax</code> when
without parentheses call expr follows after multiple keyword arguments
method call. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11289">#11289</a>:
Correctly detect Rails version when using only parts of the framework,
instead of the &quot;rails&quot; gem. ([<a
href="https://github.com/bdewater"><code>@​bdewater</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11262">#11262</a>:
Fix an error for <code>Style/IfUnlessModifier</code> when the body is a
method call with hash splat. ([<a
href="https://github.com/fatkodima"><code>@​fatkodima</code></a>][])</li>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11281">#11281</a>:
Fix <code>NoMethodError</code> for <code>Style/Documentation</code> when
a class nested under non-constant values. ([<a
href="https://github.com/arika"><code>@​arika</code></a>][])</li>
</ul>
<h3>Changes</h3>
<ul>
<li><a
href="https://github-redirect.dependabot.com/rubocop/rubocop/pull/11306">#11306</a>:
Make <code>Style/IfWithSemicolon</code> aware of one line without
<code>else</code> body. ([<a
href="https://github.com/koic"><code>@​koic</code></a>][])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="4fd14ff177"><code>4fd14ff</code></a>
Cut 1.41.1</li>
<li><a
href="1fc41b0622"><code>1fc41b0</code></a>
Update Changelog</li>
<li><a
href="46ffe4fb4d"><code>46ffe4f</code></a>
Fix a false positive for <code>Style/Alias</code>cop when alias in a
method def</li>
<li><a
href="a5f4a9adab"><code>a5f4a9a</code></a>
Add support <code>@see</code> tags in our document</li>
<li><a
href="0c5b1ec3cd"><code>0c5b1ec</code></a>
Fix disabling departments via comment</li>
<li><a
href="dbffbf13d9"><code>dbffbf1</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11316">#11316</a>
from fatkodima/block_forwarding-reassignment</li>
<li><a
href="02660c46d1"><code>02660c4</code></a>
Fix a false positive for <code>Naming/BlockForwarding</code> when the
block argument is ...</li>
<li><a
href="8bb0c47e7a"><code>8bb0c47</code></a>
[Fix <a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11312">#11312</a>]
Mark <code>Style/ConcatArrayLiterals</code> as unsafe</li>
<li><a
href="91fe2cf9f6"><code>91fe2cf</code></a>
[Fix <a
href="https://github-redirect.dependabot.com/rubocop/rubocop/issues/11309">#11309</a>]
Fix a false positive for <code>Style/RedundantStringEscape</code></li>
<li><a
href="cc0a9f544c"><code>cc0a9f5</code></a>
Switch back the docs version</li>
<li>Additional commits viewable in <a
href="https://github.com/rubocop/rubocop/compare/v1.40.0...v1.41.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rubocop&package-manager=bundler&previous-version=1.40.0&new-version=1.41.1)](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 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>
2022-12-26 07:40:00 -06:00
dependabot[bot]
a62cb7ad3a Bump pre-commit from 2.20.0 to 2.21.0 (#1242)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.20.0
to 2.21.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pre-commit/pre-commit/releases">pre-commit's
releases</a>.</em></p>
<blockquote>
<h2>pre-commit v2.21.0</h2>
<h3>Features</h3>
<ul>
<li>Require new-enough virtualenv to prevent 3.10 breakage
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2467">#2467</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Respect aliases with <code>SKIP</code> for environment install.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2480">#2480</a>
PR by <a href="https://github.com/kmARC"><code>@​kmARC</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2478">#2478</a>
issue by <a
href="https://github.com/kmARC"><code>@​kmARC</code></a>.</li>
</ul>
</li>
<li>Allow <code>pre-commit run --files</code> against unmerged paths.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2484">#2484</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Also apply regex warnings to <code>repo: local</code> hooks.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2524">#2524</a>
PR by <a
href="https://github.com/chrisRedwine"><code>@​chrisRedwine</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2521">#2521</a>
issue by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li><code>rust</code> is now a &quot;first class&quot; language --
supporting <code>language_version</code> and installation when not
present.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2534">#2534</a>
PR by <a
href="https://github.com/Holzhaus"><code>@​Holzhaus</code></a>.</li>
</ul>
</li>
<li><code>r</code> now uses more-reliable binary installation.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2460">#2460</a>
PR by <a
href="https://github.com/lorenzwalthert"><code>@​lorenzwalthert</code></a>.</li>
</ul>
</li>
<li><code>GIT_ALLOW_PROTOCOL</code> is now passed through for git
operations.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2555">#2555</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li><code>GIT_ASKPASS</code> is now passed through for git operations.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2564">#2564</a>
PR by <a href="https://github.com/mattp"><code>@​mattp</code></a>-.</li>
</ul>
</li>
<li>Remove <code>toml</code> dependency by using <code>cargo add</code>
directly.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2568">#2568</a>
PR by <a
href="https://github.com/m-rsha"><code>@​m-rsha</code></a>.</li>
</ul>
</li>
<li>Support <code>dotnet</code> hooks which have dotted prefixes.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2641">#2641</a>
PR by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2629">#2629</a>
issue by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
</ul>
</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Properly adjust <code>--commit-msg-filename</code> if run from a sub
directory.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2459">#2459</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Simplify <code>--intent-to-add</code> detection by using <code>git
diff</code>.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2580">#2580</a>
PR by <a
href="https://github.com/m-rsha"><code>@​m-rsha</code></a>.</li>
</ul>
</li>
<li>Fix <code>R.exe</code> selection on windows.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2605">#2605</a>
PR by <a
href="https://github.com/lorenzwalthert"><code>@​lorenzwalthert</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2599">#2599</a>
issue by <a
href="https://github.com/SInginc"><code>@​SInginc</code></a>.</li>
</ul>
</li>
<li>Skip default <code>nuget</code> source when installing
<code>dotnet</code> packages.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2642">#2642</a>
PR by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md">pre-commit's
changelog</a>.</em></p>
<blockquote>
<h1>2.21.0 - 2022-12-25</h1>
<h3>Features</h3>
<ul>
<li>Require new-enough virtualenv to prevent 3.10 breakage
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2467">#2467</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Respect aliases with <code>SKIP</code> for environment install.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2480">#2480</a>
PR by <a href="https://github.com/kmARC"><code>@​kmARC</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2478">#2478</a>
issue by <a
href="https://github.com/kmARC"><code>@​kmARC</code></a>.</li>
</ul>
</li>
<li>Allow <code>pre-commit run --files</code> against unmerged paths.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2484">#2484</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Also apply regex warnings to <code>repo: local</code> hooks.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2524">#2524</a>
PR by <a
href="https://github.com/chrisRedwine"><code>@​chrisRedwine</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2521">#2521</a>
issue by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li><code>rust</code> is now a &quot;first class&quot; language --
supporting <code>language_version</code> and
installation when not present.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2534">#2534</a>
PR by <a
href="https://github.com/Holzhaus"><code>@​Holzhaus</code></a>.</li>
</ul>
</li>
<li><code>r</code> now uses more-reliable binary installation.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2460">#2460</a>
PR by <a
href="https://github.com/lorenzwalthert"><code>@​lorenzwalthert</code></a>.</li>
</ul>
</li>
<li><code>GIT_ALLOW_PROTOCOL</code> is now passed through for git
operations.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2555">#2555</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li><code>GIT_ASKPASS</code> is now passed through for git operations.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2564">#2564</a>
PR by <a href="https://github.com/mattp"><code>@​mattp</code></a>-.</li>
</ul>
</li>
<li>Remove <code>toml</code> dependency by using <code>cargo add</code>
directly.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2568">#2568</a>
PR by <a
href="https://github.com/m-rsha"><code>@​m-rsha</code></a>.</li>
</ul>
</li>
<li>Support <code>dotnet</code> hooks which have dotted prefixes.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2641">#2641</a>
PR by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2629">#2629</a>
issue by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
</ul>
</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Properly adjust <code>--commit-msg-filename</code> if run from a sub
directory.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2459">#2459</a>
PR by <a
href="https://github.com/asottile"><code>@​asottile</code></a>.</li>
</ul>
</li>
<li>Simplify <code>--intent-to-add</code> detection by using <code>git
diff</code>.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2580">#2580</a>
PR by <a
href="https://github.com/m-rsha"><code>@​m-rsha</code></a>.</li>
</ul>
</li>
<li>Fix <code>R.exe</code> selection on windows.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2605">#2605</a>
PR by <a
href="https://github.com/lorenzwalthert"><code>@​lorenzwalthert</code></a>.</li>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2599">#2599</a>
issue by <a
href="https://github.com/SInginc"><code>@​SInginc</code></a>.</li>
</ul>
</li>
<li>Skip default <code>nuget</code> source when installing
<code>dotnet</code> packages.
<ul>
<li><a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2642">#2642</a>
PR by <a href="https://github.com/rkm"><code>@​rkm</code></a>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="40c5bdad65"><code>40c5bda</code></a>
v2.21.0</li>
<li><a
href="bb27ea32cd"><code>bb27ea3</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2642">#2642</a>
from rkm/fix/dotnet-nuget-config</li>
<li><a
href="c38e0c7ba8"><code>c38e0c7</code></a>
dotnet: ignore nuget source during tool install</li>
<li><a
href="bce513fac6"><code>bce513f</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2641">#2641</a>
from rkm/fix/dotnet-tool-prefix</li>
<li><a
href="e904628830"><code>e904628</code></a>
fix dotnet hooks with prefixes</li>
<li><a
href="d7b8b123e6"><code>d7b8b12</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2646">#2646</a>
from pre-commit/pre-commit-ci-update-config</li>
<li><a
href="94b6178906"><code>94b6178</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="b474a83463"><code>b474a83</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2643">#2643</a>
from pre-commit/pre-commit-ci-update-config</li>
<li><a
href="a179808bfe"><code>a179808</code></a>
[pre-commit.ci] pre-commit autoupdate</li>
<li><a
href="3aa6206e4f"><code>3aa6206</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/pre-commit/pre-commit/issues/2605">#2605</a>
from lorenzwalthert/r/fix-exe</li>
<li>Additional commits viewable in <a
href="https://github.com/pre-commit/pre-commit/compare/v2.20.0...v2.21.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pre-commit&package-manager=pip&previous-version=2.20.0&new-version=2.21.0)](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 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>
2022-12-26 07:35:08 -06:00
Jamil
fbb05b9e7e Fix sites.endpoint default when EXTERNAL_URL is missing (#1238)
This populates the `sites.endpoint` field with the WIREGUARD_ENDPOINT
variable and removes it from env vars reference.

cc @conectado 
Fixes #1237
2022-12-24 18:16:55 -06:00
Jamil
8976132c15 Fix InstallBlock links using BrowserOnly (#1239)
Fixes the PublishDocs workflow.
2022-12-24 18:15:26 -06:00
Jamil
de3919fb69 Add SupportOptions component and utm_source for links (#1219)
This PR also moves to `yarn` for docs package management for improved
speed, security, and developer experience. Docusaurus prefers yarn.

Refs firezone/marketing#126
2022-12-24 16:16:55 -06:00
Jamil
f749ba2bb2 Change foreign key constraint to cascading delete (#1235)
Fixes #1234
2022-12-24 07:09:37 -06:00
Austin Saunders
9eb622fe39 Removes hammer and hammer_plug deps and their code references (#1230)
Resolves Issue https://github.com/firezone/firezone/issues/1216

Co-authored-by: Austin Saunders <austinsaunders@paczek.lan>
2022-12-24 05:32:01 -06:00
Gabi
e49d5631a5 fix: endpoint migration when EXTERNAL_URL is not present (#1232)
For `URI.parse` to work the URI needs to be a FQDN otherwise `nil` is
returned.
2022-12-23 18:13:11 -06:00
Jamil
38c41feb67 Don't cache Elixir build in static_analysis workflow (#1227)
Still [having
issues](https://github.com/firezone/firezone/actions/runs/3759257641)
with the Elixir cache.

Things tried that didn't work:
- Namespacing by branch name. Github does this already.
- Removing the `restore-keys` in order to only restore the cache if it's
a direct hit.

The `static_analysis` workflow runs `mix compile --force
--warnings-as-errors` which doesn't use the build cache, so it's
removed, which fixes the problem.
2022-12-22 13:08:04 -06:00
Jamil
5e8407c017 Fix missing PLT cache key (#1225) 2022-12-21 23:35:49 -06:00
Jamil
26cb59d74b Fix rollback for release_test.exs due to Ecto 3.9.2 (#1223)
* Fix rollback for release_test.exs due to Ecto 3.9.2

4371bb7de8

* We don't support rollbacks

* Update .github/workflows/static_analysis.yml

Co-authored-by: Andrew Dryga <andrew@dryga.com>
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Co-authored-by: Andrew Dryga <andrew@dryga.com>
2022-12-21 13:42:31 -06:00
Jamil
495109a418 Support more dense QR codes with error correction level L (#1222)
This also removes the QR code <canvas> from the DOM if there's a
render error.

Fixes #1217
2022-12-21 13:10:41 -06:00
Jamil
3a2c03d98f Use $tid
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-20 22:27:43 -06:00
Jamil
7e34b0fc71 Fix install script param
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-20 22:24:48 -06:00
Jamil
25e7de4f24 Enrichment (#1220)
* Debug TID

* Use new TID from wrapped install script

* Add as script param
2022-12-20 22:20:30 -06:00
Jamil
ed6784d598 Update upgrade.mdx
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-19 11:00:22 -06:00
Jamil
8a677272a4 Add note about WIREGUARD_ env vars moving to DB
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-19 08:58:13 -06:00
Jamil
ccf2ecd633 Document WIREGUARD_MTU is for server interface only (#1212)
Client configs will be generated based on runtime configuration
stored in the `sites` table, while server configuration (which
requires a restart of the server) will be configurable via ENV vars.

Refs #1270
2022-12-19 07:37:56 -06:00
Jamil
2b216a1d58 Update Docker IPv6 CIDR to use 2001:db8:1::/64 (#1213)
See https://github.com/firezone/firezone/issues/1202#issuecomment-1357294785
2022-12-19 07:37:36 -06:00
dependabot[bot]
0a6807c8fa Bump wireguardex from 0.3.5 to 0.3.6 (#1209)
Bumps [wireguardex](https://github.com/firezone/wireguardex) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/firezone/wireguardex/releases)
- [Commits](https://github.com/firezone/wireguardex/compare/v0.3.5...v0.3.6)

---
updated-dependencies:
- dependency-name: wireguardex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 06:03:38 -06:00
Jamil
ec3c075c67 Use site table fields, not ENV vars for optional WireGuard config (#1207)
This takes us a step closer to having all runtime config
in the DB as opposed to ENV vars.

Fixes #1197
2022-12-18 21:39:33 -06:00