Commit Graph

2010 Commits

Author SHA1 Message Date
dependabot[bot]
3e380cdfc8 Bump rubocop from 1.39.0 to 1.40.0 (#1195)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.39.0 to 1.40.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.39.0...v1.40.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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-13 07:35:32 -08:00
Jamil
171d2895e0 Revert offline_access
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-13 05:17:56 -08:00
Jamil
953ba80312 Add offline_access to Google doc
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-13 01:37:48 -08:00
Jamil
1cbd96be6d Fix double-quotes in docker migrate
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-12-11 14:09:28 -08:00
Jamil
0a19c67cd1 Use application_version() to link back to repo (#1181) 2022-12-07 11:11:30 -08:00
Andrew Dryga
28fe571543 Small improvements to make setup process easier for OS contributors (#1171)
* Remove _build folders for umbrella apps

For umbrella apps everything goes into /_build directory so there no need to ignore directories that should never be created

* Change mix aliases to be more aligned with what OS community would expect

1. We want ecto.create and ecto.migrate to be run on each tests, this will simplify setup steps (no need to run migrations manually)

2. ecto.remigrate is not needed because now you can just run ecto.drop and on tests migrations would be executed anyways.

* Rename docker-compose step name in CONTRIBUTING.md

The step was renamed here: dd67baf629 (diff-67a4805fdcc6145d7b3ada2a6099a9b2e91c9d0fd108c22f95d2f01d219793d1R10)

* Remove .devcontainer

This an is opinionated change. Right now devcontainer doesn't work but should be easy to fix (with renaming step name), but at the same time it forces developers that use VS code to have unified development environment (including plugins for the editor itself).

I feel like it's not a good path to go for OS and for small team - everyone should be allowed to use setup they like. Especially for people like me that tend to recompile ls-elixir for Elixir plugin from master branch.

Plus it's yet another thing to maintain while nobody on the team is using it, which means it will be always causing issues.

* Make fz_http mix.exs aliases aligned with umbrella app ones

* Redirect stderr to stdout in a command called from dev.exs

Otherwise I'm getting this on my MacOS (that has a `route` implementation that doesn't show interfaces) when `mix phx.server` is executed:
```
usage: route [-dnqtv] command [[modifiers] args]
```

* Fix race condition due to static device field values

Both public_key and name are unique and we should not use static values for field covered by unique index, otherwise deadlocks and slow tests are expected.

* Remove unwanted transaction block

The changeset code doesn't have any code that accesses the database and individual Ecto.SQL commands are already wrapped in transactions by default, so there is no need to start it manually and hold for longer than expected (while irrelevant Elixir code is running).

* Use netstat to identify egress interface on MacOS

* Rename uninstall.sh to omnibus-uninstall.sh

* Fix uninstall path in omnibus_build.yml
2022-12-06 15:07:45 -08:00
dependabot[bot]
94061a3581 Bump hammer_plug from 2.1.1 to 3.0.0 (#1176)
Bumps [hammer_plug](https://github.com/ExHammer/hammer-plug) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/ExHammer/hammer-plug/releases)
- [Changelog](https://github.com/ExHammer/hammer-plug/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ExHammer/hammer-plug/compare/v2.1.1...v3.0.0)

---
updated-dependencies:
- dependency-name: hammer_plug
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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-06 14:32:58 -08:00
Jamil
1feaf2ce12 Fix AsyncAPI specification errors (#1177)
Needed for the work @connectado is doing with the WebSocket API.
2022-12-06 13:02:40 -08:00
dependabot[bot]
1dde0c1952 Bump phoenix_live_reload from 1.4.0 to 1.4.1 (#1174)
Bumps [phoenix_live_reload](https://github.com/phoenixframework/phoenix_live_reload) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/phoenixframework/phoenix_live_reload/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_live_reload/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_reload/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: phoenix_live_reload
  dependency-type: direct:development
  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-05 22:06:39 -08:00
Jamil
f4cc03454e Wrap magic link with url() (#1170)
This broke when I introduced ~p across the codebase.
2022-12-03 08:19:21 -08:00
Jason G
73de8c3f33 docs: fix setup instruction (#1168) 2022-12-02 11:49:48 -08:00
Jamil
25145bba47 Update Docker migration script to match install improvements (#1166) 2022-12-02 07:34:21 -08:00
Philipp Bammes
47dd620d55 fix typo "MacOS" in user documentation (#1161)
Signed-off-by: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com>

Signed-off-by: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com>
2022-12-01 07:36:03 -08:00
Jamil
6d1010c21b Use complete Firezone URL for post_logout_uri (#1160) 2022-11-30 22:27:21 -08:00
Jamil
e32df103c9 Add missing cd step
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-30 21:29:45 -08:00
Jamil
7a1ffd8c4f Fix build cache
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-28 21:20:24 -08:00
dependabot[bot]
e99532232d Bump excoveralls from 0.15.0 to 0.15.1 (#1154)
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/parroty/excoveralls/releases)
- [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md)
- [Commits](https://github.com/parroty/excoveralls/compare/v0.15.0...v0.15.1)

---
updated-dependencies:
- dependency-name: excoveralls
  dependency-type: direct:development
  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-11-28 13:15:47 -08:00
dependabot[bot]
7f4dd93038 Bump guardian from 2.3.0 to 2.3.1 (#1153)
Bumps [guardian](https://github.com/ueberauth/guardian) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/ueberauth/guardian/releases)
- [Changelog](https://github.com/ueberauth/guardian/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ueberauth/guardian/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: guardian
  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-11-28 10:17:50 -08:00
dependabot[bot]
990b36fa5f Bump akhilerm/tag-push-action from 2.0.0 to 2.1.0 (#1152)
Bumps [akhilerm/tag-push-action](https://github.com/akhilerm/tag-push-action) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/akhilerm/tag-push-action/releases)
- [Commits](https://github.com/akhilerm/tag-push-action/compare/v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: akhilerm/tag-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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-11-28 08:27:51 -08:00
Jamil
157ac0bb38 run checks on master too (#1143) 2022-11-23 23:14:36 -08:00
Gabi
116de06bf4 Disallow netmasks in devices' ip to prevent overlaps in firewall (#1140)
* fix: disallow netmasks in devices' ip to prevent overlaps in firewall

/32 is still allowed for ipv4 and /128 is still allowed for ipv6.
No migration is needed since netmasks for devices ips were broken
before-hand.

* chore: rename `validate_single_ip` function and reword its error message

* Update pre-commit to allow slash

* fix restore cache

* Refactor a bit

* Fix clobbered restore-keys

* Break cache

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
2022-11-23 22:56:22 -08:00
Jamil
7e552ab06e Add codespell (#1142)
* Add codespell

* Try codespell like this

* Use codespell config, not pre-commit

* ignore vendor
2022-11-23 22:31:32 -08:00
Kian-Meng Ang
ec5f0e24ae Fix typos (#1141)
Found via `codespell -S omnibus,*.json,yarn.lock,seeds.exs -L keypair,keypairs,iif,statics,wee`
2022-11-23 21:42:54 -08:00
Jamil
11b24866ef unless-stopped
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-23 21:22:16 -08:00
Jamil
71fa282274 unless-stopped
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-23 21:21:49 -08:00
Jamil
b13ece1e1c Revert to on-failure
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-23 20:58:16 -08:00
Jamil
e0e9baf7bc Revert to on-failure
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-23 20:57:47 -08:00
Jamil
1988cbe1de Change restart policy to unless-stopped (#1138)
* restart: unless-stopped

* Use updated ruby action
2022-11-23 16:13:37 -08:00
Jamil
ddcbc4dbd5 Remove nodejs from test workflow (#1131) 2022-11-18 11:18:34 -08:00
Jamil
50b2ab83a0 Only test when view is mounted (#1130) 2022-11-18 11:18:17 -08:00
Jamil
5be9b2003b Bump Elixir to 1.14.2, OTP to 25.1.2 (#1129)
* Bump Elixir to 1.14.2, OTP to 25.1.2

* bump tool versions
2022-11-18 09:55:54 -08:00
Jamil
340ec59109 Ensure phoenix 1.7 is in subproject (#1128) 2022-11-18 08:01:27 -08:00
Jason G
d11d553731 Add google SAML doc and update existing guides (#1127) 2022-11-17 17:29:14 -08:00
Jamil
a235b84aba Add missing LOCAL_AUTH_ENABLED config (#1124) 2022-11-17 14:18:22 -08:00
Jamil
1054de6585 Fix intermittent assert_{patched,redirected} failures (#1125)
* Fix intermittent assert_{patched,redirected} failures

* Split into two

* Remove empty file dope
2022-11-17 11:58:58 -08:00
dependabot[bot]
529911fe7f Bump remote_ip from 1.0.0 to 1.1.0 (#1126)
Bumps [remote_ip](https://github.com/ajvondrak/remote_ip) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/ajvondrak/remote_ip/releases)
- [Commits](https://github.com/ajvondrak/remote_ip/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: remote_ip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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-11-17 07:47:56 -08:00
Jamil
11695393f7 Update Phoenix to 1.7.0-rc.0 (#1119)
* Update Phoenix to 1.7.0-rc.0

* Should maybe compile without warnings now

* step 1: verified routes

* Use verified routes sigil

* Fix typos

* Formatter not working\?

* Fix formatter

* fix formatter file list
2022-11-17 07:06:39 -08:00
Tore Anderson
6a3fb2bfc2 Allow btree_gist extension to preexist (#1122)
This commit has the exact same rationale as cc280dae, just for a
different extension that I unfortunately missed the first time around.

This time I searched the repo for occurrences of `CREATE EXTENSION`
instead of the name of the extension causing the error, so hopefully I
did not miss anything else.
2022-11-17 06:24:34 -08:00
Jamil
afe50ad248 Conventional Commits (#1116)
* chore: add conventional-commits

* Use branch for conventional commits

* Remove dupe workflow 🔨
2022-11-16 08:28:51 -08:00
Tore Anderson
cc280dae50 Allow pgcrypto extension to preexist (#1114)
The CREATE EXTENSION query requires superuser privileges, which means
that the Firezone container may not be allowed to execute it when
accessing an externally hosted database, resulting in the database
failing to initialise properly.

One potential workaround to this problem is to have the database admin
ascertain that the pgcrypto extension is already present and ready for
use, prior to starting the Firezone container for the first time.

Unfortunately, however, this currently fails in the following manner:

14:42:44.731 [info] execute "CREATE EXTENSION pgcrypto"
** (Postgrex.Error) ERROR 42710 (duplicate_object) extension "pgcrypto" already exists

Adding the IF NOT EXISTS condition to the CREATE EXTENSION query should
allow it to succeed.
2022-11-16 07:28:06 -08:00
Jamil
a994f3f350 Update esaml to properly parse signed assertions (#1113)
* Update esaml to properly parse signed assertions

* Add Jumpcloud SAML doc

* Add required fields to config

* Add required fields to config

* Fix typo

* Formatting

* Minor fixes

* More clarifying

* yet more typo fixes

* Fix test
2022-11-15 21:34:31 -08:00
Jamil
1df5db4251 Support end_session_uri, custom redirect_uri and PKCE (#1110)
* Checkpoint PKCE; Refactor state

* tests passing

* id_token_hint working

* Fix WGAdapter setting

* what happened to redirect_uri

* Add redirect_uri custom

* Remove dbg

* Fix nil logout

* session cleanup

* Remove unneeded fixtures

* redis disable

* Fix tests
2022-11-15 18:28:26 -08:00
Jason G
d4063e3032 Add onelogin and okta SAML docs (#1108)
* add onelogin doc

* add okta doc

* add okta and onelogin to main README

* wording and grammar

* remove SLO for now

* lint and table formatting

* trailing whitespace

* Update docs/docs/authenticate/saml/okta.mdx

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Jason G <jason@firez.one>

* Apply suggestions from code review

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Jason G <jason@firez.one>

* move provider support to top

Signed-off-by: Jason G <jason@firez.one>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-15 12:55:01 -08:00
dependabot[bot]
9b531dd19b Bump rubocop from 1.38.0 to 1.39.0 (#1106)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.38.0 to 1.39.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.38.0...v1.39.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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-11-15 09:06:25 -08:00
thermionic
eae4f1d9e5 Updated upgrade.mdx "docker-compose" to "docker compose" (#1112)
as docker compose v2 is now required for the install script, it makes sense to use the same in the docs...

Signed-off-by: thermionic <thermionic@lovius.net>

Signed-off-by: thermionic <thermionic@lovius.net>
2022-11-15 09:05:48 -08:00
Jamil
245f3d2d93 Backlink config reference to configure guide (#1107)
* add note on configuring

* typo

* Backlink to configure guide

* add note to docker
2022-11-15 08:52:03 -08:00
Jamil
911a82ce05 Update README.mdx
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-09 07:29:59 -08:00
Jamil
7bbf993eed Update README.mdx
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-09 07:29:38 -08:00
Jamil
9b1982c408 Fix omnibus install link
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-11-09 00:18:11 -08:00
Jamil
c56bd7f85b Add AsyncAPI WIP (#1104)
* Add AsyncAPI WIP

* Gateway asyncapi
2022-11-08 17:14:25 -08:00