Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Function library permission optimization #2603

Open
linfengjjj opened this issue Mar 18, 2025 · 2 comments
Open

[Feature] Function library permission optimization #2603

linfengjjj opened this issue Mar 18, 2025 · 2 comments
Assignees
Milestone

Comments

@linfengjjj
Copy link

linfengjjj commented Mar 18, 2025

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

@shaohuzhang1 shaohuzhang1 changed the title [Feature] 函数库权限优化 [Feature] Function library permission optimization Mar 18, 2025
@baixin513
Copy link
Contributor

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

@shaohuzhang1
Copy link
Contributor

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.

@baixin513 baixin513 added this to the v1.10.3 milestone Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants