Commit Graph

116 Commits

Author SHA1 Message Date
Jamil
febbe806d6 use hostname, not public ip (#1041) 2022-10-18 14:23:30 -07:00
Jamil
b20b1336c4 docker_install -> install (#1040)
* Use install.sh

* rename docker_install -> install
2022-10-18 12:03:52 -07:00
Jamil
f0df5899c7 Don't kernelCheck and wireguardCheck for docker
Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
2022-10-18 11:58:11 -07:00
Jamil
eb5a401f2a Rename docker install script (#1036)
* docker install

* Remove Linux enforcement from auto install
2022-10-17 15:20:48 -07:00
Jamil
4e3d8dcb62 Sleep in docker install script (#1031) 2022-10-17 08:42:55 -07:00
Jamil
d963929c07 0.6.0 (#1004)
* 0.6.0

* Make OIDC and SAML user provisioning configurable per-provider (#1015)

* Got ugly migration to work

* Move auto_create_users to per-provider config

* Update deps to bust cache

* Update Process sleep

* Update docs with Auto create users

* working migration script (#1013)

* Add telem for Docker and SAML (#1020)

* Add telem for Docker and SAML

* Omit unneeded format
2022-10-13 15:22:53 -07:00
Jamil
701c36868e revert script name for now (#988) 2022-09-29 08:23:32 -05:00
Jamil
dd67baf629 Build docker image in build workflow; Update automatic install to use Docker (#983)
* Test docker prod build in CI

* Need uses

* Set build-args

* Split builds

* Fix build-args format

* wtf

* hmmm

* Jeebus

* build version based on drafted release

* Build multi-platform images

* Only build for supported platforms

* Use newer OTP fingers crossed

* Use OTP 24 for arm64

* Finalize test build of Docker image

* Update comment

* Bump to OTP 25.1

* Use proper ver

* D'oh proper sha

* Use OTP 24 and install python for node build

* Use new Docker base

* Use python3

* Use newly-built base images with other platform support

* Don't build for ppc64le and s390x

* Build only for amd64/arm64

* Don't rebuild on publish; simply copy

* See where the image is being pushed

* Remove echo

* Add docker updates

* Match platforms from base image

* Use docker-compose over docker compose

* Use our own base

* we need python3

* use consistent service name

* trim trailing slash from external_url

* Build for latest tag in staging
2022-09-29 08:20:32 -05:00
Andrew
be565a6897 Install script UX: ask to load wireguard mod & install missing deps for Debian repo (#907) 2022-08-09 14:23:29 -07:00
Andrew
c14c8463e0 Remove sudo from install script (#852) 2022-07-26 11:38:37 -07:00
Jamil
76ab472b87 Telemetry timeouts (#836) 2022-07-25 11:47:58 -07:00
Andrew
ef7ee0eebe Guard tput calls for errors from CI (#827) 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
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
Po Chen
bfbb671d32 Docker DEV (#737) 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
97a7089194 Detect Fedora 36 2022-06-28 16:59:11 -07:00
Jamil
fb5d242330 Dont error for failed capture calls (#735) 2022-06-19 15:56:49 -04:00
Jamil
f84df97c86 Update install script to support Ubuntu 22.04 (#733) 2022-06-18 10:52:46 -04:00
Jamil
38072974a8 Update install.sh
More descriptive distro check
2022-06-01 11:10:28 -07:00
Jamil
500faf813a Bump all runtimes; use simpler version function for app version (#634) 2022-05-19 07:38:16 -07:00
Jamil
0d7939527d Fix kernelCheck order (#555) 2022-04-26 10:39:25 -07:00
Jamil
3d9f970b86 Add support for CentOS derivatives (#552)
Fixes #550
2022-04-22 09:18:24 -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
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
923b6bd015 Match on Ubuntu 20.04 or 21.04 (#531)
Fixes #523
2022-04-08 14:02:31 -07:00
hieultan
d07386d7e3 Fix escape character error (#526) 2022-04-07 05:23:18 -07:00
Jamil
4fa5bedf1b 500/fix redirect local auth (#509)
* Allow config of ext url; show this after create-admin

* Use opts for ueberauth

* weird nil error

* get_env vs fetch_env

* Use integer

* Try new external_url thingo

* Fix callback_url

* Fix path suffix

* Fix markdownlint hiccup

* fix create admin

* Differentiate phoenix_port

* cron note; installscript fix; minor fqdn fixes

* Send full node obj to app_env

* Add db pass to config file
2022-04-05 14:43:00 -07:00
Jamil
cf774532dc Use public_ip for fqdn in install (#508)
* Use public_ip for fqdn in install

* Fix missing operand
2022-03-18 15:46:14 -05:00
Mark Percival
1bbc83bbcd Detect kernel module on install (#504) 2022-03-15 16:57:09 -05:00
Jamil
60f34ce6d9 add install bash script (#459)
* issue-187: getting some POC in for feedback 🐼

* updating install script

* install condition for dep|rpm 🐉 🔧

* ci checks looks like whitespace :ruby: :police:

* linter hrm maybe I run that locally

* :retab and match file extensions with neiborhing scripts

* using hostnamectl data to help determine which release to download

* self review

* testing on ubuntu reveals some logic to fix

* not sure if wireguard is on any of these images using this find process

* changes based on testing feedback

* using curl over wget to download the package

* applying changes from the test branch

* updating kernel check logic

* removing debugging code

* adding -r option when displaying kernal info

* Add install script polish (#493)

* Add install script polish

* don't remove firewall table

Co-authored-by: Debian <admin@ip-172-31-5-138.us-west-2.compute.internal>
Co-authored-by: Rob Ortiz <rob@dragonwrench.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-1-124.us-west-2.compute.internal>
Co-authored-by: Rob Ortiz <robert.ortiz@gmail.com>
Co-authored-by: Rob Ortiz <robert.a.ortiz@gmail.com>
2022-03-04 10:38:25 -08:00
Jamil
a91c2db887 0.3.0 (#465)
* Found endpoint empty bug

* Fix use_site_ bugs

* Generate private keys client-side instead of on the Firezone server (#451)

* Rename events; add crypto lib

* seemingly working keygen

* Checkpoint

* Remove private key from devices; make tests pass

* Refactor auth to use simplified new router helper

* Fix js bundle

* Refactor event listeners into their own file

* Refactor settings

* Fix JS

* Working live views in unprivileged sections

* Rough draft working

* Checkpoint before fixing tests

* Tests passing

* Max devices per user configuration option (#471)

* Max tunnels per user configuration option

* Clean up remaining tunnel references

* Replace local auth system with Ueberauth / Guardian (#475)

* Checkpoint working authentication

* Working admin and unprivileged auth using Guardian

* Remove Sessions cruft

* More cleanup

* load new secrets

* Remove firezone tmp dirs

* Okta and Google Oauth (#485)

* working oauth!

* Remove keycloak; working google

* Ensure nil to_s

* Passing tests

* Add compile-time prod config

* Fix live_view typo

* Revert key_ttl to vpn_session_duration

* print logs after first configure

* Use get_env/1 for fetching optional config vars

* Disable telemetry from config

* miss the to_s

* Fix sign in page

* add tunnel admin guide

* auth path

* Fix tests

* Device editing no more (#491)
2022-03-04 09:32:13 -08:00
Jamil Bou Kheir
5a019cd57e Use telemetry_id file 2022-02-05 13:44:16 -08:00
Jamil Bou Kheir
c435eafa70 Remove unneeded script 2021-12-15 18:01:52 -08:00
Jamil Bou Kheir
e2bab17efb Add git_sha script 2021-12-15 14:06:01 -08:00
Jamil Bou Kheir
42776313f5 Fix version population during prod build 2021-11-15 17:07:10 -08:00
Jamil Bou Kheir
b362afe7a2 Suppress omnibus load error 2021-11-05 12:52:24 -07:00
Jamil Bou Kheir
bdb86b3f9f Use Omnibus to generate semver 2021-11-04 10:28:42 -07:00
Jamil Bou Kheir
f1d36a378c Fix openSUSE uninstall 2021-10-14 08:16:22 -07:00
Jamil Bou Kheir
cff0b7e488 Fix uninstall script 2021-10-07 21:38:36 +00:00
Jamil Bou Kheir
4b26038154 Fix teardown command 2021-10-05 14:36:21 -07:00
Jamil Bou Kheir
9f0009da96 Teardown recipe 2021-10-05 11:42:45 -07:00
Jamil Bou Kheir
b779e7618a Use shell conditionals appropriately 2021-09-27 13:20:28 -07:00
Jamil Bou Kheir
07b0594269 Keep going 2021-09-26 14:48:30 -07:00
Jamil Bou Kheir
fe02faa91e install/uninstall better instructions 2021-09-23 23:36:40 -07:00
Jamil Bou Kheir
aac1f2ea4c Functional test and more cleanup 2021-09-16 20:39:04 +00:00
Jamil Bou Kheir
a8df3b7a3f Avoid bash 2021-09-12 22:15:10 +00:00
Jamil Bou Kheir
f432685d87 Add ExDoc, remove old packaging system 2021-09-09 20:57:48 +00:00
Jamil Bou Kheir
99bd1a795a Checkpoint before move to Omnibus 2021-08-04 07:39:36 -07:00
Jamil Bou Kheir
2a0f22914f Update location of functional test 2021-08-03 17:01:28 -07:00