Commit Graph

227 Commits

Author SHA1 Message Date
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
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
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
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
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
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
4bd692bc6c hotfix: Log Account ID on billing portal errors 2024-04-02 13:14:50 -06:00
Jamil
38a373a6b9 fix(portal): Correct Edit account page title and label (#4412)
Fixes #4411
2024-03-31 19:52:06 +00:00
Andrew Dryga
51afb4c227 fix(portal): Persist first user email to Stripe during account sign up (#4408) 2024-03-30 13:40:52 -06:00
Brian Manifold
f5bb02d36e refactor(portal): Move actor groups to own table in actor show page (#4392)
Why:

* When viewing an actor in the portal, all of the groups were listed in
the top info table. This works for a small number of groups, but becomes
difficult to use when an actor is in a large number of groups. This
commit moves that information to it's own `live_table` element so that
it's easier to parse and can be paginated.
2024-03-29 14:50:04 -06:00
Andrew Dryga
fe1a627f4b Create everyone group on account sign up (#4388) 2024-03-28 17:23:08 -06:00
Andrew Dryga
2cf63cb33a fix(portal): Serve static files with digests at root (#4386)
Closes #4384
2024-03-28 16:13:13 -06:00
Andrew Dryga
dc75a075b9 fix(porta): Greatly improve HTTP 500 error page (#4382)
<img width="1728" alt="Screenshot 2024-03-28 at 15 00 19"
src="https://github.com/firezone/firezone/assets/1877644/174c54c2-b958-416f-ad50-9c2af4103bfc">
2024-03-28 15:39:12 -06:00
Andrew Dryga
40864567f2 fix(portal): Filter group actors by group id (#4369)
Closes #4365
2024-03-28 15:28:08 -06:00
Brian Manifold
0a0746f463 style(portal): Update portal UI polish/consistency (#4367)
Why:

* This commit was not intended to be a sweeping UI change, but rather a
quick pass over the portal to make sure things were consistent and also
to update small UI elements that were discussed offline.
2024-03-28 18:47:16 +00:00
Andrew Dryga
35d0cd7701 chore(portal): Update Gateways deploy UI (#4352)
Closes #4019

<img width="1728" alt="Screenshot 2024-03-27 at 14 53 30"
src="https://github.com/firezone/firezone/assets/1877644/a2b8850e-49b7-4379-9851-5cb5453018d5">

<img width="1728" alt="Screenshot 2024-03-27 at 14 53 32"
src="https://github.com/firezone/firezone/assets/1877644/5b35c045-6db8-4522-bba8-794d68eae879">
2024-03-28 11:59:09 -06:00
Andrew Dryga
6f376eb6a6 chore(portal): Temporarily hide address description (#4351)
Closes #4250
2024-03-27 15:09:41 -06:00
Brian Manifold
ab35a5ea76 fix(portal): Fix bug in actor edit page preventing updates (#4347)
Why:

* A bug was present in the actor edit page that prevented updating an
actor due to managed and synced groups being sent as part of the form
submission. Along with that, if a user manually removed the managed
group(s) from the form submission, the actor being edited would be
removed from the managed group, which should not be allowed.

* There was also another small bug which prevent an admin actor from
being updated at all if they were the only admin in the account.
2024-03-27 13:20:13 -06:00
Andrew Dryga
55935428b3 fix(portal): Allow deleting synced actors after all identities are removed (#4346) 2024-03-27 13:18:03 -06:00
Andrew Dryga
21d2ca358b fix(portal): Fix pagination issues with flows and activities, improve error handling around live tables (#4330)
Fixes issues from logs.
Closes #4274 and similar issues for activities.
Simplifies error handling for live tables (we just reset filters with a
message when they are invalid because just showing an error 422 is not
actionable).
2024-03-27 13:03:19 -06:00
Gabi
24e0641871 chore: set rust log level to info for gateways and client (#4319)
- [x] Updated log level string for client and gateways to info or higher
- [x] Update logs to hide DNS information

I also removed `hickory_resolve` errors which could contain sensitive
info from our general error and hide the logs that specifically relates
to them.

@bmanifold double checking that the log levels in the gateway's `*.tf`
files are just used for our own gateways.

Also, the relays still have `debug`, since only we see that I think that
makes sense but double checking with @jamilbk

Fixes: #3618.

---------

Signed-off-by: Gabi <gabrielalejandro7@gmail.com>
Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com>
2024-03-27 01:39:12 +00:00
Andrew Dryga
4844422a31 Fix online status on clients page (#4307)
Closes #4271
2024-03-25 14:00:42 -06:00
Andrew Dryga
1cb6ab6dc4 chore(Portal): Remove simple forms, change navbar links, fix form styles (#4239)
Closes #4237
Closes #2015

There are new links in the navbar and the floating status badge is
replaced with a link in the burger menu too:


https://github.com/firezone/firezone/assets/1877644/2d72f6d7-a14a-4e56-808d-2e703eca158a
2024-03-25 10:24:24 -06:00
Brian Manifold
f5286d0927 feat(portal): Add styled errors pages (404, 422, 500) (#4231)
Closes #2136 

## Screenshots for `404` and `500`

<img width="781" alt="Screenshot 2024-03-20 at 1 16 46 PM"
src="https://github.com/firezone/firezone/assets/2646332/e08e338f-b5b5-4a6a-adb8-b53fe9e8e137">

<img width="916" alt="Screenshot 2024-03-20 at 1 16 30 PM"
src="https://github.com/firezone/firezone/assets/2646332/e19238bf-804d-4f60-bbb3-8cf3f4c89d1f">
2024-03-22 15:26:00 +00:00
Andrew Dryga
8195ac1893 feat(portal): Sync accounts between stripe and portal (#4173)
Closes #3888
2024-03-20 16:32:07 -06:00
Andrew Dryga
392adc9e45 fix(portal): Fix various issues with presence-triggered table reloads (#4228)
Also, cover that code with tests.
2024-03-20 14:35:52 -06:00
Andrew Dryga
a339828570 chore(portal): DRY live table error handling and handle errors via page reloads (#4205)
I also added whole bunch of tests for the live tables.

Closes #4189
2024-03-19 12:26:41 -06:00
Andrew Dryga
370a45571c Track protocol in activities (#4215)
Closes #4046
Closes #3026
2024-03-19 12:26:12 -06:00
Andrew Dryga
09dbd70dc5 chore(infra): Use Regional Instance Group in the GCP NAT example (#4183)
This example will work once our latest gateway is pushed to GitHub
Container Registry, but to test it for now a few overrides can be added
to the `main.tf` to use our Google Artifact Registry and local module
instead:
```diff
module "gateways" {
--  source = "github.com/firezone/firezone/terraform/modules/google-cloud/apps/gateway-region-instance-group"
++  source = "../../../modules/google-cloud/apps/gateway-region-instance-group"
...
++  container_registry = "us-east1-docker.pkg.dev"
++  image_repo         = "firezone-prod/firezone"
++  image              = "gateway"
}
```

---------

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Andrew Dryga <andrew@dryga.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2024-03-19 08:44:14 -06:00
Andrew Dryga
24dc7be6bb Hotfix disabled sign up message 2024-03-18 22:12:08 -06:00
Andrew Dryga
7e3271c205 fix(portal): Start finch pool for swoosh 2024-03-18 08:28:20 -06:00
Brian Manifold
2c7f45cc99 feat(portal): Add sign up override in portal (#3739)
Why:

* In order to allow easy testing of billing / Stripe integration, the
staging environment needs to allow members of the Firezone team access
to create new accounts, while disallowing the general public to create
accounts. The account creation override functionality allows for
multiple domains to be set by ENV variable by passing a comma separated
string of domains.

---------

Co-authored-by: Andrew Dryga <andrew@dryga.com>
2024-03-17 18:12:25 -06:00
Andrew Dryga
cd7cb8f2a9 chore(portal): Fix some typos (#4184)
@bmanifold fixed a few instances in #3739 but I went ahead and replaced
all of them, once we merge it and rebase #3739 on top of it the diff
should be minimal.
2024-03-17 17:33:30 -06:00
Andrew Dryga
f3c8c734ab feat(portal): Filtering, Fulltext Search, Pagination, Preloads (#3751)
On the domain side this PR extends `Domain.Repo` with filtering,
pagination, and ordering, along with some convention changes are
removing the code that is not needed since we have the filtering now.
This required to touch pretty much all contexts and code, but I went
through all public functions and added missing tests to make sure
nothing will be broken.

On the web side I've introduced a `<.live_table />` which is as close as
possible to being a drop-in replacement for the regular `<.table />`
(but requires to structure the LiveView module differently due to
assigns anyways). I've updated all the listing tables to use it.
2024-03-16 13:27:48 -06:00
Andrew Dryga
a85b9ab185 chore(infra): Deploy domain app on a separate instance and enable background jobs on it (#4160)
Closes #3801
2024-03-16 08:58:20 -06:00
Andrew Dryga
f52bcc3e37 fix(portal): Prevent invalid characters when entering account slug at sign in (#3917) 2024-03-11 10:38:17 -06:00
Jamil
c364004e97 fix(portal): Fix broken link to DNS docs (#4036) 2024-03-07 19:33:12 +00:00
Jamil
6419b1d096 chore(portal): Fix static files (#3974)
Fixes issues with static files returning 404s
2024-03-05 17:43:14 +00:00
Jamil
8c59ff7aa1 refactor: Reduce log levels for production releases to avoid filling customer's… (#3899)
Tuning the logging down a bit on our production releases. Prevents
gathering data we don't need to be gathering and prevents filling up
drive space with debug logs.

refs #3618
2024-03-03 17:42:09 -08:00
Andrew Dryga
7e9a824870 Fix preloads after token is revoked 2024-03-01 10:07:51 -06:00