Linstor: Add controller token auth support#13470
Open
rp- wants to merge 2 commits into
Open
Conversation
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 Report❌ Patch coverage is 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 18340 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
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.