Commit graph

1373 commits

Author SHA1 Message Date
Vinicius Fortuna
73f39b3712 Silent 2024-01-09 19:19:08 -05:00
Vinicius Fortuna
f28405c4da Force localhost 2024-01-09 19:17:27 -05:00
Vinicius Fortuna
181b3cd274 No need to force port 2024-01-09 19:15:54 -05:00
Vinicius Fortuna
2f81524819 Fix line 2024-01-09 19:14:31 -05:00
Vinicius Fortuna
14d0554b8d Fix test 2024-01-09 19:12:20 -05:00
Vinicius Fortuna
3b3189e8f9 Add curl 2024-01-09 19:00:44 -05:00
Vinicius Fortuna
fc431ee89c Add test for install script 2024-01-09 18:54:23 -05:00
Vinicius Fortuna
a48728becb
fix(server): make temp file names longer
This fixes https://github.com/Jigsaw-Code/outline-server/issues/1234
2023-12-27 15:01:59 -06: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
Sander Bruens
836778324e
chore(sentry_webhook): update Salesforce values (#1419)
* Update Salesforce values.

* Update tests.
2023-10-06 14:42:33 -04:00
Sander Bruens
61a8f7d290
chore(sentry_webhook): create tests for sentry webhook (#1417)
* Create tests for sentry webhook.

* Add GitHub workflow for new tests.

* Fix package lock files.

* Fix typos.

* Move webhook check up.

* Remove extra `/`.
2023-10-06 11:53:56 -04:00
Daniel LaCosse
7d5dffcdc9
fix(server_manager): explicitly set build target architecture (#1414) 2023-10-04 11:45:31 -04:00
cd
471668027a
feat: build upgrade for aarch64/arm64 architecture (#1399) 2023-09-29 09:14:16 -06:00
Mikhail Kopylov
51a86b0cc8
fix: improve Docker container existence detection in install_server.sh 2023-09-28 16:28:50 -04:00
Sander Bruens
33a7886864
chore: add new translations (#1394) 2023-09-22 17:23:49 -04:00
Daniel LaCosse
2af2011f8e
fix(sentry_webhook): check if email is erroneously [undefined] (#1397)
It seems we're getting a bunch of events coming in with the email set to the literal sequence of characters `[undefined]` - until we find the source of these events, this should stop them from flooding salesforce.
2023-08-30 10:29:02 -04:00
Daniel LaCosse
1ac9f23813
feat(manager/electron): support windows cloud signing (#1360)
* feat: support windows cloud signing

* Update get_electron_build_flags.mjs

* Update get_electron_build_flags.mjs

* Update get_electron_build_flags.mjs

* flip quotes

* ...

* try this
2023-06-30 22:35:38 -04:00
Vinicius Fortuna
e0a9ae298e
chore: revamp third-party downloads (#1359)
No more need to depend on curl, wget or shasum!
2023-06-09 15:07:26 -06:00
Daniel LaCosse
b2639d09c3
feat(devtools/build): allow version name injection into the outline manager (#1354)
* feat(build): allow version name injection into the outline manager

* add default version name

* ah?

* this?

* this works on other platforms?

* lmao

* try this

* oops i meant this

* put back

* ah
2023-05-31 11:19:25 -04:00
Danil Shaymurzin ⚡️
e2b446d349
feat(server): add codeql security and quality queries and fix config (#1307)
* ci: fix query-filters

* ci: fix codeql workflow

* ci(codeql): security and quality queries
2023-03-29 15:53:47 -04:00
J. Yi
0006499f28
fix(manager): 💊 integrate with the latest Sentry library (#1309)
In this PR, I integrated Outline Manager with the latest Sentry library and re-enabled the user feedback form. Sentry was not working because of two reasons:
1. Electron enabled sandbox to its `preload.js` script, therefore calling `Sentry.init` in `preload` is not enough (and not necessary), we must call `Sentry.init` in every renderer process as well
2. `SENTRY_DSN` is not injected into electron, we read it from `process.env.SENTRY_DSN`, but this is a runtime environment variable (which will be `undefined`)

So basically my fix is straightforward:
1. Calling `Sentry.init` in `web_app/app.ts`, which is the entrypoint of renderer process
2. Use `webpack` to inject `SENTRY_DSN_` variable into `electron_app/index.ts` during build

In order to be consistent (and to minify the result js file), I also introduced webpack to build the `preload.ts` script as well.

Finally I upgraded electron to the latest version that does not have [API restrictions](https://www.electronjs.org/docs/latest/breaking-changes#default-changed-renderers-without-nodeintegration-true-are-sandboxed-by-default) to `preload` script (we are using `crypto` package which will be forbidden). A refactoring is required in order to upgrade to any newer versions of electron.
2023-03-16 16:33:20 -04:00
J. Yi
494389944e
chore(manager): 📄 re-generate dependency licenses (#1305)
Our [`licenses.txt`](508a5a2af5/src/server_manager/web_app/ui_components/licenses/licenses.txt) file for Outline Manager is not correct, it is just a simple duplication of the [`README.md`](508a5a2af5/src/server_manager/README.md). In this PR, I re-generate the `licenses.txt` file with all dependencies and update the steps in order to correctly generate it.
2023-03-09 00:05:02 -05:00
Danil Shaymurzin ⚡️
508a5a2af5
feat(server): add vulnerability analysis by CodeQL (#1271) 2023-02-28 19:00:45 -05:00
Daniel LaCosse
753a00ae00
fix(server_manager): data collection info url (#1299) 2023-02-28 11:47:02 -05:00
J. Yi
e614da1393
chore(manager): 🎉 release v1.14.0 for all platforms (#1286)
**Changelog**

- support more languages
- disable the feedback form temporarily due to backend issue
- fix UI bugs
2023-02-08 15:23:24 -05:00
J. Yi
4041b62bcb
feat(manager): 🌐 support 11 more languages (#1285)
In this PR, I added the support of the following languages to Outline Manager:

- `af`: Afrikaans
- `bn`: Bengali
- `is`: Icelandic
- `ms`: Malay
- `mr`: Marathi
- `sw`: Swahili (Outline only)
- `ta`: Tamil
- `lo`: Lao
- `mn`: Mongolian
- `ne`: Nepali
- `si`: Sinhala
2023-02-06 18:05:52 -05:00
Danil Shaymurzin ⚡️
f7d15acf57
fix(server): use right TextFile interface path on FilesystemTextFile class (#1275) 2023-01-27 11:11:33 -06:00
dependabot[bot]
db518d54d7
chore: bump ua-parser-js from 0.7.31 to 0.7.33 (#1279)
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.31 to 0.7.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.31...0.7.33)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 10:34:04 -05:00
Danil Shaymurzin ⚡️
5c1dbb7ab4
docs(shadowbox): add getAccessKey method example (#1278) 2023-01-26 10:41:32 -06:00
Danil Shaymurzin ⚡️
8225de26b7
feat: add getAccessKey method to the management API(#1142) 2023-01-18 12:04:36 -06:00
Ehsan Mohandesi
f12436b9f5
Fixed the rename command. (#1260)
Fixed the rename command.
2023-01-12 16:57:06 -06:00
J. Yi
244ef06226
build(devtools/build): 👷 exclude jsign.jar from the repository (#1263)
According to #1250 , we are not allowed to include binaries in this repository. In this PR, I removed `./third_party/jsign/jsign-4.2.jar`, it will be downloaded during build process on demand. The workflow is:

* If we are not building for Windows, nothing happens
* If we are building for Windows but not signing the binaries (for example dev builds), nothing happens
* If we are building and signing Windows binaries:
  * If `jsign-4.2.jar` already exists and matches checksum, nothing happens
  * otherwise, we will download it from [jsign's official GitHub releases](https://github.com/ebourg/jsign/releases)
2023-01-06 19:07:40 -05:00
Daniel LaCosse
8780b4b80d
fix: remove broken feedback form (#1252)
* remove feedback

* switch to comment
2022-12-16 10:34:26 -05:00
Daniel LaCosse
3ab7c441b1
upgrading electron builder seems to work (#1239) 2022-12-15 17:45:42 -05:00
Vinicius Fortuna
4670c33b28
Updates for 1.7.2 release (#1244) 2022-12-05 10:57:49 -05:00
dependabot[bot]
4d068a94b6
chore: bump decode-uri-component from 0.2.0 to 0.2.2 (#1243)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 09:56:43 -05:00
Vinicius Fortuna
c324848cb8
fix(server): restore country metrics (#1242) 2022-12-02 10:13:59 -06:00
Vinicius Fortuna
d1f5d9b726
chore(server): create server CHANGELOG (#1241) 2022-12-01 09:38:50 -06:00
Vinicius Fortuna
4176a1a0c3
Update package.json for 1.7.1 release (#1240) 2022-11-30 19:06:29 -05:00
Vinicius Fortuna
031ba24d7b
fix(server): fix isPortUsed for IPv6 (#1238) 2022-11-30 17:26:38 -05:00