halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.45k stars 9.62k forks source link

New formkit component "secret" will fulfill secret data into config instead of secret name only #6193

Closed JohnNiang closed 3 months ago

JohnNiang commented 3 months ago

System information

Local dev env.

What is the project operation method?

Source Code

What happened?

Please see the following config data:

{
    "data": {
        "basic": "{\"secretName\":\"algolia-search-engine-secret\",\"slots\":{},\"secret-form\":{\"description\":\"Algolia 搜索引擎密钥\",\"stringDataArray\":[{\"key\":\"apiKey\",\"value\":\"xxx\"},{\"key\":\"appId\",\"value\":\"yyy\"},{\"key\":\"undefined\",\"value\":\"\"}]},\"indexName\":\"halo\"}"
    },
    "apiVersion": "v1alpha1",
    "kind": "ConfigMap",
    "metadata": {
        "name": "algolia-search-engine-config",
        "version": 7,
        "creationTimestamp": "2024-06-25T09:46:21.334351Z"
    }
}

In the config data, secret data were saved into config data.

Relevant log output

No response

Additional information

/kind bug /area core /milestone 2.17.x

ruibaby commented 3 months ago

/area ui