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

fix: removed deprecated smtp/ldap options #1912

Merged
merged 8 commits into from Apr 16, 2021

Conversation

james-d-elliott
Copy link
Member

@james-d-elliott james-d-elliott commented Apr 14, 2021

This removes the deprecated options from 4.25. This includes the LDAP filters which allow {0} or {1} placeholders. The new aliases are documented. Additionally it refactors the keys validator to use uniform messages for most replaced keys.

Fix because they should have been removed in 4.28.0, but will be removed in 4.28.1 instead. Also it's noteworthy that the coverage has decreased, it appears it's because there were a lot of previously covered lines completely removed mostly. I couldn't see any other negative hits though if you see one let me know.

This removes the deprecated options from 4.25. This includes the LDAP filters which allow {0} or {1} placeholders. The new aliases are documented. Additionally it refactors the keys validator to use uniform messages for most replaced keys.
@authelia
Copy link

authelia bot commented Apr 14, 2021

Artifacts

These changes are published for testing on Buildkite, DockerHub and GitHub Container Registry.

Docker Container

  • docker pull authelia/authelia:refactor-remove-deprecated
  • docker pull ghcr.io/authelia/authelia:refactor-remove-deprecated

@james-d-elliott james-d-elliott added this to the v4.28.0 milestone Apr 14, 2021
@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #1912 (df0822a) into master (168dbf7) will decrease coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1912      +/-   ##
==========================================
- Coverage   72.08%   71.86%   -0.22%     
==========================================
  Files         152      152              
  Lines        4345     4319      -26     
  Branches      179      179              
==========================================
- Hits         3132     3104      -28     
- Misses        991      995       +4     
+ Partials      222      220       -2     
Flag Coverage Δ
backend 73.72% <100.00%> (-0.23%) ⬇️
frontend 64.77% <ø> (-0.12%) ⬇️

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

Impacted Files Coverage Δ
internal/authentication/ldap_user_provider.go 83.91% <ø> (-0.96%) ⬇️
internal/utils/certificates.go 85.00% <ø> (+5.00%) ⬆️
cmd/authelia/main.go 72.61% <100.00%> (ø)
internal/configuration/validator/authentication.go 100.00% <100.00%> (ø)
internal/configuration/validator/keys.go 100.00% <100.00%> (ø)
internal/configuration/validator/notifier.go 100.00% <100.00%> (ø)
internal/configuration/validator/secrets.go 84.37% <100.00%> (ø)
internal/handlers/handler_verify.go 77.23% <100.00%> (ø)
internal/utils/files.go 0.00% <0.00%> (-83.34%) ⬇️
web/src/services/SignOut.ts 80.00% <0.00%> (-20.00%) ⬇️

@james-d-elliott james-d-elliott changed the title refactor: removed deprecated smtp/ldap options fix: removed deprecated smtp/ldap options Apr 14, 2021
Copy link
Member

@nightah nightah left a comment

Choose a reason for hiding this comment

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

Just a couple small changes but otherwise LGTM.

config.template.yml Outdated Show resolved Hide resolved
config.template.yml Outdated Show resolved Hide resolved
config.template.yml Outdated Show resolved Hide resolved
internal/configuration/config.template.yml Outdated Show resolved Hide resolved
internal/configuration/config.template.yml Outdated Show resolved Hide resolved
internal/configuration/config.template.yml Outdated Show resolved Hide resolved
internal/configuration/validator/const.go Outdated Show resolved Hide resolved
internal/configuration/reader_test.go Outdated Show resolved Hide resolved
Copy link
Member

@nightah nightah left a comment

Choose a reason for hiding this comment

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

LGTM!

@james-d-elliott james-d-elliott merged commit cc4f47f into master Apr 16, 2021
@james-d-elliott james-d-elliott deleted the refactor-remove-deprecated branch April 16, 2021 01:44
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.

None yet

2 participants