MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Feature] Function library permission optimization

Open linfengjjj opened this issue 11 months ago • 2 comments

MaxKB Version

v1.10.2-LTS

Please describe your needs or suggestions for improvements

目前在函数中连接数据库,密码写死的话,可以被其他人看到,不太符合安全规定。 希望可以支持配置某个函数所有人可以使用,但是除了自己其他人不可以查看和编辑内容,因为其他人没有查看函数中数据库账号密码的权限。

Please describe the solution you suggest

No response

Additional Information

No response

linfengjjj avatar Mar 18 '25 09:03 linfengjjj

感谢反馈,V1.10.3中,函数的参数会分为启动参数和使用参数,启动参数为所有者维护设置,工作流中只会看到使用参数,你可以把连接信息配置为启动参数,密码可以使用密码框组件会对数据进行加密存储,把查询语句配置为使用参数再工作流中赋值。

baixin513 avatar Mar 20 '25 01:03 baixin513

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for feedback, in V1.10.3, the parameters of the function will be divided into startup parameters and usage parameters. The startup parameters are maintained by the owner. Only the usage parameters will be seen in the workflow. You can configure the connection information as startup parameters. The password can be used to encrypt and store the data. The query statement will be configured to use parameters and then assign values ​​in the workflow.

shaohuzhang1 avatar Mar 20 '25 01:03 shaohuzhang1

V1.10.3-lts版本已发布,请更新试用!

baixin513 avatar Apr 03 '25 09:04 baixin513

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


V1.10.3-lts version has been released, please update and try it out!

shaohuzhang1 avatar Apr 03 '25 09:04 shaohuzhang1

@shaohuzhang1 How to use startup parameters in custom scripts?

928871247 avatar Apr 09 '25 09:04 928871247