[Feature] Function library permission optimization
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
感谢反馈,V1.10.3中,函数的参数会分为启动参数和使用参数,启动参数为所有者维护设置,工作流中只会看到使用参数,你可以把连接信息配置为启动参数,密码可以使用密码框组件会对数据进行加密存储,把查询语句配置为使用参数再工作流中赋值。
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.
V1.10.3-lts版本已发布,请更新试用!
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 How to use startup parameters in custom scripts?