Commit Graph

28 Commits

Author SHA1 Message Date
Reactor Scram
8718cc9245 feat(windows): check in wintun x64 DLL 0.14.1 for #2758 (#2842)
Just adds the DLL and header

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2023-12-11 19:17:51 +00:00
Jamil
0d2079cd9b check yaml on CI workflow files (#2797)
May not be necessary since GitHub does this already, but for devs that
may be using pre-commit, this will check their YAML for syntax errors.
2023-12-06 16:10:59 +00:00
Jamil
da66264c84 Use larger builders for CPU-bound workflows (#2256)
- `ubuntu-22.04-firezone` is a 16-core builder for ~~kotlin~~ and docker
- ~~`macos-13-xlarge` is an M1 builder for Apple and docker arm64~~
- Configure the Gradle build cache
- Upgrade kotlin plugins, Android minSDK to 30, and gradle to 8.4


Edit: It appears that even using the largest runners for kotin and swift
don't speed the builds up that much (~30%), but will substantially
increase our cost, so I've reverted them to free.

Fixes #2210
2023-10-07 08:07:24 -07:00
Andrew Dryga
86f04bff63 Trace api app and finish file renames (#2069) 2023-09-14 00:24:40 -06:00
Jamil
504d118539 Announce 1.0 early access (#1791)
- Add 1.0 blogpost
- Update font to `Public Sans` since it has all weights and offers
better readability
- Various layout/style fixes
- Disable kotlin draft release job

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Dryga <andrew@dryga.com>
2023-07-17 22:48:35 +00:00
Jamil
8d8687224b Use pnpm over yarn (#1678)
Did some research when picking a package manager for the website and
settled on `pnpm` for the following reasons:

- CLI-compatible with `npm`
- Typically faster than even `yarn` especially on Apple silicon
- Security: Pnpm uses a different dependency resolution algorithm and
different folder structure of node_modules that prevents illegal access
to packages by other packages.

I think I caught all the places, but I may be missing something, so if
this isn't a good idea we can revert back.

This PR also cleans up the actions workflows to remove dead code.
2023-06-22 10:40:32 -07:00
Andrew Dryga
7498271ba3 Remove Elixir checks from pre-commit hook and rename CI step that runs it 2023-06-07 09:08:40 -06:00
Andrew Dryga
7857369614 Try to fix CI step 2023-06-06 17:18:45 -06:00
Andrew Dryga
c5615060b4 Remove fz_vpn, fz_wall, Omnibus and start restructuring apps 2023-03-31 09:51:40 -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
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
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
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
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
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
41ff3c3b3f Cache node deps; fix minor docs typos (#923)
* Minor typo fixes

* cache node deps

* Remove unneeded script

* Remove unneeded script

* Remove redundant lint-docs step...

* Cache nodejs for static anal

* npm ci before use

* limit markdownlint to docs for now

* Move markdownlint config to root
2022-08-18 21:01:04 -07:00
Jamil
4da7fd5a88 Cache deps for static analysis tools (#654) 2022-05-27 19:07:59 -07:00
Jamil Bou Kheir
1e135cff85 Rubocop 2022-02-05 15:42:25 -08:00
Jamil Bou Kheir
cbb7667fce precommit run 2022-01-29 16:35:27 -08:00
Jamil Bou Kheir
4c4b6d9a4f Update precommit for markdown 2022-01-29 16:27:57 -08:00
Jamil Bou Kheir
4f2d621933 Add end of line fixer 2021-12-30 08:20:34 -06:00
Jamil Bou Kheir
765976275e Add diagnostic pinger; default settings
Also don't display DNSservers when empty.

Fixes firezone/backlog#135
Fixes firezone/backlog#123
Fixes firezone/backlog#130

Refs #333
2021-12-09 15:24:10 -08:00
Jamil Bou Kheir
375581c732 Revert pre-commit exclusions 2021-08-12 17:55:11 +00:00
Jamil Bou Kheir
9f35a4b455 Use nftables, omnibus building 2021-08-12 17:54:36 +00:00
Jamil Bou Kheir
e2f341e6d8 m4 patch 2021-08-10 12:50:23 -07:00
Jamil Bou Kheir
63da9a2beb Add elixir to pre-commit 2020-05-04 23:53:58 -07:00
Jamil Bou Kheir
ef8ef54999 Testing pre-commit 2020-05-04 23:44:55 -07:00