如何维护一个FIWARE API密钥?

huangapple go评论93阅读模式
英文:

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.

如何维护一个FIWARE API密钥?

"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

huangapple
  • 本文由 发表于 2023年4月13日 22:39:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76006746.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定