-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for TLS
- Loading branch information
Showing
42 changed files
with
1,047 additions
and
604 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
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
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
FROM openjdk:8-jre-alpine | ||
FROM adoptopenjdk/openjdk11:alpine-jre | ||
MAINTAINER Paul Ambrose "[email protected]" | ||
|
||
# Define the user to use in this instance to prevent using root that even in a container, can be a security risk. | ||
ENV APPLICATION_USER prometheus | ||
|
||
# Then add the user, create the /app folder and give permissions to our user. | ||
RUN adduser -D -g '' $APPLICATION_USER | ||
RUN adduser --disabled-password --gecos '' $APPLICATION_USER | ||
|
||
RUN mkdir /app | ||
RUN chown -R $APPLICATION_USER /app | ||
|
||
# Mark this container to use the specified $APPLICATION_USER | ||
USER $APPLICATION_USER | ||
|
||
COPY ./build/libs/prometheus-agent.jar /app/prometheus-agent.jar | ||
# Make /app the working directory | ||
WORKDIR /app | ||
|
||
COPY ./build/libs/prometheus-agent.jar /app/prometheus-agent.jar | ||
|
||
EXPOSE 8083 | ||
EXPOSE 8093 | ||
|
||
CMD [] | ||
|
||
ENTRYPOINT ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "/app/prometheus-agent.jar"] | ||
ENTRYPOINT ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "/app/prometheus-agent.jar"] |
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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
FROM openjdk:8-jre-alpine | ||
FROM adoptopenjdk/openjdk11:alpine-jre | ||
MAINTAINER Paul Ambrose "[email protected]" | ||
|
||
# Define the user to use in this instance to prevent using root that even in a container, can be a security risk. | ||
ENV APPLICATION_USER prometheus | ||
|
||
# Then add the user, create the /app folder and give permissions to our user. | ||
RUN adduser -D -g '' $APPLICATION_USER | ||
RUN adduser --disabled-password --gecos '' $APPLICATION_USER | ||
|
||
RUN mkdir /app | ||
RUN chown -R $APPLICATION_USER /app | ||
|
||
# Mark this container to use the specified $APPLICATION_USER | ||
USER $APPLICATION_USER | ||
|
||
COPY ./build/libs/prometheus-proxy.jar /app/prometheus-proxy.jar | ||
# Make /app the working directory | ||
WORKDIR /app | ||
|
||
COPY ./build/libs/prometheus-proxy.jar /app/prometheus-proxy.jar | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8082 | ||
EXPOSE 8092 | ||
EXPOSE 50051 | ||
EXPOSE 50440 | ||
|
||
CMD [] | ||
|
||
ENTRYPOINT ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "/app/prometheus-proxy.jar"] | ||
ENTRYPOINT ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "/app/prometheus-proxy.jar"] |
Binary file not shown.
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,26 @@ | ||
proxy { | ||
|
||
agent.port = 50440 | ||
|
||
tls { | ||
certChainFilePath = "testing/certs/server1.pem" // Server certificate chain file path | ||
privateKeyFilePath = "testing/certs/server1.key" // Server private key file path | ||
trustCertCollectionFilePath = "" // Trust certificate collection file path | ||
} | ||
} | ||
|
||
agent { | ||
|
||
proxy { | ||
hostname = "localhost" // Proxy hostname | ||
port = 50440 // Proxy port | ||
} | ||
|
||
// Only trustCertCollectionFilePath is required on the client with TLS (no mutual authentication) | ||
tls { | ||
overrideAuthority = "foo.test.google.fr" // Override authority (for testing only) | ||
certChainFilePath = "" // Client certificate chain file path | ||
privateKeyFilePath = "" // Client private key file path | ||
trustCertCollectionFilePath = "testing/certs/ca.pem" // Trust certificate collection file path | ||
} | ||
} |
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,26 @@ | ||
proxy { | ||
|
||
agent.port = 50440 | ||
|
||
tls { | ||
certChainFilePath = "testing/certs/server1.pem" // Server certificate chain file path | ||
privateKeyFilePath = "testing/certs/server1.key" // Server private key file path | ||
trustCertCollectionFilePath = "testing/certs/ca.pem" // Trust certificate collection file path | ||
} | ||
} | ||
|
||
agent { | ||
|
||
proxy { | ||
hostname = "localhost" // Proxy hostname | ||
port = 50440 // Proxy port | ||
} | ||
|
||
// Only trustCertCollectionFilePath is required on the client with TLS (with mutual authentication) | ||
tls { | ||
overrideAuthority = "foo.test.google.fr" // Override authority (for testing only) | ||
certChainFilePath = "testing/certs/client.pem" // Client certificate chain file path | ||
privateKeyFilePath = "testing/certs/client.key" // Client private key file path | ||
trustCertCollectionFilePath = "testing/certs/ca.pem" // Trust certificate collection file path | ||
} | ||
} |
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
Oops, something went wrong.