new feature: run hdfs-native behavior tests against Kerberized MiniDFS in CI (blocked on hdfs-native#313)

Aperta
#9,367 0 commenti 1 reazione 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
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker-compose, github-actions, hadoop, rust

Direzione di ricerca

Start with .github/services/hdfs_native/hdfs_native_cluster/action.yml and fixtures/hdfs/docker-compose-hdfs-cluster.yml to see how the existing CI fixture is configured. The work is blocked on Kimahriman/hdfs-native#313, implemented by #355; check that the cluster image is available before adding the security and permissions enabled fixture variants under .github/services/hdfs_native/. Done means CI exercises the behavior tests with Kerberos settings and with user against enforced permissions.

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

Descrizione

enhancement services/hdfs_native
Feature Description

Run the hdfs-native behavior tests in CI against a Kerberized MiniDFS (MiniKdc), and against a simple-auth MiniDFS that enforces permissions, so CI covers the user and Kerberos settings.

Problem and Solution

#9358 adds config_dir, user, kerberos_principal, kerberos_keytab and kerberos_cache to the hdfs-native service. Those settings were checked locally on MiniDFS with MiniKdc. CI cannot check them today. The hdfs_native_cluster fixture (.github/services/hdfs_native/hdfs_native_cluster/action.yml) starts fixtures/hdfs/docker-compose-hdfs-cluster.yml, which sets dfs_permissions_enabled: false and has no KDC. A run with user set therefore passes whether or not the setting takes effect, and Kerberos is never exercised.

Once the MiniDFS test cluster is published as a container image, add two fixture variants under .github/services/hdfs_native/:

  • security mode with MiniKdc. It runs the behavior tests with kerberos_principal and kerberos_keytab from the cluster's generated keytab, reading the cluster's Hadoop configuration through config_dir.
  • Plain mode with permissions enabled. It runs the behavior tests with user set.
Additional Context
  • Blocked on Kimahriman/hdfs-native#313 ("Publish the minidfs test cluster as a container image"), which Kimahriman/hdfs-native#355 implements.
  • Refs #9038 and #9358.
Are you willing to contribute to the development of this feature?
  • Yes, I am willing to contribute to the development of this feature.

Drafted with AI assistance (Claude Code, Claude Opus 5.5) and reviewed by the author.

Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.