英文:
How to maintain a FIWARE apikey?
问题
I have seen that the "apikey" is a parameter to uniquely identify a service group. The following figure shows how to identify a set of commands and attributes associated with a device type. However, I have not found information on whether there is any service that allows to create, verify and maintain the created apikey beyond managing them using a CRUD. Is there any FIWARE service or best practice that allows this?
英文:
Reviewing the IoT Agent documentation I have seen that the "apikey" is a parameter to uniquely identify a service group. The following figure shows how to identify a set of commands and attributes associated with a device type.
"services": [
{
"apikey": "5jggokgpepnvsb2uv4s40d59ov",
"cbroker": "'"http://orion:$ORION_PORT"'",
"entity_type": "Agv",
"transport": "MQTT",
"resource": "",
"commands": [
{
....
However, I have not found information on whether there is any service that allows to create, verify and maintain the created apikey beyond managing them using a CRUD. Is there any FIWARE service or best practice that allows this?
答案1
得分: 1
I'm not sure what kind of managing service are you thinking on...
例如,我们有一个管理门户,可以生成随机的API密钥供使用和共享,我们还使用它来列出和管理API密钥,但它们仅在IoT Agent服务内部并通过使用IoT Agent API进行管理。除了一些用于运维目的的秘密/密码管理器(如Vaultier)外,我们不需要额外的服务。
作为流程的一部分,我们还为每个数据提供商共享私有的集成文档,说明他们应该为每种设备/测量使用哪些API密钥。但没有涉及到服务。这只是一个OTT过程。
至于最佳实践:
- 我们在API密钥中添加一些“标记”或有意义的信息,以便我们可以轻松识别它们:preMOBAdfjf3ddfvDfj34f,proDLd3324jf3vDfj34f
- 我们使用25个字符的API密钥
最好
英文:
I'm not sure what kind of managing service are you thinking on...
For example we've got an administration portal able to generate ramdom apikeys to be used and shared, we also use it to list and manage apikeys but they are kept just within the iotAgent Service and managed by using IotAgent api. We don't require an extra service, except some secret/password manager like Vaultier for ops purposes.
As part of the process we also share private integration docs for every data provider stating which apikeys they should use for every kind of device/measure. But there is no service involved. It's just an OTT process.
As for best practices:
- we append some "mark" or meaningful information within the apikey, so we can recognize them easily: preMOBAdfjf3ddfvDfj34f, proDLd3324jf3vDfj34f
- and we use 25 chars apikeys
Best
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论