@backstage-community/plugin-kafka-backend 0.11.0 → 0.12.0

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @backstage-community/plugin-kafka-backend
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 23bef97: Backstage version bump to v1.54.5
8
+
9
+ ### Patch Changes
10
+
11
+ - 688b57d: Updated dependency `jest-when` to `^4.0.0`.
12
+ - c120454: Updated dependency `@types/supertest` to `^7.0.0`.
13
+
3
14
  ## 0.11.0
4
15
 
5
16
  ### Minor Changes
@@ -0,0 +1,96 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "kafka": {
6
+ "type": "object",
7
+ "properties": {
8
+ "clientId": {
9
+ "type": "string",
10
+ "description": "Client ID used to Backstage uses to identify when connecting to the Kafka cluster."
11
+ },
12
+ "clusters": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "properties": {
17
+ "name": {
18
+ "type": "string"
19
+ },
20
+ "brokers": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ },
25
+ "description": "List of brokers in the Kafka cluster to connect to."
26
+ },
27
+ "ssl": {
28
+ "anyOf": [
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "ca": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "key": {
39
+ "type": "string",
40
+ "visibility": "secret"
41
+ },
42
+ "cert": {
43
+ "type": "string"
44
+ },
45
+ "rejectUnauthorized": {
46
+ "type": "boolean"
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "type": "boolean"
52
+ }
53
+ ],
54
+ "description": "Optional SSL connection parameters to connect to the cluster. Passed directly to Node tls.connect. See https://nodejs.org/dist/latest-v8.x/docs/api/tls.html#tls_tls_createsecurecontext_options"
55
+ },
56
+ "sasl": {
57
+ "type": "object",
58
+ "properties": {
59
+ "mechanism": {
60
+ "type": "string",
61
+ "enum": [
62
+ "plain",
63
+ "scram-sha-256",
64
+ "scram-sha-512"
65
+ ]
66
+ },
67
+ "username": {
68
+ "type": "string"
69
+ },
70
+ "password": {
71
+ "type": "string",
72
+ "visibility": "secret"
73
+ }
74
+ },
75
+ "required": [
76
+ "mechanism",
77
+ "username",
78
+ "password"
79
+ ],
80
+ "description": "Optional SASL connection parameters."
81
+ }
82
+ },
83
+ "required": [
84
+ "name",
85
+ "brokers"
86
+ ]
87
+ }
88
+ }
89
+ },
90
+ "required": [
91
+ "clientId",
92
+ "clusters"
93
+ ]
94
+ }
95
+ }
96
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-kafka-backend",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "A Backstage backend plugin that integrates towards Kafka",
5
5
  "backstage": {
6
6
  "role": "backend-plugin",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "files": [
57
57
  "dist",
58
- "config.d.ts",
58
+ "config.schema.json",
59
59
  "alpha"
60
60
  ],
61
61
  "scripts": {
@@ -68,10 +68,10 @@
68
68
  "test": "backstage-cli package test"
69
69
  },
70
70
  "dependencies": {
71
- "@backstage/backend-defaults": "^0.16.0",
72
- "@backstage/backend-plugin-api": "^1.8.0",
73
- "@backstage/config": "^1.3.6",
74
- "@backstage/errors": "^1.2.7",
71
+ "@backstage/backend-defaults": "^0.17.7",
72
+ "@backstage/backend-plugin-api": "^1.10.0",
73
+ "@backstage/config": "^1.3.8",
74
+ "@backstage/errors": "^1.3.1",
75
75
  "@types/express": "^4.17.6",
76
76
  "express": "^4.17.1",
77
77
  "express-promise-router": "^4.1.0",
@@ -79,13 +79,13 @@
79
79
  "lodash": "^4.17.21"
80
80
  },
81
81
  "devDependencies": {
82
- "@backstage/backend-test-utils": "^1.11.1",
83
- "@backstage/cli": "^0.36.0",
82
+ "@backstage/backend-test-utils": "^1.11.6",
83
+ "@backstage/cli": "^0.36.5",
84
84
  "@types/jest-when": "^3.5.0",
85
85
  "@types/lodash": "^4.14.151",
86
- "@types/supertest": "^6.0.0",
87
- "jest-when": "^3.1.0",
86
+ "@types/supertest": "^7.0.0",
87
+ "jest-when": "^4.0.0",
88
88
  "supertest": "^7.0.0"
89
89
  },
90
- "configSchema": "config.d.ts"
90
+ "configSchema": "config.schema.json"
91
91
  }
package/config.d.ts DELETED
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export interface Config {
17
- kafka?: {
18
- /**
19
- * Client ID used to Backstage uses to identify when connecting to the Kafka cluster.
20
- */
21
- clientId: string;
22
- clusters: Array<{
23
- name: string;
24
- /**
25
- * List of brokers in the Kafka cluster to connect to.
26
- */
27
- brokers: string[];
28
- /**
29
- * Optional SSL connection parameters to connect to the cluster. Passed directly to Node tls.connect.
30
- * See https://nodejs.org/dist/latest-v8.x/docs/api/tls.html#tls_tls_createsecurecontext_options
31
- */
32
- ssl?:
33
- | {
34
- ca?: string[];
35
- /** @visibility secret */
36
- key?: string;
37
- cert?: string;
38
- rejectUnauthorized?: boolean;
39
- }
40
- | boolean;
41
- /**
42
- * Optional SASL connection parameters.
43
- */
44
- sasl?: {
45
- mechanism: 'plain' | 'scram-sha-256' | 'scram-sha-512';
46
- username: string;
47
- /** @visibility secret */
48
- password: string;
49
- };
50
- }>;
51
- };
52
- }