Commit graph

1355 commits

Author SHA1 Message Date
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
Vinicius Fortuna
136809053c
fix(server): don't output all log messages (#1232) 2022-11-29 18:00:30 -05:00
J. Yi
9e314c5532
fix(manager/web): 💊 show Sydney flag in DO region page (#1237)
The Sydney flag and its city name was not displayed appropriately in DigitalOcean's region selection page. It was a simple fix by just adding it to the available regions. Also [`substr` function is deprecated](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr), I replaced it with the [standard `substring` function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring).

**after fix**

<img width="780" alt="image" src="https://user-images.githubusercontent.com/93548144/204391281-b791dc4e-b8b2-47b0-9e7d-f469d6349c7c.png">
2022-11-28 17:22:26 -05:00
Vinicius Fortuna
3698eb712e
chore(docs): update on blocking resistance (#1226) 2022-11-22 08:07:04 -06:00
dependabot[bot]
e97f698a1a
Merge pull request #1224 from Jigsaw-Code/dependabot/npm_and_yarn/loader-utils-1.4.2 2022-11-18 20:13:31 +00:00
J. Yi
8e2306a59b
chore: 🎉 release v1.13.0 for all platforms (#1225) 2022-11-18 13:55:05 -05:00
dependabot[bot]
f87680a3b3
chore: bump loader-utils from 1.4.1 to 1.4.2
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 00:35:57 +00:00
dependabot[bot]
733fa52f5c
Merge pull request #1221 from Jigsaw-Code/dependabot/npm_and_yarn/socket.io-parser-4.0.5 2022-11-10 14:54:23 +00:00
dependabot[bot]
28ae41b7d0
chore: bump socket.io-parser from 4.0.4 to 4.0.5
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.0.4...4.0.5)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-10 01:26:05 +00:00
dependabot[bot]
7051f3fb2f
Merge pull request #1220 from Jigsaw-Code/dependabot/npm_and_yarn/loader-utils-1.4.1 2022-11-09 18:27:55 +00:00
dependabot[bot]
4e11b9dab8
chore: bump loader-utils from 1.4.0 to 1.4.1
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 06:24:45 +00:00
Daniel LaCosse
710e40f58c
feat(manager/web): chunked invite flow - phase zero (#1198)
* phase 0 init

* copy translations from internal TC

* update pr checks, change to link

* Update src/server_manager/web_app/ui_components/outline-share-dialog.ts

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

Co-authored-by: jyyi1 <yijunyi@google.com>
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2022-11-01 09:23:50 -04:00
Vinicius Fortuna
cfab642862
Bump version for release (#1214) 2022-10-27 16:12:14 -05:00
Vinicius Fortuna
ba135267d1
chore(server): upgrades (#1211)
- Upgrade Prometheus to 2.37.1
- Upgrade outline-ss-server to 1.4.0
- Fetch Prometheus and outline-ss-server binaries on demand. Remove from repo because of file size limit
- Upgrade base node image.
2022-10-27 11:59:48 -05:00
Amir Omidi
6ea0c1d084
Add icanhazip.com as IP source (#1207)
Add icanhazip.com as an alternative. Both ipinfo and checkip are sometimes inaccessible from certain areas.
2022-10-24 15:37:55 -05:00
62w71st
7a2007b233
feat(server): add encryption method option to the access key creation API (#1002) 2022-10-17 16:12:43 -05:00
Jacob Ford
54017182eb
Typo in README (#1173) 2022-10-12 10:58:33 -04:00
Daniel LaCosse
1d5b86b20c
upgrade minor version (#1181) 2022-10-11 14:42:30 -04:00
J. Yi
9531932be9
build(manager/electron): 👷 add option to use GCP KMS for signing (#1168)
In this changeset:

- upgraded `jsign.jar` to version `4.2`
- add an option to leverage `gcp-hsm` certificate to sign Windows executables
- please note that [GCP does not support SHA-1](https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms), and here are the consequences of not adding SHA-1 to the binary signatures:
   1. [SHA-1 is deprecated by Microsoft](https://techcommunity.microsoft.com/t5/windows-it-pro-blog/sha-1-windows-content-to-be-retired-august-3-2020/ba-p/1544373)
   2. The only affected OSes are Windows 7 and below ([support ended already](https://www.microsoft.com/en-us/windows/end-of-support)). Windows 7 (6.1.7600) users can still upgrade to Windows 7 SP1 (6.1.7601) which supports SHA-2.
   3. Users can still run our app on old Windows systems (Windows 7), despite that the following warning dialog might show up:
![image](https://user-images.githubusercontent.com/93548144/193613642-bf153ea1-d05e-47a2-91b6-73ac2d28ad15.png)
2022-10-11 12:42:36 -04:00