Commit Graph

1620 Commits

Author SHA1 Message Date
Po Chen
4922ff143c Show user on admin devices table (#598)
* Show user on admin devices table

* add link and test
2022-05-17 20:04:33 -07:00
Jamil
4b978959cd Use Release drafter at the end (#616)
* Use Release drafter at the end

* Draft releases on merges to master
2022-05-17 17:42:51 -07:00
Jamil
56a307861d Remove v prefix from resolved version 2022-05-17 17:24:45 -07:00
Jamil
0efa2a1df0 Bump deps (#612)
* Bump deps

* Fix erlang SHA256

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

Co-authored-by: Po Chen <chenpaul914@gmail.com>
2022-05-17 16:47:49 -07:00
Jamil
7bbe7411d9 Don't set default url opts in runtime (#611)
* Don't set default url opts in runtime

* Remove changes to config.exs
2022-05-17 16:47:39 -07:00
Jamil
ab6463a4af Fix reverse tunnel docs (#613) 2022-05-17 15:59:48 -07:00
Andrew Rousset
9d60f8b218 Make Set-Cookie secure attribute false in dev environments (#363 product) (#610)
Co-authored-by: Andrew Rousset <akr@valkyrie.local>
2022-05-17 15:16:40 -07:00
Po Chen
dd873d7c11 Dev on https (#603) 2022-05-17 15:15:47 -07:00
Jamil
ef3966ce82 Don't enable IPv6 forwarding if IPv6 isn't enabled. (#609)
Fixes #600
2022-05-17 15:15:08 -07:00
Jamil
11a2045b18 Increase QR code area by 2.25x (#608) 2022-05-17 13:01:31 -07:00
Po Chen
c161407a06 Migrate allowed ips on devices to text (#602)
* migrate allowed ips on devices

* migrate allowed ips on sites

also split into up and down
because modify field cannot rollback automatically
2022-05-17 12:39:59 -07:00
Jamil
0ded5d97ba Add file locations to docs (#607)
* Add phoenix listen address

* Fix listen address

* Add file locations to docs
2022-05-17 11:28:22 -07:00
Jamil
b91848d756 Add phoenix listen address (#604)
* Add phoenix listen address

* Fix listen address
2022-05-17 11:27:49 -07:00
Po Chen
4598a4e213 replace moment with Intl.DateTimeFormat (#597) 2022-05-15 19:54:54 -07:00
Po Chen
2139762bca fix mobile modal (#596) 2022-05-15 17:49:00 -07:00
Jamil
751f985b7b Fix default config (#593) 2022-05-13 10:51:36 -07:00
Po Chen
1454c32a5a fix mock (#592) 2022-05-12 23:03:18 -07:00
Po Chen
c7e003353b Password reset (#584)
* send reset email

* migrate password reset to magic link

* finish up magic link

* add module doc for AuthEmail

* allow changing email and password

* update wording

* make credo happy

* add tests

* unwrap early

* add one more test

* renames

* add text alternative

* rename

* use bulma level

* disallow changing own email

* always pass down current user

* fix text email

cannot be heex

* Add brace back
2022-05-12 21:40:38 -07:00
Jamil
c990ea8691 Get OIDC working with Okta, Azure (#590) 2022-05-12 21:37:33 -07:00
Jamil
81da9ce893 Fix unprivileged device access (#589) 2022-05-12 17:01:26 -07:00
Mark Percival
055232ce46 Implement OpenID Connect for authentication (#586)
Implements the OpenID Connect standard for SSO Authentication
which allows users to use any OpenID Connect provider for authentication
not just a predefined list of providers

User can add OIDC config settings to firezone.rb which will then
populate the AUTH_OIDC environment variable as a JSON string.

FZ_HTTP will use this environment variable to create
provider(s) to authenticate against

Additional notes:
- Updates .env.sample to include an example of a 'stringified' JSON
environment variable for setting AUTH_OIDC in development
- Add dep for 'openid_connect' and test dep for 'mox'
2022-05-12 10:37:08 -07:00
Jamil
90c8ece94f Run CI pipeline on pull requests (#587)
Allows CI to run for approved outside collaborators
2022-05-12 07:50:16 -07:00
Po Chen
298b353ebe Implemet Outbound emails (#576)
* add mailer

* setup configs

* only setup mailer if from_email is present

* Do not assume OUTBOUND_EMAIL_FROM exists

* update docs

* add usage of mailer as tests

* address comments
2022-05-09 14:50:22 -10:00
Po Chen
fb29b1ee41 Add release drafter (#581) 2022-05-09 12:33:06 -10:00
Po Chen
85ec3defe3 Implement promote/demote feature (#569)
* Implement promote/demote feature

force reconnect

* improve user fixture creation

* add tests

* format

* refactor

* alias
2022-05-07 07:21:30 -07:00
Po Chen
b993584496 Update CONTRIBUTING.md (#577)
* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2022-05-05 16:54:30 -07:00
Po Chen
0a46a60389 Sync runtime versions with .tool-versions (#578) 2022-05-05 16:53:50 -07:00
Jamil
8293d41db7 Display latest_handshakes in device views (#572)
* Display latest_handshakes in device views

* Display latest handshake timestamp

* Move text check outside loop
2022-05-05 16:52:41 -07:00
Po Chen
b761db50da update more dev configs (#575) 2022-05-05 06:58:32 -07:00
Mark Percival
7d01b49b98 Update devcontainer settings (#574)
- Add some packages to help with development (jq, nftables)
- Clean up env locale and install en_US
- Fix init script failure on *nix
- Add some ruby vscode extension
2022-05-05 05:21:48 -07:00
Jamil
53d8f0803a Don't remove cookies twice (#571) 2022-05-03 15:57:10 -07:00
Jason G
d0fad02c1b Update twitter link on docs + readme (#570)
* update footer link

* update readme and docs config
2022-05-03 15:55:07 -07:00
Po Chen
4f2bc99501 Use per platform initialize command (#565) 2022-05-02 07:51:19 -07:00
Jamil
cb93ec0312 Fix VPN session duration options for select (#568)
* Fix VPN session duration of Once

* Fix expected durations
2022-05-02 06:48:34 -07:00
Po Chen
64eaa40781 select correct initial value (#566)
* select correct initial value

* Add test

* Update security_test.exs

* Update security_test.exs

* Update security_test.exs

* cleanup
2022-05-02 05:26:09 -07:00
Jamil
4acd54b050 Fixes for local development (#562)
* Fixes for local development

A few issues that I ran into getting this up on my local machine.
I also made sure it works now properly on Github Codespaces which
will hopefully make it easier for devs to get started.

- Username/Pass docs updated to correct values
- Add runtime.exs and migrate releases.exs over to it as recommended by
Elixir 1.11 release notes
- Update Endpoint to allow for proxy passed headers if enabled with
PROXY_FORWARDED
- Add missing .env file section to CONTRIBUTION
- Add a sample .env file (.env.sample) to help getting started
- Update docs to show how to use Github Codespaces with an external
URL.
- Remove unused alias from dev (which I think doesn't work anyway due to
compile time restrictions, only in runtime or releases.exs)
- Ensure pre-commit is in path and available on devcontainer
- Simplify some docker commands, remove unneeded ports.

* Update runtime.exs with resolved conflicts

Co-authored-by: Mark Percival <m@mdp.im>
2022-04-29 08:23:20 -07:00
Jamil
fd14582f20 Add docs section on running raw SQL queries against the Firezone DB (#561)
* Add docs section on running raw SQL; update nokogiri;

* Remove top-level heading size requirement
2022-04-28 09:46:10 -07:00
Jamil
908cfc7dff 522/allow disabling of config creation (#559)
* Checkpoint

* Optionally hide device mgmt buttons
2022-04-27 15:20:33 -07:00
Jamil
2eb5a24a13 Add device descriptions (#557)
* Add device descriptions

Fixes #484

* Remove inaccurate test description
2022-04-27 09:34:07 -07:00
Jamil
b9142e138b kernelCheck on installing package (#556)
Fixes #541
2022-04-26 14:20:33 -07:00
Jamil
0d7939527d Fix kernelCheck order (#555) 2022-04-26 10:39:25 -07:00
Mark Percival
04ad5d5134 Add devcontainer, update dev setup (#554)
- Add a devcontainer to allow development on Codespaces
  - Dockerfile for the dev environment
  - docker-compose for postgres service
  - Use .tool-version and asdf to setup docker dev
- Update dev instructions to fix issue where tests fail when seed is
run before tests, causing certain tests to fail (mostly next ip tests)
2022-04-26 10:38:25 -07:00
Jamil
3d9f970b86 Add support for CentOS derivatives (#552)
Fixes #550
2022-04-22 09:18:24 -07:00
Jamil
0d3afc09a4 Process wg show ... dump (#546)
* Process wg show ... dump

* Add byte to human functions

* Passing tests

* Update stats

* drop session when signing out

* Start stats push service

* Sandbox config bool

* conver to int
2022-04-20 16:29:26 -07:00
Jamil
1740481055 Update public-facing links to firezone.dev (#548)
* Update public-facing links to firezone.dev

* Fix docs lint error

* Update docs Gemfile to latest gems

* Update npm packages
2022-04-20 06:43:55 -07:00
Jason G
6991a6c9d8 update link (#543) 2022-04-15 11:17:45 -07:00
Jamil
2c5078e63f Add WireGuard preshared-keys to devices (#542)
* Add PSK support

* Add HTTP registered application name

* Better kernel check message

* Does order matter\?
2022-04-15 09:56:56 -07:00
Jason G
a8cbfda7a1 Clarify upgrade instructions 0.3.1 to 0.3.2 (#538)
* clarification

* grammar
2022-04-12 07:29:10 -07:00
Jamil
0c26b75825 Fix minor issues in install script (#536)
* Fix minor issues in install script

* Check for Linux
2022-04-11 14:24:08 -07:00
Jamil
73ae497385 enabeld -> enabled (#535) 2022-04-11 12:32:48 -07:00