Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-ece
Commits
eb7e4b3f
Commit
eb7e4b3f
authored
Sep 18, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the set-salt error.
parent
7de2c01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
encrypt.vtc
src/tests/encrypt.vtc
+28
-1
No files found.
src/tests/encrypt.vtc
View file @
eb7e4b3f
...
...
@@ -12,7 +12,7 @@ varnishtest "standard encryption VFP"
# random salt is generated.
feature cmd {test $ENABLE_SET_SALT = "yes"}
server s1 {
server s1
-repeat 2
{
rxreq
txresp -body {I am the walrus}
} -start
...
...
@@ -32,6 +32,7 @@ varnish v1 -arg "-p vsl_mask=+VfpAcct" -vcl+backend {
set bereq.http.X-ECE-Key-ID = "";
set bereq.http.XYZZY-ECE-Salt = "I1BsxtFttlv3u/Oo94xnmw==";
set beresp.filters = "ece_encrypt";
set beresp.uncacheable = true;
}
} -start
...
...
@@ -58,3 +59,29 @@ logexpect l1 -v v1 -d 1 -g vxid -q "VfpAcct" {
expect * = VfpAcct {^ece_encrypt \d+ 53$}
expect * = End
} -run
# set-salt error
varnish v1 -vcl+backend {
import ${vmod_ece};
sub vcl_backend_response {
set bereq.http.X-ECE-Key-ID = "";
set bereq.http.XYZZY-ECE-Salt = "foobar";
set beresp.filters = "ece_encrypt";
}
}
logexpect l1 -v v1 -d 0 -g vxid -q "FetchError" {
expect 0 * Begin bereq
expect * = FetchError {^set-salt base64 decoding error$}
expect * = End
} -start
client c1 {
txreq
rxresp
expect resp.status == 503
expect resp.reason == "Backend fetch failed"
} -run
logexpect l1 -wait
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment