Commit Graph

16 Commits

Author SHA1 Message Date
Wesley Schwengle
e85b6f2837 fix(Docker) #6211: Bug where SWAGGER_JSON is used without mount (#6212) 2020-07-16 18:18:56 -07:00
Wesley Schwengle
bec0533d5c Fix(Docker): case where SWAGGER_ROOT in conjunction with BASE_URL does not work (#6147) 2020-06-15 18:04:28 -07:00
Vladimir Gorej
a616cb471d fix(Markdown): render markdown in more secure way
This commit changes markdown sanitization behaviour in following way:

class, style and data-* attributes are removed by default. These attributes
open possible vulnerability vectors to attackers.

The original behavior of sanitizer (before this commit) can be enabled by *useUnsafeMarkdown* configuration option.
Use this configuration option with caution and only in cases when you know
what you're doing.
2020-06-11 21:51:15 +02:00
Matthew Morrissette
275c8f2ccf improvement: oauth "scopes" improvements (#6037)
* improvement: oauth "scopes" init parameter

* improvement: add "select all" and "select none" to oauth scopes popup
2020-06-10 11:27:54 -07:00
Wesley Schwengle
f3539748d3 fix: Allow local ref's to be served by nginx (#5565) 2020-06-09 17:16:06 -07:00
Christian Mehlmauer
5217366c09 add swagger url option (#6122) 2020-06-09 16:49:15 -07:00
Siby Augustine
12e86dafb0 fix(docker-image): send relative HTTP 301s from within container (#5409)
Co-authored-by: kyle shockey <kyle.shockey1@gmail.com>
2020-03-22 20:47:45 -04:00
poveilleux
139592e353 feat: add PKCE support for OAuth2 Authorization Code flows (#5361)
* Add PKCE support.

* Fix tests

* Update oauth2.md

* Rename usePkce

* Fix the BrokenComponent error

* Update oauth2.md

* Remove isCode variable. Remove uuid4 dependency.

* Remove utils functions

* Import crypto

* Fix tests

* Fix the tests

* Cleanup

* Fix code_challenge generation

* Move code challenge and verifier to utils for mocks. Update tests.

* Mock the PKCE methods in the utils file properly.

* Add missing expect

* use target-method spies

* Add comments to explain test values.

* Get rid of jsrsasign.
2019-10-07 17:24:43 -07:00
Segev Finer
be72c292ca feature: add withCredentials configuration key (via #5149)
* Add the withCredentials configuration key

It enables passing credentials in CORS requests. e.g. Cookies and
Authorization headers.

* Improve withCredentials documentation

* Add unit tests for the withCredentials config

* Update configuration.md

* Update configuration.md

* only set `withCredentials` Fetch flag if the config value is truthy

there are some workarounds in the wild today that involve setting `withCredentials` on `system.fn.fetch` directly. 

this approach avoids mangling those existing workarounds!

* add more test cases

* Update configs-wrap-actions.js

* Update index.js
2019-03-20 12:36:08 -07:00
kyle
604c7b420f fix: generate gzipped Docker assets at runtime (via #5219) 2019-03-05 15:49:45 -08:00
Yann Odeyer
dd961ed401 improvement(docker): gzip static files (via #5199) 2019-03-01 21:06:40 -08:00
Segev Finer
dd34393ea2 improvement(docker): avoid caching mounted json/yml/yaml assets (via #5151) 2019-02-02 00:14:48 -06:00
kyle
59bd9f4988 improve(docker): bail out + provide helpful error if injection fails (via #5007)
* add `onFound` callback to schemas

* add warning to method docs (for #4957)

* implement Docker OAuth2 init block support

* update docs

* add OAUTH_SCOPE_SEPARATOR

* drop OAuth env from Dockerfile and run script

* don't indent the first oauth block line

* drop unused `dedent` import

* touch up warning message

* add more test cases

* return an empty block if no OAuth content is generated

* fix broken doc line

* allow legacy values to override base values

* TEMPORARY (DROP THIS): use legacy HTML from Petstore

* improve(docker): bail out + provide helpful error if injection fails

* Revert "TEMPORARY (DROP THIS): use legacy HTML from Petstore"

This reverts commit 10c18c333262c5411197d9bb085c6b95305beb19.
2018-11-06 02:34:44 +00:00
kyle
02758b8125 bugfix: legacy Docker variables being overridden by default values (via #5006)
* add `onFound` callback to schemas

* add warning to method docs (for #4957)

* implement Docker OAuth2 init block support

* update docs

* add OAUTH_SCOPE_SEPARATOR

* drop OAuth env from Dockerfile and run script

* don't indent the first oauth block line

* drop unused `dedent` import

* touch up warning message

* add more test cases

* return an empty block if no OAuth content is generated

* fix broken doc line

* allow legacy values to override base values
2018-11-06 01:57:20 +00:00
kyle
c6eb8edb5f feature: Docker OAuth block support (via #4987)
* add `onFound` callback to schemas
* add warning to method docs (for #4957)
* implement Docker OAuth2 init block support
* update docs
* add OAUTH_SCOPE_SEPARATOR
* drop OAuth env from Dockerfile and run script
* don't indent the first oauth block line
* drop unused `dedent` import
* touch up warning message
* add more test cases
* return an empty block if no OAuth content is generated
* fix broken doc line
2018-11-01 18:52:13 -04:00
kyle
31a8b13777 feature: full-spectrum runtime Docker configuration (via #4965)
* reorganize docker things

* Configurator WIP

* implement Docker runtime config generator

* add tests

* update documentation

* fix Markdown tables

* Move Docker section

* add note to README

* move up `nodejs` install for more aggressive caching

* drop exclusive test

* fix missing `DISPLAY_OPERATION_ID`
2018-11-01 14:53:29 -04:00