Commit graph

1404 commits

Author SHA1 Message Date
sbruens
9bc3bd49db Add third_party/** to the shadowbox workflow. 2024-04-10 11:03:31 -04:00
Sander Bruens
f708ae4f5c Run required checks with condition. 2024-04-05 13:19:18 +01:00
Sander Bruens
9da9048e6f Fix title. 2024-04-04 18:09:17 +01:00
Sander Bruens
2e936bc58d ci: split the workflows for the 3 components in this repo 2024-04-04 18:09:16 +01:00
Sander Bruens
d0d9077a9a
feat(metrics_server): drop the userId (#1528)
* feat(metrics_server): add support for tunnel time

* Add tests.

* Update `nodejs` runtime to 18.

* Update integration test.

* Use seconds instead of ms.

* Inline the minimun tunnel time and remove the unnecessary comment.

* Add field types to test case names.

* Make tunnel time optional.

* Add TODO to drop `userId`.

* Undo use of gdate.

* feat(metrics_server): drop the `userId`

* Update README.

* Fix bad merge.

* Fix bad merge on test.

* Revert change of country.

* Add types for the valid reports.

* Remove unrealistic test case with empty country list.
2024-04-04 13:04:28 -04:00
Sander Bruens
571be90bbf
feat(metrics_server): add support for tunnel time (#1527)
* feat(metrics_server): add support for tunnel time

* Add tests.

* Update `nodejs` runtime to 18.

* Update integration test.

* Use seconds instead of ms.

* Inline the minimun tunnel time and remove the unnecessary comment.

* Add field types to test case names.

* Make tunnel time optional.

* Add TODO to drop `userId`.

* Undo use of gdate.

* Make the test reports more realistic with 1 country.
2024-04-04 12:19:23 -04:00
Sander Bruens
a072cc43e1
feat(server): stop sharing key usage with metrics server (#1529)
* feat(server): stop sharing key usage with metrics server

* Update comment to reflect history.
2024-04-04 12:07:20 -04:00
Danyal
be02db89f1
chore: update api.yml (#1525) 2024-03-29 09:26:51 -06:00
Sander Bruens
2901a256f4
feat(server): add an experimental opt-in API to enable ASN metrics (#1523)
* Update `update_mmdb.sh` script to download ASN database.

* Provide the `ASN` db file to `outline-ss-server`.

* Add an API to opt-in to the ASN metrics.

* Remove unused import.

* Add the ASN setting to the persisted server config.

* Continue trying to find other database if 1 of them fails.

* Resolve lint warning

* Use `outline-ss-server` v1.5.0.
2024-03-29 09:50:33 -04:00
Sander Bruens
37d3f33faf
chore(docs): update README to reflect manager move (#1519)
* chore(docs): simplify and update `README` to reflect manager move

* Add pointer to shadowbox README.

* Cleanup the Shadowbox `README`

* Move around the Shadowbox instructions to make Node.js and Docker equal options for running the Shadowbox.

* Address review comments.

* Revert intro sentence to what was there before.

* Address review comments.
2024-03-12 15:09:01 -04:00
Sander Bruens
78f0934f4a
chore(sentry_webhook): update UAT record ID (#1513) 2024-02-22 13:24:55 -05:00
Daniel LaCosse
cd5f91742d
chore: delete manager and update server_manager/README.md (#1511)
* delete manager and update readme

* remove scopes from commitlint

* update jobs

* Update src/server_manager/README.md

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update README.md

* npx karma

* install puppeteer

* webpack, too? jeez.

* finally

---------

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2024-02-22 13:16:40 -05:00
Sander Bruens
ea81c998a7
feat(sentry_webhook): update Salesforce record IDs for new contact form (#1510)
* chore(sentry_webhook): update Salesforce record IDs for new contact form

* Add new `accessKeySource` and `build`.

* Add new fields `subject` and `isUpdatedForm`.

* Change `type` field to new `role` field.

* Normalize `cloudProvider` value based on allowed picklist values.

* Update tests.
2024-02-22 10:45:29 -05:00
Daniel LaCosse
e2486ba9b2
chore: update reference to install script (#1512) 2024-02-21 17:11:41 -05:00
Sander Bruens
a62b25b54c
test(server): add new PUT API to the integration test (#1504) 2024-02-15 12:24:55 -05:00
Daniel LaCosse
06646f791b
adds hardened runtime and notarization options (#1508) 2024-02-13 12:09:37 -05:00
Danil Shaymurzin ⚡️
ceca3d617c
fix(server): the provided password must use unique value (#1506) 2024-02-12 14:05:07 -06:00
Danil Shaymurzin ⚡️
9779f5dc5f
fix(server): api specification #1499 (#1503) 2024-02-12 09:52:13 -05:00
Sander Bruens
88cee12ec4
feat(server): extend key creation API to allow specifying a port (#1505)
* feat(server): extend key creation API to allow specifying a port

* Use `validateNumberParam` in `setPortForNewAccessKey`.

* Only check if the port is valid if it was specified.

* Undo the removal of use of `Promise.all(...)`.

* Fix tests.

* Only run validation if parameters are provided.

* Correct types for API validation methods where `undefined` is a possible return type.
2024-02-07 10:35:26 -05:00
Daniel LaCosse
0fba65e86e
build(manager): detect platform before shifting the arg array in package action (#1500)
* fix(manager): detect platform before shifting the arg array in the package action

* Update package.action.sh

* Update src/server_manager/electron_app/package.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update src/server_manager/electron_app/package.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

---------

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2024-02-06 13:00:12 -05:00
Vinicius Fortuna
64c4f94534
chore(manager): deprecate SB_DEFAULT_SERVER_NAME on install (#1498) 2024-02-05 09:07:32 -06:00
Vinicius Fortuna
28d2b2e391
chore(manager): cleanup and fix Manager build (#1497) 2024-02-02 16:50:19 -06:00
Danil Shaymurzin ⚡️
882573eecd
fix(manager): use typeof function instead of directly comparison (#1481) 2024-02-02 11:05:52 -06:00
Vinicius Fortuna
3273e7c595
feat(server): enable log rotation and start script (#1494) 2024-02-02 11:04:55 -06:00
Daniel LaCosse
950614c08e
chore(manager/macos): upgrade electron-builder to use the new notarytool (#1496) 2024-02-01 21:00:30 -05:00
Daniel LaCosse
639e1e2cde
fix(manager): adjust app container on narrow devices to make room for sidebar (#1495)
* i feel disguisting lol

* app container is better
2024-02-01 20:57:41 -05:00
Vinicius Fortuna
5272b3467e
chore(server): inject version at build time (#1491) 2024-01-31 17:55:30 -05:00
Daniel LaCosse
4d1c4cad3e
fix: link directly to support.getoutline.org (#1490) 2024-01-31 17:47:14 -05:00
Vinicius Fortuna
71e4b52b80
chore(server): remove docker-compose and cleanup (#1484) 2024-01-30 14:05:34 -05:00
Daniel LaCosse
33de2a98c5
feat(manager): link to Management API Documentation next to the Management API Endpoint (#1486)
* wip

* style tweak
2024-01-29 17:32:11 -05:00
Daniel LaCosse
4e383f5501
feat(manager): adds 'if-messages' utility that only renders contents if messages exist (#1482)
* does it

* Update if_messages.ts

* address feedback and fix compilation

* Update src/server_manager/web_app/ui_components/if_messages.ts

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* annotate converter string

---------

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2024-01-25 13:17:16 -05:00
Sander Bruens
f5ac42c6c2
feat(server): add a new PUT method to create a key with a specific identifier (#1473)
* feat(server): add optional `id` parameter to `createNewAccessKey` method

* Use `PUT` instead of `POST`.

* Make changes based on review.

* Update access key creation path to only allow ID on `PUT` calls.

* Expand test scenarios for key generation to `createAccessKey`.

* Add a `toHavePropertiesOf` custom Jasmine matcher.

* Add explicit test case for `ConflictError`.

* Revert "Add a `toHavePropertiesOf` custom Jasmine matcher."

This reverts commit 134e0df441.
2024-01-17 11:08:26 -05:00
Danil Shaymurzin ⚡️
57a30a2faf
feat(server): add optional name/limit/password props for createNewAccessKey method (#1273) 2024-01-12 11:43:29 -06:00
Vinicius Fortuna
4537fddc75
fix(server): make temp file names longer (#1464) 2024-01-10 08:43:02 -05:00
dependabot[bot]
ac6be23b2e
Merge pull request #1472 from Jigsaw-Code/dependabot/npm_and_yarn/follow-redirects-1.15.4 2024-01-09 23:55:09 +00:00
dependabot[bot]
da0f532397
chore: bump follow-redirects from 1.15.0 to 1.15.4
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.0 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.0...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 23:21:52 +00:00
Sander Bruens
e46c88450e
chore(manager/web): clean up unused _computeSideBarMarginClass (#1469) 2024-01-05 16:09:14 -05:00
Sander Bruens
6c433ed6fa
fix(sentry_webhook): convert OS values to allowed picklist values (#1467)
* fix(sentry_webhook): convert OS values to allowed picklist values

* Make `Linux` the fallback.
2024-01-04 10:40:18 -05:00
Alexander Nikitin
90e8e57b3f
fix(docs): fix invalid json in api payload examples (#1466) 2024-01-02 13:18:02 -05:00
Daniel LaCosse
fa767398a1
feat(manager/web): add manager resources link (#1463)
* mostly done, still need to test link #2

* Update outline-server-settings.ts to add margin-top and margin-bottom to documentation-link

* remove api documentation, and use iron-icon

* use iron icon icon

* add shouldShowDocumentationLink

* Update src/server_manager/web_app/ui_components/app-root.ts

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* make hasTranslation better

* update message id and indentation

---------

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2023-12-15 15:55:22 -05:00
Sander Bruens
2a304868f8
fix(sentry_webhook): rollback Salesforce value changes (#1461)
* Revert "chore(sentry_webhook): update Salesforce values (#1419)"

This reverts commit 836778324e.

* Keep the dev changes as they don't have a production impact.

* Update tests.
2023-12-11 17:45:56 -05:00
Sander Bruens
b87890446e
fix(manager/electron): replace turned down OmahaProxy with ChromiumDash (#1462)
* fix(server_manager): replace turned down omahaproxy.appspot.com

* Update engine.

* Fix type.

* Yes we get it. A string is not an int.

* Put the comment back. It's quite useful.
2023-12-11 16:35:26 -05:00
Sander Bruens
4c14a156c0
chore(sentry_webhook): use Node.js 18 runtime version (#1456) 2023-11-27 13:43:05 -05:00
Sander Bruens
094eeb3570
chore(sentry_webhook): add basic logs to the webhook so we can debug the pipeline based on event ID (#1454)
* Add some basic logs so we can cross-reference events.

* Add `is-processed` response header.

* Prevent log injection.

* Log response header at DEBUG level.
2023-11-20 12:18:36 -05:00
Daniel LaCosse
41d498f228
fix(manager/electron): separate main and renderer sentry libraries (#1451) 2023-11-17 11:48:58 -05:00
Vinicius Fortuna
50ad005e43
feat(manager): enable servers with valid domains (#1448) 2023-11-16 17:39:07 -05:00
Vinicius Fortuna
3d2c3db494
feat(server): remove ulimit (#1447)
This is unnecessarily restricting the server, which limits the number of connections we can support. It also can't raise the ulimit, since the host impose a cap on the container.

Service providers can still set the ulimit on their host if they want to.
2023-11-15 15:15:03 -06:00
Daniel LaCosse
e157315aa0
chore: upgrade node to lts/hydrogen (#1365)
* chore: upgrade to lts/hydrogen

* update github workflows

* fix attempt #1

* ssl, restify upgrade

* more openssl options

* ah thanks sander, using middleware2

* fix ci

* reset package-lock.json

* revert middleware2

* fix optional chaining

* okay cool tests run, but fail

* partially update the node image (i can't find the other one)

* Update test.action.sh

* Update build.action.sh

* Update test.action.sh

* Update build.action.sh

* Update package.json

* Update webpack.config.js

* Update webpack.config.js

* Update build.action.sh

* Update build.action.sh

* Update package.json

* Update README.md
2023-10-16 11:47:42 -04:00
Daniel LaCosse
aa56b08346
chore: upgrade restify to support lts/hydrogen (#1423) 2023-10-11 12:51:58 -04:00
Daniel LaCosse
3574b5f5e0
chore: upgrade webpack to v5 to support lts/hydrogen (#1422)
* upgrade dependencies and fix API changes

* skipLibCheck

* attempt test fixes

* fix attempt

* stream-http

* fix final thing i think
2023-10-11 10:44:36 -04:00