Provisioning: Add inline secure values to repository schema (#109594)

This commit is contained in:
Ryan McKinley
2025-08-20 09:05:41 +00:00
committed by GitHub
parent c37a03263f
commit fa81fae1e3
13 changed files with 333 additions and 28 deletions
@@ -2375,6 +2375,9 @@
"metadata": {
"default": {}
},
"secure": {
"default": {}
},
"spec": {
"default": {}
},
@@ -3464,6 +3467,14 @@
}
]
},
"secure": {
"default": {},
"allOf": [
{
"$ref": "#/components/schemas/com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SecureValues"
}
]
},
"spec": {
"default": {},
"allOf": [
@@ -4193,6 +4204,30 @@
}
]
},
"com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SecureValues": {
"description": "NOT YET USED FOR REAL -- testing secure value workflow",
"type": "object",
"properties": {
"token": {
"description": "Token used to connect the configured repository",
"default": {},
"allOf": [
{
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue"
}
]
},
"webhookSecret": {
"description": "Some webhooks (github) require a secret key value",
"default": {},
"allOf": [
{
"$ref": "#/components/schemas/com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue"
}
]
}
}
},
"com.github.grafana.grafana.apps.provisioning.pkg.apis.provisioning.v0alpha1.SyncJobOptions": {
"type": "object",
"required": [
@@ -4406,6 +4441,45 @@
}
}
},
"com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.InlineSecureValue": {
"description": "Allow access to a secure value inside",
"oneOf": [
{
"required": [
"name"
]
},
{
"required": [
"create"
]
},
{
"required": [
"remove"
]
}
],
"properties": {
"create": {
"description": "Create a secure value -- this is only used for POST/PUT",
"type": "string",
"maxLength": 24576,
"minLength": 1
},
"name": {
"description": "Name in the secret service (reference)",
"type": "string",
"maxLength": 253,
"minLength": 1
},
"remove": {
"description": "Remove this value from the secure value map Values owned by this resource will be deleted if necessary",
"type": "boolean"
}
},
"additionalProperties": false
},
"com.github.grafana.grafana.pkg.apimachinery.apis.common.v0alpha1.Unstructured": {
"type": "object",
"additionalProperties": true,