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

Open
#9,367 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker-compose, github-actions, hadoop, rust

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Rust
Stars
5.5k
Forks
869
Avg merge
8h 2m
Merged PRs (30d)
862

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/opendal

All issues in apache/opendal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.