forked from oauth2-proxy/oauth2-proxy
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
227 changed files
with
37,672 additions
and
14,012 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Dockerfile.dev | ||
Dockerfile | ||
docs | ||
vendor | ||
.git | ||
|
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 |
---|---|---|
|
@@ -16,9 +16,11 @@ jobs: | |
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '17.x' | ||
- name: Test Build | ||
working-directory: ./docs | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
if [ -e yarn.lock ]; then | ||
yarn install --frozen-lockfile | ||
|
@@ -35,10 +37,11 @@ jobs: | |
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '17.x' | ||
- name: Add key to allow access to repository | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
mkdir -p ~/.ssh | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
@@ -54,6 +57,7 @@ jobs: | |
env: | ||
USE_SSH: true | ||
GIT_USER: git | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "gh-actions" | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ c.out | |
_obj | ||
_test | ||
.idea/ | ||
.vscode/ | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
|
44 changes: 22 additions & 22 deletions
44
.../obj/Debug/netcoreapp3.1/Philips.EDI.Foundation.APIGateway.AutomationTest.AssemblyInfo.cs
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,22 +1,22 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
[assembly: System.Reflection.AssemblyCompanyAttribute("Philips")] | ||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | ||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.2.0")] | ||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.2")] | ||
[assembly: System.Reflection.AssemblyProductAttribute("Philips.EDI.Foundation.APIGateway.AutomationTest")] | ||
[assembly: System.Reflection.AssemblyTitleAttribute("Philips.EDI.Foundation.APIGateway.AutomationTest")] | ||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.2.0")] | ||
|
||
// Generated by the MSBuild WriteCodeFragment class. | ||
|
||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
[assembly: System.Reflection.AssemblyCompanyAttribute("Philips")] | ||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | ||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.2.0")] | ||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.2")] | ||
[assembly: System.Reflection.AssemblyProductAttribute("Philips.EDI.Foundation.APIGateway.AutomationTest")] | ||
[assembly: System.Reflection.AssemblyTitleAttribute("Philips.EDI.Foundation.APIGateway.AutomationTest")] | ||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.2.0")] | ||
|
||
// Generated by the MSBuild WriteCodeFragment class. | ||
2 changes: 1 addition & 1 deletion
2
...g/netcoreapp3.1/Philips.EDI.Foundation.APIGateway.AutomationTest.AssemblyInfoInputs.cache
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 +1 @@ | ||
7d70c0bc511987c3ae105cb98159f5949d6dabfa | ||
7d70c0bc511987c3ae105cb98159f5949d6dabfa |
6 changes: 3 additions & 3 deletions
6
...hilips.EDI.Foundation.APIGateway.AutomationTest.GeneratedMSBuildEditorConfig.editorconfig
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,3 +1,3 @@ | ||
is_global = true | ||
build_property.RootNamespace = Philips.EDI.Foundation.APIGateway.AutomationTest | ||
build_property.ProjectDir = c:\oauth2-proxy\AutomationTest\ | ||
is_global = true | ||
build_property.RootNamespace = Philips.EDI.Foundation.APIGateway.AutomationTest | ||
build_property.ProjectDir = c:\git\philips-forks\oauth2-proxy\AutomationTest\ |
Binary file added
BIN
+68.9 KB
...oreapp3.1/Philips.EDI.Foundation.APIGateway.AutomationTest.csproj.AssemblyReference.cache
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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,32 +1,54 @@ | ||
FROM golang:1.16-buster AS builder | ||
# This ARG has to be at the top, otherwise the docker daemon does not known what to do with FROM ${RUNTIME_IMAGE} | ||
ARG RUNTIME_IMAGE=alpine:3.17.2 | ||
|
||
# All builds should be done using the platform native to the build node to allow | ||
# cache sharing of the go mod download step. | ||
# Go cross compilation is also faster than emulation the go compilation across | ||
# multiple platforms. | ||
FROM --platform=${BUILDPLATFORM} golang:1.19-buster AS builder | ||
|
||
# Copy sources | ||
WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy | ||
|
||
# Fetch dependencies | ||
COPY go.mod go.sum ./ | ||
RUN GO111MODULE=on go mod download | ||
RUN go mod download | ||
|
||
# Now pull in our code | ||
COPY . . | ||
|
||
# Arguments go here so that the previous steps can be cached if no external | ||
# sources have changed. | ||
ARG VERSION | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
|
||
# Build binary and make sure there is at least an empty key file. | ||
# This is useful for GCP App Engine custom runtime builds, because | ||
# you cannot use multiline variables in their app.yaml, so you have to | ||
# build the key into the container and then tell it where it is | ||
# by setting OAUTH2_PROXY_JWT_KEY_FILE=/etc/ssl/private/jwt_signing_key.pem | ||
# in app.yaml instead. | ||
RUN VERSION=${VERSION} make build && touch jwt_signing_key.pem | ||
# Set the cross compilation arguments based on the TARGETPLATFORM which is | ||
# automatically set by the docker engine. | ||
RUN case ${TARGETPLATFORM} in \ | ||
"linux/amd64") GOARCH=amd64 ;; \ | ||
# arm64 and arm64v8 are equivilant in go and do not require a goarm | ||
# https://github.com/golang/go/wiki/GoArm | ||
"linux/arm64" | "linux/arm64/v8") GOARCH=arm64 ;; \ | ||
"linux/ppc64le") GOARCH=ppc64le ;; \ | ||
"linux/arm/v6") GOARCH=arm GOARM=6 ;; \ | ||
esac && \ | ||
printf "Building OAuth2 Proxy for arch ${GOARCH}\n" && \ | ||
GOARCH=${GOARCH} VERSION=${VERSION} make build && touch jwt_signing_key.pem | ||
|
||
# Copy binary to alpine | ||
FROM alpine:3.17.2 | ||
FROM ${RUNTIME_IMAGE} | ||
COPY nsswitch.conf /etc/nsswitch.conf | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY --from=builder /go/src/github.com/oauth2-proxy/oauth2-proxy/oauth2-proxy /bin/oauth2-proxy | ||
COPY --from=builder /go/src/github.com/oauth2-proxy/oauth2-proxy/jwt_signing_key.pem /etc/ssl/private/jwt_signing_key.pem | ||
|
||
USER 2000:2000 | ||
# UID/GID 65532 is also known as nonroot user in distroless image | ||
USER 65532:65532 | ||
|
||
ENTRYPOINT ["/bin/oauth2-proxy"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.