-
Notifications
You must be signed in to change notification settings - Fork 173
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
make Secret API ready for production #472
Comments
@seeflood anyone do this ? if not assign me. |
@ZLBer No one working on it yet. |
@seeflood our meta can not parse such data:
so i think we can change the structure of this:
|
@ZLBer that's really a problem :(
It seems ok. But if we want to add a new secret reference here, e.g. a
It won't work! |
In addition to "secret reference", we might need a "configuration reference" ,see #500
Make incompatible changes:
We have to warn and help existing users refactor their configs.
Add a new field called "properties":
|
I prefer |
@seeflood @zhenjunMa |
agreed. |
@seeflood @zhenjunMa 我觉得我们可以在meta之外加一个refs字段,初始化的时候把refs里的字段注入到meta里就可以了,我觉得这样的改动是最小的了。不然改动真的挺大的,配置解析、配置文件、每种组件的config都得改。 |
@ZLBer 恩这也是一种方案
如果用方案A,不需要改组件的代码呀,runtime 层在启动时把ref翻译成 map[string]string 结构,然后再调组件的 Init 接口初始化。 方案A 涉及的改动点是:
|
@seeflood 这里面所有的config也都得改吧? 现在的这个大config是json直接解析过来的。或者可以自己自定义一个json解析器将ref解析成 map[string]string? (没写过 |
当前讨论进展见:
如果用这个结构的话,就可以向下兼容啦,看看合适么 |
What would you like to be added:
Layotto already has the feature of Secret API, see #343
However, there are still many problems to be solved before it can be used in a production environment, including:
Demos and docs. see Add demo and document for secret API #460
Let the components of other APIs refer to the secret component in the configuration file.
For example, currently if users want to use the redis component for the state API, they should write the password of redis in the configuration file, which is insecure.
To solve this problem, we should allow users to "refer to" the secret component in the configuration and have the secret component automatically obtain the password.
See https://docs.dapr.io/operations/components/component-secrets/
Access control. For example, we should retrict which keys can be accessed by app1, see https://docs.dapr.io/developing-applications/building-blocks/secrets/secrets-scopes/
Why is this needed:
To make Secret API ready for production
chinese:
虽然 Layotto 支持了 secret API,见 #343
但是距离在生产环境用,还需要:
The text was updated successfully, but these errors were encountered: