aboutcode-org / aboutcode-org/vulnerablecode

Add expiry for API key

Aberta
#1,531 0 comentários 0 reações 0 responsáveis Ver no GitHub
API enhancement feature
Linguagem predominante
Python
Estrelas
702
Forks
328
Merge médio
3d 8h
PRs com merge (30d)
3

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.