Skip to content

filter: exposed functions to Lua to verify digital signature#76

Merged
duderino merged 7 commits intoistio:release-1.1from
yxue:istio-release-1.1
Jun 3, 2019
Merged

filter: exposed functions to Lua to verify digital signature#76
duderino merged 7 commits intoistio:release-1.1from
yxue:istio-release-1.1

Conversation

@yxue
Copy link
Copy Markdown
Member

@yxue yxue commented Jun 3, 2019

yxue added 7 commits June 3, 2019 14:32
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
auto key = reinterpret_cast<EVP_PKEY*>(ptr);

// Step 2: initialize EVP_MD_CTX
EVP_MD_CTX* ctx = EVP_MD_CTX_new();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

what if ctx is NULL?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It will not trigger any segment fault due to the implementation of both EVP_MD_CTX_free and EVP_DigestVerifyInit support passing NULL as a parameter.

EVP_MD_CTX_free will return if the parameter is NULL.
EVP_DigestVerifyInit will try to call EVP_MD_CTX_new again if the parameter is NULL. If the context is still NULL, the function will return 0.

@duderino
Copy link
Copy Markdown

duderino commented Jun 3, 2019

We will drop this once the upstream Envoy PR is merged. @htuch says the API should be fine

@duderino duderino added the lgtm label Jun 3, 2019
@duderino duderino merged commit 52a04b6 into istio:release-1.1 Jun 3, 2019
duderino pushed a commit to istio/proxy that referenced this pull request Jun 4, 2019
* Update istio/envoy sha to pick up envoyproxy/envoy#6994

* Pick up istio/envoy#76
duderino pushed a commit to istio/istio that referenced this pull request Jun 4, 2019
* Update istio/proxy for 1.1.8

* Import two additional istio/envoy commits.  envoyproxy/envoy#6994 and istio/envoy#76
jplevyak pushed a commit to jplevyak/envoy that referenced this pull request Dec 28, 2019
This can happen during certain early reply cases in the HCM
when an encoder filter tries to lookup the cached route/cluster.

Signed-off-by: Matt Klein <mklein@lyft.com>
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.

2 participants