[8.x] Add CA certificate path to actions config (#194528) (#194561)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Add CA certificate path to actions config
(#194528)](https://github.com/elastic/kibana/pull/194528)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-01T12:04:10Z","message":"Add
CA certificate path to actions config (#194528)\n\nThis PR adds
usage-api CA certificate path to actions plugin's config.\r\nSo we can
add it to serverless config in
gitops.","sha":"ed9f9883d83afe971147d664b3344dc7256e4e9d","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor"],"title":"Add
CA certificate path to actions
config","number":194528,"url":"https://github.com/elastic/kibana/pull/194528","mergeCommit":{"message":"Add
CA certificate path to actions config (#194528)\n\nThis PR adds
usage-api CA certificate path to actions plugin's config.\r\nSo we can
add it to serverless config in
gitops.","sha":"ed9f9883d83afe971147d664b3344dc7256e4e9d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194528","number":194528,"mergeCommit":{"message":"Add
CA certificate path to actions config (#194528)\n\nThis PR adds
usage-api CA certificate path to actions plugin's config.\r\nSo we can
add it to serverless config in
gitops.","sha":"ed9f9883d83afe971147d664b3344dc7256e4e9d"}}]}]
BACKPORT-->

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-10-01 23:38:48 +10:00 committed by GitHub
parent bc86cfdbd9
commit 27b0605108
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,6 +145,15 @@ export const configSchema = schema.object({
max: schema.maybe(schema.number({ min: MIN_QUEUED_MAX, defaultValue: DEFAULT_QUEUED_MAX })),
})
),
usage: schema.maybe(
schema.object({
cert: schema.maybe(
schema.object({
path: schema.string(),
})
),
})
),
});
export type ActionsConfig = TypeOf<typeof configSchema>;