@backstage/plugin-proxy-backend 0.5.0-next.3 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/alpha/package.json +2 -2
- package/dist/alpha.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# @backstage/plugin-proxy-backend
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-common@0.23.1
|
|
9
|
+
- @backstage/backend-plugin-api@0.6.20
|
|
10
|
+
- @backstage/config@1.2.0
|
|
11
|
+
- @backstage/types@1.1.1
|
|
12
|
+
|
|
13
|
+
## 0.5.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 88480e4: **BREAKING**: The proxy backend plugin is now protected by Backstage auth, by
|
|
18
|
+
default. Unless specifically configured (see below), all proxy endpoints will
|
|
19
|
+
reject requests immediately unless a valid Backstage user or service token is
|
|
20
|
+
passed along with the request. This aligns the proxy with how other Backstage
|
|
21
|
+
backends behave out of the box, and serves to protect your upstreams from
|
|
22
|
+
unauthorized access.
|
|
23
|
+
|
|
24
|
+
A proxy configuration section can now look as follows:
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
proxy:
|
|
28
|
+
endpoints:
|
|
29
|
+
'/pagerduty':
|
|
30
|
+
target: https://api.pagerduty.com
|
|
31
|
+
credentials: require # NEW!
|
|
32
|
+
headers:
|
|
33
|
+
Authorization: Token token=${PAGERDUTY_TOKEN}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
There are three possible `credentials` settings at this point:
|
|
37
|
+
|
|
38
|
+
- `require`: Callers must provide Backstage user or service credentials with
|
|
39
|
+
each request. The credentials are not forwarded to the proxy target.
|
|
40
|
+
- `forward`: Callers must provide Backstage user or service credentials with
|
|
41
|
+
each request, and those credentials are forwarded to the proxy target.
|
|
42
|
+
- `dangerously-allow-unauthenticated`: No Backstage credentials are required to
|
|
43
|
+
access this proxy target. The target can still apply its own credentials
|
|
44
|
+
checks, but the proxy will not help block non-Backstage-blessed callers. If
|
|
45
|
+
you also add `allowedHeaders: ['Authorization']` to an endpoint configuration,
|
|
46
|
+
then the Backstage token (if provided) WILL be forwarded.
|
|
47
|
+
|
|
48
|
+
The value `dangerously-allow-unauthenticated` was the old default.
|
|
49
|
+
|
|
50
|
+
The value `require` is the new default, so requests that were previously
|
|
51
|
+
permitted may now start resulting in `401 Unauthorized` responses. If you have
|
|
52
|
+
`backend.auth.dangerouslyDisableDefaultAuthPolicy` set to `true`, this does not
|
|
53
|
+
apply; the proxy will behave as if all endpoints were set to
|
|
54
|
+
`dangerously-allow-unauthenticated`.
|
|
55
|
+
|
|
56
|
+
If you have proxy endpoints that require unauthenticated access still, please
|
|
57
|
+
add `credentials: dangerously-allow-unauthenticated` to their declarations in
|
|
58
|
+
your app-config.
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- 8869b8e: Updated local development setup.
|
|
63
|
+
- 78a0b08: Internal refactor to handle `BackendFeature` contract change.
|
|
64
|
+
- d44a20a: Added additional plugin metadata to `package.json`.
|
|
65
|
+
- Updated dependencies
|
|
66
|
+
- @backstage/backend-common@0.23.0
|
|
67
|
+
- @backstage/backend-plugin-api@0.6.19
|
|
68
|
+
- @backstage/config@1.2.0
|
|
69
|
+
- @backstage/types@1.1.1
|
|
70
|
+
|
|
3
71
|
## 0.5.0-next.3
|
|
4
72
|
|
|
5
73
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
|
5
5
|
*
|
|
6
6
|
* @alpha
|
|
7
7
|
*/
|
|
8
|
-
declare const _default:
|
|
8
|
+
declare const _default: _backstage_backend_plugin_api.BackendFeatureCompat;
|
|
9
9
|
|
|
10
10
|
export { _default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-proxy-backend",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A Backstage backend plugin that helps you set up proxy endpoints in the backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test": "backstage-cli package test"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@backstage/backend-common": "^0.23.
|
|
56
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
55
|
+
"@backstage/backend-common": "^0.23.1",
|
|
56
|
+
"@backstage/backend-plugin-api": "^0.6.20",
|
|
57
57
|
"@backstage/config": "^1.2.0",
|
|
58
58
|
"@backstage/types": "^1.1.1",
|
|
59
59
|
"@types/express": "^4.17.6",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"yup": "^1.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@backstage/backend-app-api": "^0.7.
|
|
72
|
-
"@backstage/backend-defaults": "^0.3.
|
|
73
|
-
"@backstage/backend-test-utils": "^0.4.
|
|
74
|
-
"@backstage/cli": "^0.26.
|
|
75
|
-
"@backstage/config-loader": "^1.8.1
|
|
71
|
+
"@backstage/backend-app-api": "^0.7.7",
|
|
72
|
+
"@backstage/backend-defaults": "^0.3.1",
|
|
73
|
+
"@backstage/backend-test-utils": "^0.4.1",
|
|
74
|
+
"@backstage/cli": "^0.26.8",
|
|
75
|
+
"@backstage/config-loader": "^1.8.1",
|
|
76
76
|
"@backstage/errors": "^1.2.4",
|
|
77
77
|
"@types/http-proxy-middleware": "^1.0.0",
|
|
78
78
|
"@types/uuid": "^9.0.0",
|