Skip to content

Parse redis backend url#804

Merged
knqyf263 merged 1 commit intoaquasecurity:mainfrom
czunker:redis_connect_url
Jan 21, 2021
Merged

Parse redis backend url#804
knqyf263 merged 1 commit intoaquasecurity:mainfrom
czunker:redis_connect_url

Conversation

@czunker
Copy link
Contributor

@czunker czunker commented Jan 8, 2021

As suggested by the go-redis client, parse the url to get the config.
This will fix problems, when the url contains a username and/or password.

Fixes #798

Signed-off-by: Christian Zunker christian.zunker@codecentric.cloud

As suggested by the go-redis client, parse the url to get the config.
This will fix problems, when the url contains a username and/or password.

Fixes #798

Signed-off-by: Christian Zunker <christian.zunker@codecentric.cloud>
@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #804 (c2db393) into main (a00d719) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #804      +/-   ##
==========================================
- Coverage   68.50%   68.39%   -0.12%     
==========================================
  Files          57       57              
  Lines        2210     2202       -8     
==========================================
- Hits         1514     1506       -8     
  Misses        564      564              
  Partials      132      132              
Impacted Files Coverage Δ
internal/app.go 98.38% <ø> (-0.10%) ⬇️
pkg/detector/ospkg/redhat/redhat.go 93.54% <100.00%> (+0.21%) ⬆️
pkg/vulnerability/vulnerability.go 76.69% <100.00%> (+0.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b27862...c2db393. Read the comment docs.

@knqyf263 knqyf263 merged commit 1f17e71 into aquasecurity:main Jan 21, 2021
@knqyf263
Copy link
Collaborator

Thanks a lot!

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.

when using redis, error occurs

2 participants