Commit Graph

1766 Commits

Author SHA1 Message Date
Andrew
df969bdb23 Fix nil device error for stats push service and use live WireGuard adapter in dev. (#825)
* Conditionally start WireGuard sandbox adapter if set in app env

* Use Live wg adapter module in dev, sandbox in test. fz_vpn supervised children from app env
2022-07-25 11:47:58 -07:00
Po Chen
f86e080471 Fix handling invalid client reason (#828)
* Catch different reasons

* redirect
2022-07-25 11:47:58 -07:00
Andrew
b70b65a408 Make phoenix crash detection configurable. (#813)
* Add toggle to firezone config for phoenix crash detection

* Add config option to docs & polish table layout a bit

* Add comment explaining crash detection toggle
2022-07-25 11:47:58 -07:00
Andrew
2f11771d59 Update install script and docs for Cloudsmith package repo (#809)
* Update install script to setup and install firezone from cloudsmith repo

* silence source repo file not found when removing

* Update docs with cloudsmith repo instructions, add feedback message to uninstall

* Fix supported platforms link

* add upgrade note to post install pkg script & only grep config file for check if it exists

* Clean up install server doc links

* use apt-get instead of apt, add RHEL 7,8,9 & OLS 7,8,9

* Use more cross platform compatible terminal text styles
2022-07-25 11:47:58 -07:00
Gabi
76f6e53cfd NFTables fixes (#804) 2022-07-25 11:47:58 -07:00
Jamil
5c71686b24 Only handle interface change on changes (#811) 2022-07-25 11:47:58 -07:00
Jamil Bou Kheir
ef5630f94f Fix linter error 2022-07-25 11:47:58 -07:00
Po Chen
6bd66dc711 Logo Customization (#800) 2022-07-25 11:47:58 -07:00
Jamil
0c433b848f Remove old interface when changing names (#805)
* Remove old interface if it's going to be changed

* Remove old interface
2022-07-25 11:47:58 -07:00
Jamil
e0fa00c859 Use to_atom/1 for some ssl_opts keys (#806) 2022-07-25 11:47:58 -07:00
Jamil Bou Kheir
4b8b0c39ce Fix endpoint typo 2022-07-25 11:47:58 -07:00
Jamil
2de119a49e Docker dev polish (#803)
* checkpoint

* Docker dev environment final root cause analysis

* Update CONTRIBUTING.md

* Update apps/fz_common/lib/fz_net.ex

Co-authored-by: Po Chen <chenpaul914@gmail.com>

Co-authored-by: Po Chen <chenpaul914@gmail.com>
2022-07-25 11:47:58 -07:00
Andrew
7a14f178a4 Add telemetry data to the ping event (#801)
* Add telemetry data for feature configs and other useful stats

* use conf helper in more places & unit tests for ping_data

* include db url setting, improve unit tests
2022-07-25 11:47:58 -07:00
Jamil
9925f43f16 Add sample users/devices (#802) 2022-07-25 11:47:58 -07:00
Jamil
7cc428a6ea Remove elixir/erlang from prod build (#799)
* Don't install erlang/elixir to embedded path; only used for build

* bump deps

* Use custom path

* More efforts to shrink final package size

* Change prefix

* fix path
2022-07-25 11:47:58 -07:00
Po Chen
bfbb671d32 Docker DEV (#737) 2022-07-25 11:47:58 -07:00
Jamil
55a19c994c Remove nodejs and python from build (#796)
* Try removing nodejs

* Add nodejs plugin

* Remove unused nodejs and python builds

* skip adding nodejs plugin
2022-07-25 11:47:58 -07:00
Andrew
69a4412d75 Remove pre-configured Okta & Google OAuth providers (#793)
* Remove pre-configured Okta & Google OAuth providers, update docs

* Upgrade docs clarifications & remove unused auth code for pre-configured providers (google/okta)

* Fix docs url for upgrade note
2022-07-25 11:47:58 -07:00
Po Chen
48d8ea75a9 Implement PKCE (#789)
* use to_existing_atom

* implement pkce

* fix and add tests

* Update apps/fz_http/lib/fz_http_web/controllers/auth_controller.ex

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2022-07-25 11:47:58 -07:00
Jamil
4687220684 Acme support (#779)
* Bump nodejs to 16 lts (#772)

* Move docs to Docusaurus (#726)

* wait 10

Co-authored-by: Andrew <andrew@firezone.dev>
Co-authored-by: Chetan Verma <chetan61verma@gmail.com>
2022-07-25 11:47:58 -07:00
Jamil Bou Kheir
7a8ac0da42 Rebase onto master 2022-07-25 11:47:58 -07:00
Po Chen
90c63f1db5 use x-forwarded-for in addition to x-real-ip (#785) 2022-07-25 11:47:58 -07:00
Andrew
0a4f08665d Use toggle for vpn connection permission (#787)
* Add ui refresh of danger zone section for user view

* Use large switch style

* Go back to medium style for toggle
2022-07-25 11:47:58 -07:00
Andrew
3e39339643 Improve user vpn connection status ui (#784)
* Update VPN Connection column with status tag, update docs explaining tags under authenticate section

* Fix events test warning

* Fix formatting

* Fix docs lint

* Move vpn status doc to fix doc lint

* Use div instead of label for tag root, update oidc language

* Refactor vpn status component for pr feedback

* use a component instead of a live one
2022-07-25 11:47:58 -07:00
Andrew
6dbd5cc59d Update egress rules user guide with user scope ui (#782)
* Update egress rules user guide with user scope ui

* Fix user scope description

* Update egress rules view with correct user scope text & corresponding doc img

* Revert previous doc text
2022-07-25 11:47:58 -07:00
Jamil Bou Kheir
f1af5ddf2f wait 10 2022-07-25 11:47:58 -07:00
Chetan Verma
afefde7110 Move docs to Docusaurus (#726) 2022-07-25 11:47:58 -07:00
Po Chen
abd5085ab8 fix build (#778) 2022-07-25 11:47:58 -07:00
Andrew
9eefca1de5 Bump nodejs to 16 lts (#772) 2022-07-25 11:47:58 -07:00
Andrew
a75dfa3073 Add redirect routes for oidc signin links by provider (#770)
* Add redirect routes for oidc signin links by provider

* whitespace fix

* restore comment

* Add oidc redirect route helper to auth template for sign-in buttons

* Update docs to mention pretty URLs.

* Fix docs
2022-07-25 11:47:58 -07:00
Gabi
f5806a2d8a Replaces nftables rule management to use sets (#766)
* Replaces nftables rule management to use sets

Fixes firezone/product#398

* Fix fz_wall not existing function

* Minor tidy up

* Refactor tests and projections

* Refactor fz_wall state to use map instead of tuple

* Minor fix
2022-07-25 11:47:58 -07:00
Andrew
d49e44c3fc Update rules UI to include optional user scope (#764)
* Add optional user scope field to Rules UI

* Build a users map and use for rule list table

* Include current user in user scope options

* Add user scope tests to live rule view test

* Finish adding/removing scoped rule tests

* Add rules number field to user detail view with link to rules page

* Woops, forgot to define destination in remove scope test

* Only add rules path to user_details template for auth'd views.

* Use socket for rules_path router & remove user options logic from view

* Update fw rules guide to explain user scoped rules
2022-07-25 11:47:58 -07:00
Andrew
93ea4f42e3 Bump chef client in firezone cookbooks Gemfile to 17.10.0 (#755) 2022-07-25 11:47:58 -07:00
Gabi
8888839e97 add user id to rules (#722)
* checkpoint

* Add and delete functions for multiple rules

* Update delete device to delete user rules

* Fix tests

* Improve testing

* Multiple suggested small improvments

* Swap call order on update device

* Fix rule deletion for users/devices

* Fix deletion for multiple rules

* Remove device deletion by pubkey

* Fix multiple rule deletion in case of handle change

* Optimize sql query for getting nftable spec rules

* Fix rule deletion when same daddr

* Fix rule deletion to account for whitespace at the start of line

* Improve rule duplicate error message

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
2022-07-25 11:47:58 -07:00
dependabot[bot]
be688962a3 Bump JamesIves/github-pages-deploy-action from 4.2.2 to 4.4.0 (#838)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/JamesIves/github-pages-deploy-action) from 4.2.2 to 4.4.0.
- [Release notes](https://github.com/JamesIves/github-pages-deploy-action/releases)
- [Commits](https://github.com/JamesIves/github-pages-deploy-action/compare/v4.2.2...v4.4.0)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:29:55 -07:00
dependabot[bot]
b0e3bef27d Bump gettext from 0.19.1 to 0.20.0 (#844)
Bumps [gettext](https://github.com/elixir-gettext/gettext) from 0.19.1 to 0.20.0.
- [Release notes](https://github.com/elixir-gettext/gettext/releases)
- [Changelog](https://github.com/elixir-gettext/gettext/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elixir-gettext/gettext/commits)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:27:17 -07:00
dependabot[bot]
57aad6af92 Bump rubocop from 1.30.0 to 1.32.0 (#839)
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.30.0 to 1.32.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.30.0...v1.32.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:27:05 -07:00
dependabot[bot]
34fa68b6c3 Bump phoenix_live_view from 0.17.10 to 0.17.11 (#840)
Bumps [phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view) from 0.17.10 to 0.17.11.
- [Release notes](https://github.com/phoenixframework/phoenix_live_view/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_live_view/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_view/compare/v0.17.10...v0.17.11)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:26:56 -07:00
dependabot[bot]
91020f89d7 Bump phoenix_html from 3.1.0 to 3.2.0 (#841)
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/phoenixframework/phoenix_html/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v3.1.0...v3.2.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:26:43 -07:00
dependabot[bot]
35b717e8d0 Bump dialyxir from 1.1.0 to 1.2.0 (#842)
Bumps [dialyxir](https://github.com/jeremyjh/dialyxir) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/jeremyjh/dialyxir/releases)
- [Changelog](https://github.com/jeremyjh/dialyxir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeremyjh/dialyxir/compare/1.1.0...1.2.0)

---
updated-dependencies:
- dependency-name: dialyxir
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:26:31 -07:00
dependabot[bot]
133b1fb2d3 Bump ueberauth_identity from 0.4.0 to 0.4.2 (#843)
Bumps [ueberauth_identity](https://github.com/ueberauth/ueberauth_identity) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/ueberauth/ueberauth_identity/releases)
- [Changelog](https://github.com/ueberauth/ueberauth_identity/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ueberauth/ueberauth_identity/commits)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:26:19 -07:00
wwuck
8e6b4396bf Enable dependabot (#814)
* Create dependabot.yml

* Add pinning for pre-commit dependency version
2022-07-20 07:53:59 -07:00
Po Chen
9857b5cad7 Update test.yml (#790) 2022-07-08 11:19:27 -07:00
Po Chen
7c720f3bd8 Add cloudsmith publish (#783)
* add cloudsmith publish

* add more distributions

* build on tag or dispatch

* add attribution

* rename

* Update publish.yml
2022-07-07 15:43:49 -07:00
Po Chen
8baa6b1c0f fix ci (#781)
* fix ci

* take 2
2022-07-05 08:47:52 -07:00
Jamil
1fcb45ced4 Parallelize CI builds for tests (#780)
* Parallelize CI builds for tests

* NodeJS 16
2022-07-02 15:26:53 -07:00
Jamil
609aaecfe9 Remove unused workflow; don't run release_drafter except on master (#775)
* Remove unused workflow; don't run release_drafter except on master

* use correct syntax for string literal
2022-07-01 01:35:30 -07:00
Jamil
47956c8018 Fix google redirect uri (#774)
* Google requires trailing slack in redirect_uri

* Bump deps
2022-07-01 00:03:24 -07:00
Jamil
6442439378 Telemetry check service (#771) 2022-06-30 09:34:03 -07:00
Jamil
f461ef84c6 Option to disable masquerade (#769)
* Option to disable masquerade

Fixes #666

* Fix markdown lint issues

* Reflow text

* Fix markdownlint errors

* Clean up conditional
2022-06-29 17:21:37 -07:00