def METHOD_NAME(key: str, db):
    query = db.query(db_models.RepodataSigningKey).filter(
        db_models.RepodataSigningKey.public_key == key,
    )
    if not query:
        raise HTTPException(
            status_code=status.HTTP_404_NOT_FOUND, detail="Key not found"
        )