@kyverno/backstage-plugin-policy-reporter-backend 2.6.0 → 2.7.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 +15 -0
- package/config.schema.json +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/schema/openapi/generated/router.cjs.js +696 -6
- package/dist/schema/openapi/generated/router.cjs.js.map +1 -1
- package/dist/service/policyReporterService.cjs.js +45 -0
- package/dist/service/policyReporterService.cjs.js.map +1 -1
- package/dist/service/router.cjs.js +59 -0
- package/dist/service/router.cjs.js.map +1 -1
- package/package.json +16 -16
- package/config.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @kyverno/backstage-plugin-policy-reporter-backend
|
|
2
2
|
|
|
3
|
+
## 2.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 32f327e: Add cluster-scoped source, kind, category and policy filters.
|
|
8
|
+
- 32f327e: Add support for fetching cluster-scoped policy results.
|
|
9
|
+
- 32f327e: Backstage verion bump to v1.55.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [32f327e]
|
|
14
|
+
- Updated dependencies [32f327e]
|
|
15
|
+
- Updated dependencies [32f327e]
|
|
16
|
+
- @kyverno/backstage-plugin-policy-reporter-common@2.6.0
|
|
17
|
+
|
|
3
18
|
## 2.6.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"policyReporter": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"requestHeaders": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"description": "Optional HTTP headers forwarded with every outbound request to every Policy Reporter API Typically used to authenticate through a gateway/proxy.",
|
|
14
|
+
"visibility": "backend"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,10 @@ interface PolicyReporterApi {
|
|
|
150
150
|
entityRef: string;
|
|
151
151
|
query: Filter & Pagination;
|
|
152
152
|
}): Promise<ResultList>;
|
|
153
|
+
getClusterResourceResults(options: {
|
|
154
|
+
entityRef: string;
|
|
155
|
+
query: Pick<Filter, 'sources' | 'kinds' | 'categories' | 'policies' | 'status' | 'severities' | 'search' | 'labels'> & Pagination;
|
|
156
|
+
}): Promise<ResultList>;
|
|
153
157
|
getNamespaces(options: {
|
|
154
158
|
entityRef: string;
|
|
155
159
|
query: Pick<Filter, 'sources' | 'categories' | 'policies'>;
|
|
@@ -169,6 +173,21 @@ interface PolicyReporterApi {
|
|
|
169
173
|
entityRef: string;
|
|
170
174
|
query: Pick<Filter, 'sources' | 'namespaces' | 'categories'>;
|
|
171
175
|
}): Promise<string[]>;
|
|
176
|
+
getClusterSources(options: {
|
|
177
|
+
entityRef: string;
|
|
178
|
+
}): Promise<string[]>;
|
|
179
|
+
getClusterKinds(options: {
|
|
180
|
+
entityRef: string;
|
|
181
|
+
query: Pick<Filter, 'sources' | 'namespaces'>;
|
|
182
|
+
}): Promise<string[]>;
|
|
183
|
+
getClusterCategories(options: {
|
|
184
|
+
entityRef: string;
|
|
185
|
+
query: Pick<Filter, 'sources'>;
|
|
186
|
+
}): Promise<string[]>;
|
|
187
|
+
getClusterPolicies(options: {
|
|
188
|
+
entityRef: string;
|
|
189
|
+
query: Pick<Filter, 'sources' | 'categories'>;
|
|
190
|
+
}): Promise<string[]>;
|
|
172
191
|
}
|
|
173
192
|
|
|
174
193
|
interface RouterOptions {
|