Commit graph

341 commits

Author SHA1 Message Date
Vinicius Fortuna
bbaa3fce2c
Update CHANGELOG.md 2024-01-25 14:17:49 -05:00
Vinicius Fortuna
5ff96f7c74
Update CHANGELOG.md 2024-01-25 14:07:59 -05:00
Vinicius Fortuna
3927322a17
Release 1.7.3 2024-01-25 11:33:38 -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
Alexander Nikitin
90e8e57b3f
fix(docs): fix invalid json in api payload examples (#1466) 2024-01-02 13:18:02 -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
cd
471668027a
feat: build upgrade for aarch64/arm64 architecture (#1399) 2023-09-29 09:14:16 -06:00
Danil Shaymurzin ⚡️
f7d15acf57
fix(server): use right TextFile interface path on FilesystemTextFile class (#1275) 2023-01-27 11:11:33 -06: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
Vinicius Fortuna
4670c33b28
Updates for 1.7.2 release (#1244) 2022-12-05 10:57:49 -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
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
62w71st
7a2007b233
feat(server): add encryption method option to the access key creation API (#1002) 2022-10-17 16:12:43 -05:00
Vinicius Fortuna
9fc83859c2
chore(manager): clean up Manager errors (#1151)
Move errors to more appropriate places.
2022-08-23 20:19:05 -04:00
Daniel LaCosse
15cf404361
feat(devtools): partial import restrictions (#1114)
* add restrictions - bypassing for draft

* this feels like the correct list?

* this feels like the actual actual correct list?

* comment out rules for later fixing

* upgrade node setup for windows
2022-06-23 17:52:30 -05:00
Ben Schwartz
f6be0dd6b0 fix(sec): Use longer passwords 2022-05-13 15:35:14 -04:00
Ben Schwartz
733f49c891 fix: Avoid CI failure due to deprecated go get 2022-03-17 13:12:08 -04:00
dependabot[bot]
e20d7797f3
Merge pull request #1057 from Jigsaw-Code/dependabot/npm_and_yarn/node-fetch-2.6.7 2022-03-15 20:43:51 +00:00
Vinicius Fortuna
56c9fe31ec Format remaining files 2022-03-10 02:25:48 +00:00
Vinicius Fortuna
7389ce724f Migrate to eslint 2022-03-10 01:50:59 +00:00
Vinicius Fortuna
3034e59f9f Fix lint 2022-03-09 23:10:15 +00:00
dependabot[bot]
f5d7e79597
Bump node-fetch from 2.6.5 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 15:55:10 +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
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
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
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
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
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
Daniel LaCosse
fcac54df89
Improve reliability of bulk creation and deletion of access keys (#995)
* wip

* rename file and remove bogus test

* create file library and add unit tests

oh lol

formatting

* switch to node-tmp

* makes constants screaming case

* missed a 'text'

* this is what i get for trying to use the web editor

* roll back title case
2021-10-15 14:54:48 -04:00
Jonathan Cohen
c9d3a48b62
Release Outline Manager on Github Actions (#978)
Release Outline Manager on Github Actions
2021-09-23 16:28:11 -04:00
Vinicius Fortuna
b0eb85ef14
Merge pull request #868 from database64128/api-docs
📚 API doc: add missing fields
2021-09-21 18:13:44 -04:00
Jonathan Cohen
b28b4531b4
Force remove integration test logfiles (#884)
* Don't bother cleaning up integration test log files on Travis

* Update src/shadowbox/integration_test/run_action.sh

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

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2021-05-11 13:51:53 -04:00
Jonathan Cohen
e3604a28dc
Bump shadowbox to 1.6.1 (#882) 2021-04-28 16:32:42 -04:00