Add columns to `worker_oauth` to track last key rotation date and key expiry date

Aperta
#573 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
database

Direzione di ricerca

Start by locating the worker_oauth table definition and the code that creates or updates its keys. Check how schema changes and database migrations are handled in the project. Done means the table can store the last rotation date and a nullable expiry date, while existing key records continue to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

database security

the worker_oauth table (which is used for storing keys on instances where there are more than one of them) should ideally have columns to track key dates related to the keys, such as:

  • When they were last rotated (this can probably also account for when they were added/last updated too)
  • When they expire (nullable, some platforms allow no expiry, and some may mandate that theres an expiry date)
    - When they were first added (dubiously useful and hard to retroactively add as a mandatory field)

Having these dates would be useful to display in the UI (as part of #55) and might be helpful for reminding instance owners if some of their keys are up for expiry soon (or if they want a reminder to rotate them periodically)

Currently, if this information is desired to be stored, it can be shoved into the name field (using it more like a comments field)

Lingua principale
Python
Stelle
17
Fork
30
Merge medio
6h 16m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chaoss/CollectOSS

Tutte le issue di chaoss/CollectOSS

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.