Run-time communications protocol parameter adjustment in containerized applications
At a sidecar portion sharing a container with a first application portion, metadata describing a modification to a communications protocol is received. At the sidecar portion, a communication of the first application portion to a second application outside the container is received. The modifying is performed according to the metadata. The modified communication is transmitted to the second application.
1. A computer-implemented method comprising:
receiving, at a sidecar portion sharing a container with a first application portion, metadata specifying a modification to be performed on a header portion of a communication;
modifying, at the sidecar portion, a header portion of a communication of the first application portion to a second application outside the container, the modifying performed according to the metadata, the modifying resulting in a modified communication; and
transmitting, to the second application, the modified communication.
2. The computer-implemented method of claim 1 , wherein the metadata implements a security policy.
3. The computer-implemented method of claim 1 , wherein the sidecar portion comprises a communications interface between the first application portion and the second application.
4. The computer-implemented method of claim 1 , wherein the modifying comprises replacing the header portion of the communication with a second header portion.
5. The computer-implemented method of claim 1 , wherein the modifying comprises modifying a setting specified in the header portion of the communication.
6. The computer-implemented method of claim 1 , wherein the modifying comprises adding a second header portion to the communication.
7. A computer program product for communications protocol parameter adjustment, the computer program product comprising:
one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to receive, at a sidecar portion sharing a container with a first application portion, metadata specifying a modification to be performed on a header portion of a communication;
program instructions to modify, at the sidecar portion, a header portion of a communication of the first application portion to a second application outside the container, the modifying performed according to the metadata, the modifying resulting in a modified communication; and
program instructions to transmit, to the second application, the modified communication.
8. The computer program product of claim 7 , wherein the metadata implements a security policy.
9. The computer program product of claim 7 , wherein the sidecar portion comprises a communications interface between the first application portion and the second application.
10. The computer program product of claim 7 , wherein the modifying comprises replacing the header portion of the communication with a second header portion.
11. The computer program product of claim 7 , wherein the modifying comprises modifying a setting specified in the header portion of the communication.
12. The computer program product of claim 7 , wherein the modifying comprises adding a second header portion to the communication.
13. The computer program product of claim 7 , wherein the stored program instructions are stored in the at least one of the one or more storage media of a local data processing system, and wherein the stored program instructions are transferred over a network from a remote data processing system.
14. The computer program product of claim 7 , wherein the stored program instructions are stored in the at least one of the one or more storage media of a server data processing system, and wherein the stored program instructions are downloaded over a network to a remote data processing system for use in a computer readable storage device associated with the remote data processing system.
15. The computer program product of claim 7 , wherein the computer program product is provided as a service in a cloud environment.
16. A computer system comprising:
one or more hardware processors;
one or more computer-readable memories;
and one or more computer-readable storage devices;
and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the stored program instructions when executed by a hardware processor in the one or more hardware processors causing operations comprising:
receiving, at a sidecar portion sharing a container with a first application portion, metadata specifying a modification to be performed on a header portion of a communication;
modifying, at the sidecar portion, a header portion of a communication of the first application portion to a second application outside the container, the modifying performed according to the metadata, the modifying resulting in a modified communication; and
transmitting, to the second application, the modified communication.
17. The computer system of claim 16 , wherein the metadata implements a security policy.
18. The computer system of claim 16 , wherein the sidecar portion comprises a communications interface between the first application portion and the second application.
19. The computer system of claim 16 , wherein the modifying comprises replacing the header portion of the communication with a second header portion.
20. The computer system of claim 16 , wherein the modifying comprises modifying a setting specified in the header portion of the communication.