aboutcode-org / aboutcode-org/vulnerablecode
Add expiry for API key
- 主要语言
- Python
- 星标
- 702
- 派生
- 328
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 3
描述
We can have a default duration for expiry or allow users to set their own expiry date, or both.
Another idea is to have the key with dynamic expiry based on usage, using some decay function. If the key is not used for a certain duration, it should expire.
However, this approach seems unpredictable from a consumer's perspective. As a consumer, it is much easier for me if I have certainty about when my API key will stop working so that I can plan and update my scripts with a new key in advance. This key decay may also lead to behaviors like periodic scripts hitting the API just to keep the key alive, which would be annoying for both producer and consumers.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。