Commit Graph

418 Commits

Author SHA1 Message Date
Andrew Dryga
a0bd6e3d5b Hotfix: silence warnings about self-service sign ups from Stripe 2024-04-19 13:32:19 -06:00
Andrew Dryga
d56b4e20f7 Hotfix: issues with directory sync metrics and error logs 2024-04-19 12:11:33 -06:00
Andrew Dryga
f965efd3d0 Add account slug to directory sync traces and logs 2024-04-19 11:31:05 -06:00
Andrew Dryga
5b153f9ba4 Provider a way to disable flaky Elixir tests on CI 2024-04-19 11:27:31 -06:00
Andrew Dryga
0d3d372ada hotfix: trim metric labels to 1023 chars 2024-04-19 11:12:06 -06:00
Andrew Dryga
cc81105320 Fix flaky test: Increase concurrency test timeout 2024-04-18 20:02:44 -06:00
Andrew Dryga
65fce8872a Fix flaky test 2024-04-18 18:08:21 -06:00
Andrew Dryga
1b1b44dcaa Defer job ignore to GenServer init 2024-04-18 17:05:31 -06:00
Andrew Dryga
89dd4c5a72 fix(portal): Fix bug with preset values in policies dropdowns (#4693)
Closes #4688
2024-04-18 16:52:02 -06:00
Andrew Dryga
ed3ce16ab4 Do not start supervisor when sync will not run 2024-04-18 16:50:26 -06:00
Andrew Dryga
823ab8aa54 Fix jobs sync span propagation 2024-04-18 16:48:03 -06:00
Andrew Dryga
d754b88a90 Fix background jobs node selection configs 2024-04-18 16:41:31 -06:00
Andrew Dryga
733f6b0b42 feat(portal): Broadcast relays presence to gateways and add invalidate_ice_candidates messages (#4685)
Closes #4634
Closes #4674
2024-04-18 16:08:48 -06:00
Andrew Dryga
79f199830e refactor(portal): Allow concurrent updates to synced actor/actor identities during sync (#4409) 2024-04-18 16:08:06 -06:00
Brian Manifold
4ba3cedf37 refactor(portal): Refactor client login to use HTML meta refresh and cookie (#4617)
The client authentication had previously been using liveview and passing
params around using URL query params. One of the issues with using
liveview for this task was that there edge case issues on certain
clients with the websocket connection. Along with that, to have even
more security during the login process, the query param values that were
passed after the client was authenticated have been moved to an HTTP
cookie with very strict flags set.

The deep link redirection now uses a new HTTP endpoint that returns a
302 with the deep link as the location, which is triggered using a
`<meta http-equiv="refresh">` tag on the client.
2024-04-16 19:47:16 +00:00
Andrew Dryga
e1ef5f1e69 chore(portal): Add one more test for relays lb (#4638) 2024-04-16 10:08:00 -06:00
Andrew Dryga
1ace6d4ad4 chore(portal): Change name and structure of relays presence event (#4623) 2024-04-16 05:11:43 +00:00
Jamil
c8917a58c5 refactor: Discord -> Slack (#4616)
Fixes firezone/bizops#82
2024-04-15 22:05:29 +00:00
Jamil
7775e5213e fix(portal): remove typo in manual command var (#4614)
This breaks copy-pasting the token from the Deploy Gateway page:

<img width="341" alt="Screenshot 2024-04-13 at 2 59 08 PM"
src="https://github.com/firezone/firezone/assets/167144/1cb6bc9e-e2ae-476b-85ac-7d0e1b635945">
2024-04-15 10:01:22 -06:00
Andrew Dryga
a0e69813c0 feat(portal): Broadcast relays presence updates to the client and return them in init (#4596)
`relays` will be removed from `prepare_connection` in a few weeks after
we release a version that reads them from `init` message. Keep in mind
technically `relays` list can be empty, it would be nice if clients
would log an error or show it in such cases.
2024-04-12 11:26:48 -06:00
Andrew Dryga
d575dc3866 hotfix: Remove runtime:false from Phoenix dep in domain app 2024-04-12 00:05:38 -06:00
Andrew Dryga
c074285dec Bump LoggerJSON version 2024-04-11 23:34:59 -06:00
Andrew Dryga
33389969f5 hotfix: set project_id for log formatter 2024-04-11 19:40:37 -06:00
Andrew Dryga
13d7312738 chore(portal): Try new LoggerJSON implementation (#4595) 2024-04-11 17:54:44 -06:00
Andrew Dryga
e031aeb9a9 hotfix: fix assumed event datetime format 2024-04-11 13:39:49 -06:00
Andrew Dryga
b6763f192b hotfix: set correct metric intervals 2024-04-11 11:50:45 -06:00
Andrew Dryga
5005b4e10a hotfix: change some metric kinds to be gauge instead of cumulative 2024-04-11 10:44:45 -06:00
Jamil
d1a3c3aeff style(docs): Use simple <pre> for monospace blocks (#4582)
- Add logs export example, fixes #4051 
- Use brand color palette for `pre` blocks

These have been updated to match our colorscheme.

Code blocks (\`\`\`elixir) will pull in the syntax highlighting but
these simple ones will use our color palette:

<img width="780" alt="Screenshot 2024-04-10 at 7 18 02 PM"
src="https://github.com/firezone/firezone/assets/167144/166cd5a7-c8cd-456b-a1c1-5faeab20d0f8">
2024-04-11 15:31:01 +00:00
Andrew Dryga
b30df80fc2 hotfix: typo in tests 2024-04-10 22:04:34 -06:00
Andrew Dryga
3d395895de hotfix: increase metrics buffer size and timeout 2024-04-10 20:45:27 -06:00
Jamil
3894967a31 fix(portal): Bump jose (#4581)
https://nvd.nist.gov/vuln/detail/CVE-2023-50966
2024-04-10 19:26:49 -07:00
Jamil
027db64322 refactor(docs): Docs polish iteration, add DoH known issue (#4579)
Fixes #4310

---------

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Co-authored-by: Brian Manifold <bmanifold@users.noreply.github.com>
2024-04-10 18:31:26 -07:00
Andrew Dryga
8f3c8160db hotfix: make sure metric interval bounds do not overlap 2024-04-10 16:47:11 -06:00
Andrew Dryga
45c644ec8a hotfix: fix reporter name 2024-04-10 15:12:15 -06:00
Andrew Dryga
b0590fa532 chore(portal): Send metrics to Google Cloud Monitoring (#4564) 2024-04-10 13:04:59 -06:00
Jamil
da3f95a9da chore(portal): normal weight for helptext (#4572)
FF is ok but on Chrome it's a bit hard to read:

<img width="451" alt="Screenshot 2024-04-10 at 6 51 19 AM"
src="https://github.com/firezone/firezone/assets/167144/3f152c4f-2903-4c26-b20e-5f239d39c28e">

`font-normal text-neutral-400`

<img width="518" alt="Screenshot 2024-04-10 at 6 56 57 AM"
src="https://github.com/firezone/firezone/assets/167144/c8d8dc59-b69b-468c-b9cb-d70c622a938f">
2024-04-10 14:43:16 +00:00
Andrew Dryga
439b9704b1 feat(portal): Allow completely deleting accounts (#4557)
We need "ON DELETE CASCADE" everywhere to fully erase account-related
data. As a safeguard measure the account can only be deleted after its
subscription in Stripe is cancelled.
2024-04-09 14:43:22 -06:00
Andrew Dryga
0b1ffd1339 chore(portal): Show support options on the billing page and remove features table (#4559)
Closes https://github.com/firezone/gtm/issues/237

<img width="1728" alt="Screenshot 2024-04-09 at 12 15 53"
src="https://github.com/firezone/firezone/assets/1877644/594a765d-363e-424d-bd70-0d9e1b1f50fa">
2024-04-09 14:42:48 -06:00
Andrew Dryga
98b49fd34d fix(portal): Show count of returned records instead of page size (#4558)
Closes #4556
2024-04-09 17:25:22 +00:00
Brian Manifold
0d65d016b7 feat(portal): Add API Client UI (#4023)
Why:

* As work on the portal REST API has begun, there was a need to easily
provision API tokens to allow testing of the new API endpoints being
created. Adding the API Client UI allows for this to be done very easily
and will also be used once the API is ready to be consumed by customers.

Closes #2368
2024-04-09 16:05:17 +00:00
Brian Manifold
c37882148d refactor(portal): Update actor group selection in portal (#4467)
Why:

* When creating or editing an actor, the previous form had a
multi-select input that would list all groups in the account. In order
to select or deselect groups, you would need to hold down ctrl or cmd on
the keyboard and click a given group. This worked when there were a very
small number of groups, but if an account had a moderate number of
groups it became very difficult. Along with that, it was also easy to
accidentally forget to hold down ctrl/cmd and click a group, which would
clear all previously selected groups. This commit moves the group
selection out from the new/edit actor pages and creates a new actor
group edit page that allows a user to search for groups as well as
making it easy to select which group should be added or removed.

Fixes #4372 

<img width="1008" alt="Screenshot 2024-04-03 at 1 37 25 AM"
src="https://github.com/firezone/firezone/assets/2646332/bca9163b-bbaf-49ef-b3b9-8c6770e8c307">
2024-04-09 02:56:54 +00:00
Andrew Dryga
95a7186953 chore(portal): Fix flaky tests (#4543)
Closes #4509
2024-04-08 10:13:37 -06:00
Andrew Dryga
1078c292d3 fix(portal): Ship hotfixes for various crash reports discovered in logs (#4538)
I'll merge and push this right away to prevent users from hitting edge
cases and our monitoring from triggering alerts.
2024-04-08 02:20:26 -06:00
Andrew Dryga
cb56d768f4 revert(portal): "chore(portal): Save MAU billing for a future feature update (#4414)"
This reverts commit 6b9231a21b.
2024-04-08 01:29:31 -06:00
Jamil
6b9231a21b chore(portal): Save MAU billing for a future feature update (#4414)
Just updating the UI to be a bit more consistent.

Will be nice to offer MAU billing along with directory sync to Team plan
in a future feature release.

<img width="635" alt="Screenshot 2024-03-31 at 8 49 01 AM"
src="https://github.com/firezone/firezone/assets/167144/4a309035-527b-4d4f-96d3-d5b8abeaa03b">
2024-04-07 09:26:05 -07:00
Jamil
703b397a86 chore(portal): Add Sign in from sign up form (#4529) 2024-04-05 20:18:55 -07:00
Andrew Dryga
e2ee6bbc5e chore(portal): Add users limit and use it as default limit for accounts (#4527)
A manual migration will be needed (run
`Domain.Ops.sync_pricing_plans()`) to sync the limits for all the
accounts.
2024-04-05 15:20:02 -06:00
Andrew Dryga
5e3161c553 Fix typo 2024-04-03 19:25:49 -06:00
Andrew Dryga
f29bf5010b chore(portal): Increase websocket api timeout to 307 seconds (#4489) 2024-04-03 17:24:07 -06:00
Andrew Dryga
e8dc190879 Fix tests 2024-04-03 11:01:05 -06:00