Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

ETL: multi-tenant token management for high-volume data pipelines

Abierto
#29 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
php
Área
api, backend

Línea de trabajo

Start by reading the SDK's existing OAuth token creation flow and CacheInterface to understand their contracts. Then determine whether token pooling belongs in the core SDK and how expiry should be represented; the issue leaves both decisions open. Done means an agreed design supports per-tenant token reuse and refresh before jobs start.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

help wanted

Problem

In multi-tenant SaaS platforms, each tenant has its own Openapi credentials. Running ETL jobs for hundreds of tenants simultaneously requires generating, caching, and refreshing tokens per-tenant — something the current SDK does not model.

Current workaround

foreach ($tenants as $tenant) {
    $oauth = new OauthClient($tenant['username'], $tenant['apikey']);
    $token = json_decode($oauth->createToken($scopes), true)['token'];

    // Problem: no TTL tracking, no reuse across jobs, no central cache
    $client = new Client($token);
    runEtlJob($tenant, $client);
}

What would help

A TokenPool or TokenStore abstraction that:

  • Caches tokens per-tenant until near expiry
  • Refreshes automatically before a job starts
  • Plugs into the existing CacheInterface
$pool = new TokenPool($oauthClient, cache: new RedisCache($redis));
$client = new Client(tokenPool: $pool->forTenant($tenantId));

Open questions

  • Is TokenPool within scope for the core SDK or a separate package?
  • Should it integrate with the existing Cache\CacheInterface or define its own contract?
  • How should token expiry be tracked — store the TTL alongside the token?
Lenguaje dominante
PHP
Estrellas
20
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openapi/openapi-php-sdk

Todos los issues de openapi/openapi-php-sdk

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.