Skip to content

Linstor: Add controller token auth support#13470

Open
rp- wants to merge 2 commits into
apache:4.22from
LINBIT:linstor-4.22-token-auth-support
Open

Linstor: Add controller token auth support#13470
rp- wants to merge 2 commits into
apache:4.22from
LINBIT:linstor-4.22-token-auth-support

Conversation

@rp-

@rp- rp- commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description

Linstor 1.34.0 will add support for a new bearer token authentication method, and this PR will add support for exactly that.
The PR will simply update the java-linstor library that adds authentication support and adds 2 new config values
to set an explicit token and also to enable/disable use of untrusted https controller certificates.

How to enable token authentication in Linstor can be read here: https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-linstor-token-authentication

Linstor 1.34.0 is currently only released as release canidate.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • [] Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

This change is running now since 2 weeks on our internal Cloudstack cluster, additionally fresh
Linstor/Cloudstack cluster installs with token authentication have been tested.

How did you try to break this feature and the system with this change?

The good thing about the changes is, that it is rather a works or doesn't work thing, as the changes are on the base communication.

rp- added 2 commits June 22, 2026 14:49
With Linstor 1.34.0 a new authentication mode is supported:
* Bearer token

To support that it had to be implemented in the java-linstor library
and we need to store the auth token per storage pool.
Also per default with this auth mode Linstor will run with
HTTPS enabled, so we also have to support that.
StaticInputsForm.fillValue() only seeded defaults for currently-displayed
fields, so a display-gated switch with checked:true bound to an undefined
value and rendered as off once revealed. Seed checked switch/checkbox
fields even while hidden, so the Linstor 'Allow self-signed certificate'
toggle defaults on in the zone creation wizard.
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 130 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.66%. Comparing base (288f9a9) to head (d9093e9).

Files with missing lines Patch % Lines
...ge/datastore/util/LinstorConfigChangeListener.java 0.00% 33 Missing ⚠️
...tore/driver/LinstorPrimaryDataStoreDriverImpl.java 0.00% 24 Missing ⚠️
...cloudstack/storage/datastore/util/LinstorUtil.java 0.00% 19 Missing ⚠️
...ifecycle/LinstorPrimaryDataStoreLifeCycleImpl.java 0.00% 17 Missing ⚠️
...ck/storage/snapshot/LinstorVMSnapshotStrategy.java 0.00% 13 Missing ⚠️
.../hypervisor/kvm/storage/LinstorStorageAdaptor.java 0.00% 11 Missing ⚠️
...tack/storage/motion/LinstorDataMotionStrategy.java 0.00% 6 Missing ⚠️
...oud/hypervisor/kvm/storage/LinstorStoragePool.java 0.00% 5 Missing ⚠️
...ge/datastore/util/LinstorConfigurationManager.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #13470      +/-   ##
============================================
- Coverage     17.67%   17.66%   -0.01%     
- Complexity    15790    15793       +3     
============================================
  Files          5922     5923       +1     
  Lines        533173   533277     +104     
  Branches      65209    65232      +23     
============================================
+ Hits          94218    94228      +10     
- Misses       428309   428403      +94     
  Partials      10646    10646              
Flag Coverage Δ
uitests 3.69% <ø> (-0.01%) ⬇️
unittests 18.74% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland DaanHoogland modified the milestones: 4.23.0, 4.22.2 Jun 23, 2026
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 18340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants