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

Sync internal changes #15

Merged
merged 5 commits into from
Jan 7, 2022
Merged

Sync internal changes #15

merged 5 commits into from
Jan 7, 2022

Conversation

njhill
Copy link
Member

@njhill njhill commented Jan 6, 2022

No description provided.

- log4j 2.17.0
- grpc 1.43.0
- jackson-databind 2.13.1

Signed-off-by: Nick Hill <[email protected]>
njhill and others added 4 commits January 7, 2022 13:03
Motivation

Some users have expressed an interest in the ability to specify particular gRPC request headers (metadata) that should be included in any logs associated with the corresponding requests. Typical example of this would be a transaction id for tracing/correlation.

Modifications

Introduce new environment variable MM_LOG_REQUEST_HEADERS which can be set to a json string->string map (object) whose keys are the header names to log and values are the names of corresponding entries to insert into the logger thread context map (MDC).

Values can be either raw ascii or base64-encoded utf8; in the latter case the corresponding header name must end with "-bin".

Example:

{
    "transaction_id": "txid",
    "user_id-bin": "user_id"
}

Logic is encapsulated in new LogRequestHeaders class, end-to-end unit test included.

Also update base image to pick up latest java.

Result

Request header logging can be configured.

Signed-off-by: Nick Hill <[email protected]>
Motivation
Updated python version in docker file as EOL for python 3.6 is 12/23/21

Modifications
Updated python version to 3.8 in Dockerfile

Result
Using a python version that has not reached end of life.

Signed-off-by: Nick Hill <[email protected]>
Addresses latest log4j CVE

Signed-off-by: Nick Hill <[email protected]>
- protobuf 3.19.2
- grpc-java 1.43.2

Signed-off-by: Nick Hill <[email protected]>
@njhill njhill marked this pull request as ready for review January 7, 2022 22:43
@njhill
Copy link
Member Author

njhill commented Jan 7, 2022

Thanks @pvaneck, hopefully this should be good to rebase-and-merge now.

Copy link
Member

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

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

Thanks, @njhill. Looks good. Feel free to rebase and merge.

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njhill, pvaneck

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@njhill njhill merged commit 1dd1094 into main Jan 7, 2022
@njhill njhill deleted the internal-sync4 branch January 7, 2022 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants