Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ldap): add option to load ldap from file #1778

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

laurentiuNiculae
Copy link
Contributor

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

pkg/api/config/config.go Outdated Show resolved Hide resolved
pkg/api/config/config.go Outdated Show resolved Hide resolved
pkg/cli/root.go Outdated Show resolved Hide resolved
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 6 times, most recently from 142cd5a to 425f21a Compare September 13, 2023 11:35
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #1778 (618e771) into main (8609900) will increase coverage by 0.08%.
The diff coverage is 92.18%.

@@            Coverage Diff             @@
##             main    #1778      +/-   ##
==========================================
+ Coverage   91.97%   92.06%   +0.08%     
==========================================
  Files         164      164              
  Lines       27657    27716      +59     
==========================================
+ Hits        25437    25516      +79     
+ Misses       1645     1629      -16     
+ Partials      575      571       -4     
Files Coverage Δ
pkg/api/authn.go 95.71% <100.00%> (ø)
pkg/api/config/config.go 97.87% <100.00%> (+0.14%) ⬆️
pkg/api/ldap.go 71.79% <100.00%> (+13.97%) ⬆️
pkg/cli/server/root.go 94.06% <86.84%> (-0.40%) ⬇️

... and 3 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 5 times, most recently from 1742024 to 187ddfa Compare September 15, 2023 15:55
pkg/cli/root.go Outdated Show resolved Hide resolved
@andaaron andaaron linked an issue Sep 21, 2023 that may be closed by this pull request
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 6 times, most recently from 75dc5c9 to 9064df6 Compare October 31, 2023 10:42
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 3 times, most recently from d3cbacc to 0e65d80 Compare November 2, 2023 16:41
pkg/api/config/config.go Outdated Show resolved Hide resolved
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 4 times, most recently from 9554599 to d90dee5 Compare November 8, 2023 20:03
@andaaron
Copy link
Contributor

andaaron commented Nov 9, 2023

Can you also add an example configuration file?

@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 6 times, most recently from dc45dd2 to 0a3ee8f Compare November 9, 2023 12:12
examples/config-ldap.json Outdated Show resolved Hide resolved
pkg/api/ldap.go Outdated Show resolved Hide resolved
pkg/api/ldap.go Outdated Show resolved Hide resolved
pkg/api/ldap.go Outdated Show resolved Hide resolved
pkg/api/ldap.go Show resolved Hide resolved
pkg/cli/server/root.go Show resolved Hide resolved
pkg/cli/server/root.go Outdated Show resolved Hide resolved
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 2 times, most recently from 3ec666d to 015c18c Compare November 10, 2023 10:20
examples/config-ldap.json Show resolved Hide resolved
pkg/api/ldap.go Outdated Show resolved Hide resolved
pkg/cli/server/root_test.go Outdated Show resolved Hide resolved
pkg/cli/server/root_test.go Outdated Show resolved Hide resolved
pkg/cli/server/root_test.go Outdated Show resolved Hide resolved
pkg/cli/server/root_test.go Outdated Show resolved Hide resolved
pkg/api/controller_test.go Outdated Show resolved Hide resolved
pkg/api/controller_test.go Outdated Show resolved Hide resolved
pkg/api/controller_test.go Outdated Show resolved Hide resolved
@laurentiuNiculae laurentiuNiculae force-pushed the ldap-from-file branch 4 times, most recently from 63c4cac to 361c06a Compare November 13, 2023 10:03
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Allow LDAP creds to be loaded from a file
3 participants