-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tcp-log) TLS handshake support for TCP logs
- Loading branch information
Showing
7 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local plugin_config_iterator = require("kong.dao.migrations.helpers").plugin_config_iterator | ||
|
||
|
||
return { | ||
{ | ||
name = "2017-12-13-120000_tcp-log_tls", | ||
up = function(_, _, dao) | ||
for ok, config, update in plugin_config_iterator(dao, "tcp-log") do | ||
if not ok then | ||
return config | ||
end | ||
config.tls = false | ||
local ok, err = update(config) | ||
if not ok then | ||
return err | ||
end | ||
end | ||
end, | ||
down = function(_, _, dao) end -- not implemented | ||
}, | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local plugin_config_iterator = require("kong.dao.migrations.helpers").plugin_config_iterator | ||
|
||
|
||
return { | ||
{ | ||
name = "2017-12-13-120000_tcp-log_tls", | ||
up = function(_, _, dao) | ||
for ok, config, update in plugin_config_iterator(dao, "tcp-log") do | ||
if not ok then | ||
return config | ||
end | ||
config.tls = false | ||
local ok, err = update(config) | ||
if not ok then | ||
return err | ||
end | ||
end | ||
end, | ||
down = function(_, _, dao) end -- not implemented | ||
}, | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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