Commit graph

1212 commits

Author SHA1 Message Date
Vinicius Fortuna
3d6752c048 Increase size of TLS key 2022-08-02 21:45:41 +00:00
Vinicius Fortuna
bf4f4af734 Fix integration test 2022-08-02 21:45:30 +00:00
Vinicius Fortuna
9628457581
Merge pull request #1060 from Jigsaw-Code/fortuna-eslint
Migrate to eslint
2022-03-10 12:30:26 -05:00
Vinicius Fortuna
ae8f378cb7
Merge pull request #1059 from Jigsaw-Code/fortuna-lint
Fix linting
2022-03-10 12:23:29 -05:00
Vinicius Fortuna
42c9168ed7 Merge branch 'master' into fortuna-lint 2022-03-10 17:14:43 +00:00
Vinicius Fortuna
79593840de Merge branch 'fortuna-lint' into fortuna-eslint 2022-03-10 17:12:14 +00:00
Vinicius Fortuna
b469cbfa02 Add newlines 2022-03-10 17:10:36 +00:00
Vinicius Fortuna
8afb069c25 Add newline 2022-03-10 17:07:39 +00:00
Daniel LaCosse
144c533f14
feat(release): Linux Manager (#1056)
* start release process for linux

* re-org

* add get_version

* fix for file name conventions

* break out func, revert file

* fix get_version.mjs

* equals

* update readme
2022-03-10 10:23:56 -05:00
Vinicius Fortuna
f9ef46b71a Merge branch 'fortuna-lint' into fortuna-eslint 2022-03-10 02:10:34 +00:00
Vinicius Fortuna
920e5bce1c Format server_manager/*.{md,json} 2022-03-10 02:09:59 +00:00
Vinicius Fortuna
19d7a5a9d8 Remove server_manager prettier config 2022-03-10 02:06:10 +00:00
Vinicius Fortuna
167f3b3fb6 Don't use npx for eslint 2022-03-10 01:54:33 +00:00
Vinicius Fortuna
7389ce724f Migrate to eslint 2022-03-10 01:50:59 +00:00
Vinicius Fortuna
17d1a63f2d Add format:all 2022-03-09 23:39:07 +00:00
Vinicius Fortuna
0f5bf1f89a Reformat connection_metrics 2022-03-09 23:31:41 +00:00
Vinicius Fortuna
094562252f Fix package.json 2022-03-09 23:27:09 +00:00
Vinicius Fortuna
737b6255b8 Fix lint error 2022-03-09 23:24:39 +00:00
Vinicius Fortuna
41b8d54bc7 Rename Prettier config 2022-03-09 23:16:11 +00:00
Vinicius Fortuna
6f339e163a Remove clang-format 2022-03-09 23:12:12 +00:00
Vinicius Fortuna
3034e59f9f Fix lint 2022-03-09 23:10:15 +00:00
Vinicius Fortuna
c764fef8dd Fix lint 2022-03-09 21:48:27 +00:00
Vinicius Fortuna
87feca5bb9
Merge pull request #1058 from Jigsaw-Code/fortuna-update
Pre-release updates
2022-03-09 10:53:44 -05:00
Vinicius Fortuna
9e17606752 Add lts/gallium 2022-03-09 15:40:05 +00:00
Vinicius Fortuna
7212ade5d5 Update prometheus 2022-03-08 21:48:37 +00:00
Vinicius Fortuna
7e928bb5d9 Update outline-shadowsocksconfig 2022-03-08 21:33:24 +00:00
Vinicius Fortuna
76ce87223f Update Node image 2022-03-08 21:33:03 +00:00
Vinicius Fortuna
7367f011de Update README 2022-03-08 21:32:44 +00:00
Daniel LaCosse
5a4966cf7c
feat(release): manager debug workflow (#1055)
* basic workflow sketch

* metrics server also needs lint

* update names

* latest?

* that's weird.

* ok that's a start. refactor next

* fix path

* oops

* ah

* no op

* make it like the other ones

* refactor scripts

* fix shellcheck

* ah okay

* upload mac artifact

* Update .travis.yml

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

* comments

* add todo

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2022-03-08 14:01:08 -05:00
Benjamin M. Schwartz
f420ca917e
Merge pull request #1049 from Jigsaw-Code/bemasc-owners
Add an OWNERS file
2022-02-22 23:02:24 -05:00
Ben Schwartz
d16f218b10 Add an OWNERS file 2022-02-22 22:27:56 -05:00
Benjamin M. Schwartz
28ba1d730f
Merge pull request #1044 from Jigsaw-Code/bemasc-routing-test
Add a pre-routing filter
2022-02-07 13:17:19 -05:00
Ben Schwartz
c27c82c20a Missing semicolon 2022-02-04 16:53:33 -05:00
Ben Schwartz
0219dc252b Reduce special-case behavior for short inputs 2022-02-04 16:44:32 -05:00
Ben Schwartz
328a58b292 Add a pre-routing filter
This ensures that unauthorized requests never reach the routing step.
2022-02-04 13:31:23 -05:00
Benjamin M. Schwartz
e60963fc8f
Merge pull request #1042 from Jigsaw-Code/bemasc-routing-test
Add unit tests for `bindService()`
2022-02-03 15:34:23 -05:00
Ben Schwartz
b8426b129b Use all-caps, add test cases 2022-02-03 15:13:46 -05:00
Ben Schwartz
2545b4ea09 Adjust whitespace 2022-02-02 13:19:33 -05:00
Ben Schwartz
f1c4b6b969 Add unit tests for bindService()
`bindService()` is a function exported by `manager_service` to bind the
service onto a Restify server.  This adds unit tests for this function.
2022-02-02 13:09:46 -05:00
Vinicius Fortuna
3fb4bd121b
Merge pull request #1029 from ValdikSS/master
Fix docker keyring permissions due to custom umask
2022-01-06 13:29:12 -05:00
ValdikSS
59f4321f35
Update src/server_manager/install_scripts/install_server.sh
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2022-01-06 21:17:03 +03:00
ValdikSS
1a1db66bbe
Fix docker keyring permissions due to custom umask
Due to `umask 0007` set in `install_shadowbox` function, official docker installation script creates
`/usr/share/keyrings/docker-archive-keyring.gpg` file without read-other permission, which later
leads to permanent apt-update failure.

```
# sudo bash -c "$(cat install_server.sh)"
> Verifying that Docker is installed .......... NOT INSTALLED
> Would you like to install Docker? This will run 'curl https://get.docker.com/ | sh'. [Y/n] y
> Installing Docker ........................... OK
> Verifying Docker installation ............... 
Last error: # Executing docker install script, commit: 93d2499759296ac1f9c510605fef85052a2c32be
+ sh -c apt-get update -qq >/dev/null
W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.

Sorry! Something went wrong. If you can't figure this out, please copy and paste all this output into the Outline Manager screen, and send it to us, to see if we can help you.
Full log: /tmp/outline_log8Bv
```

Fix this issue by reverting the custom umask to a default one and manually fix
the existing file permissions, if any.
2021-12-20 05:03:15 +03:00
J. Yi
499e80835f
🌐 feat(loc): translation team updated some server texts
During our latest [latest client translation update](https://github.com/Jigsaw-Code/outline-client/pull/1126), the translation team also updates some server texts.
2021-12-07 23:47:12 -08:00
jyyi1
27463278b2 🌐 feat(loc): translation team updated some server texts 2021-12-07 23:35:29 +00:00
Daniel LaCosse
1b0563d92f
Remove deprecated buffer constructor (#1011)
* Remove deprecated buffer call

* use proper electron bin

* switch to electron in PATH

* fix indent
2021-11-16 10:11:33 -05:00
Daniel LaCosse
9d80b6d448
Migrate from Yarn to Node lts/gallium (#1004)
* attempt upgrade over CI

update shadowbox build node version

wild guess

try other image, not holding my breath

switch image back, try no --upgrade? lol

whoops wrong SHA

trying this tip out of hand - will make platform a env var next

apparently buildx is supposed to detect the platform - lets see

find replace yarn w/ npm

fix git hook

cache npm deps

proper lock and enforce engine

licenses are... generated by yarn lmao

some weird leftovers

explode out test workflow jobs

Title Case and check for cache hit

upgrade NPM

check version...

eh, worth a try

reinstall deps for now so we can debug downstream issues

use root bin

fix npm workspace, merge lint w/ setup

HMMM

attempt cache load

fix keys

remove restore-keys

regular install

attempt more "correct" npm approach

annoyingly caching ~/.npm doesn't cache the global npm version

less correct node_module cache, will roll back if doesn't work

er... node 15 :/, restore keys

changing key...?

permission setting so cache can properly hit

separate dependecy permission task

verbose chmod

fix sentry webhook

consistency thing

* print architecture

* attempt amd64-explicit node image

* attempt nodev16 upgrade

* ah, okay, let's try picking this hash

* fix node version reference and npm run clean

* revert untouched files caught in squash

* remove yarn from travis.yml

* testing ci

* npmrc comment, revert one of cis

* Update src/server_manager/web_app/run_gallery_action.sh

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

* Update src/server_manager/web_app/run_action.sh

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

* licenses change

* fix package-lock regression

* fix webpack-dev-server properly

* set install to ci in Dockerfile

* forgot to include the README

* add ci where it makes sense

* delete this part of the README

* missed one

* testing sub-node_modules

* better chmod

* prefer glob

* reset .github/workflows/test.yml

* oops, yarn in ci

* rename everything (#1006)

* Update test.yml

* check_requirements (#1008)

* reqcheck draft

* finish drafting script - need to test and add to hooks

* attempt to roll our own setup...

* remove setup script and rename a couple things

* remove this nightmare lol

* Update release_manager.yml

* Update test.yml

* 'do' -> 'action'

* run -> start

* Update src/shadowbox/docker/build.action.sh

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

* Update README.md

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* rename 'action' to action

* add action list to run action itself

* Update src/shadowbox/README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update src/server_manager/scripts/fill_packaging_opts.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* style guide fixes

* lower case fixes

* enforce major version

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update package.json

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>
2021-11-05 16:40:34 -04:00
Vinicius Fortuna
0eca970d6a
Merge pull request #996 from ksperis/master
Allow custom name for shadow docker
2021-10-25 12:43:01 -07:00
Laurent Barbe
dbee093052 Add quotes for CONTAINER_NAME 2021-10-18 17:48:30 +02:00
Laurent Barbe
5edb9da782 Remove the "docker start", it's already handled below 2021-10-18 16:24:04 +02:00
Laurent Barbe
6b6787e51d Merge remote-tracking branch 'upstream/master' 2021-10-18 15:05:44 +02:00