forked from jetstack/kube-oidc-proxy
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mlbiam/master
Updates for 1.0.0 release
- Loading branch information
Showing
28 changed files
with
2,596 additions
and
373 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,2 +1,2 @@ | ||
* | ||
!/bin/kube-oidc-proxy-linux | ||
!/bin/kube-oidc-proxy |
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,60 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.17.0" | ||
|
||
- name: Update go deps | ||
run: go mod tidy | ||
|
||
- name: install go mock | ||
run: go install github.com/golang/mock/mockgen@v1.6.0 | ||
|
||
- name: install go-junit | ||
run: go get -u github.com/jstemmer/go-junit-report | ||
|
||
- name: run tests | ||
run: make test | ||
|
||
- name: build executable | ||
run: make build; ls; ls bin | ||
|
||
|
||
|
||
|
||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.OU_REG_USER }} | ||
password: ${{ secrets.OU_REG_PASSWORD }} | ||
|
||
|
||
|
||
|
||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: "." | ||
push: true | ||
tags: ${{ secrets.OU_CONTAINER_DEST }} | ||
|
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,12 @@ | ||
# 1.0.0 | ||
|
||
**enhancements:** | ||
- 1.0.0 Release [\#10](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/10) | ||
- Access logging to standard out [\#2](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/2) | ||
- create github action to automate builds [\#8](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/8) | ||
- Switch from alpine --> ubuntu 20.04 [\#9](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/9) | ||
- Support `kubectl --as` [\#3](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/3) | ||
- Upgrade KinD [\#1](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/1) | ||
|
||
**bugs:** | ||
- update dependencies [\#5](https://github.com/TremoloSecurity/kube-oidc-proxy/issues/5) |
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,10 +1,9 @@ | ||
# Copyright Jetstack Ltd. See LICENSE for details. | ||
FROM alpine:3.10 | ||
FROM ubuntu:20.04 | ||
LABEL description="OIDC reverse proxy authenticator based on Kubernetes" | ||
|
||
RUN apk --no-cache add ca-certificates \ | ||
&& apk --no-cache add --upgrade openssl | ||
RUN apt-get update;apt-get -y install ca-certificates;apt-get -y upgrade;apt-get clean;rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./bin/kube-oidc-proxy-linux /usr/bin/kube-oidc-proxy | ||
COPY ./bin/kube-oidc-proxy /usr/bin/kube-oidc-proxy | ||
|
||
CMD ["/usr/bin/kube-oidc-proxy"] |
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,86 @@ | ||
# Generates OpenUnison Changelog | ||
# Call from the branch with 3 parameters: | ||
# 1. Date from which to start looking | ||
# 2. Github Token | ||
|
||
# requires python-dateutil and requests from pip | ||
|
||
from subprocess import * | ||
import re | ||
from datetime import datetime | ||
import dateutil.parser | ||
import sys | ||
import requests | ||
|
||
|
||
|
||
def parseIssues(message): | ||
issuesRet = [] | ||
issues = re.findall('[#][0-9]+',message) | ||
if issues != None: | ||
for issue in issues: | ||
issuesRet.append(issue[1:]) | ||
return issuesRet | ||
|
||
|
||
def f4(seq): | ||
# order preserving | ||
noDupes = [] | ||
[noDupes.append(i) for i in seq if not noDupes.count(i)] | ||
return noDupes | ||
|
||
|
||
|
||
|
||
|
||
|
||
headers = {'Authorization':'token ' + sys.argv[2]} | ||
|
||
|
||
GIT_COMMIT_FIELDS = ['id', 'author_name', 'author_email', 'date', 'message'] | ||
GIT_LOG_FORMAT = ['%H', '%an', '%ae', '%ai', '%s'] | ||
GIT_LOG_FORMAT = '%x1f'.join(GIT_LOG_FORMAT) + '%x1e' | ||
|
||
#print repo.git.log(p=False) | ||
|
||
allIssues = [] | ||
|
||
p = Popen('git log --format="%s" ' % GIT_LOG_FORMAT, shell=True, stdout=PIPE) | ||
(logb, _) = p.communicate() | ||
log = str(logb,"utf-8") | ||
log = log.strip('\n\x1e').split("\x1e") | ||
log = [row.strip().split("\x1f") for row in log] | ||
log = [dict(zip(GIT_COMMIT_FIELDS, row)) for row in log] | ||
|
||
notbefore = dateutil.parser.parse(sys.argv[1] + ' 00:00:00 -0400') | ||
|
||
for commit in log: | ||
created = dateutil.parser.parse(commit['date']) | ||
if created > notbefore: | ||
message = commit['message'] | ||
allIssues.extend(parseIssues(message)) | ||
|
||
|
||
allIssues = f4(allIssues) | ||
|
||
bylabels = {} | ||
|
||
for issue in allIssues: | ||
issueURL = 'https://api.github.com/repos/TremoloSecurity/kube-oidc-proxy/issues/' + issue | ||
r = requests.get(issueURL,headers=headers) | ||
json = r.json(); | ||
|
||
if "labels" in json: | ||
for label in json['labels']: | ||
if not (label['name'] in bylabels): | ||
labelGroup = [] | ||
bylabels[label["name"]] = labelGroup | ||
labelGroup = bylabels[label['name']] | ||
labelGroup.append(json) | ||
|
||
|
||
for label in bylabels: | ||
print('**' + label + 's:**') | ||
for issue in bylabels[label]: | ||
print(' - ' + issue['title'] + ' [\\#' + str(issue['number']) + '](' + issue['html_url'] + ')') | ||
print() |
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,9 +1,9 @@ | ||
apiVersion: v1 | ||
appVersion: "v0.3.0" | ||
appVersion: "v1.0.0" | ||
description: A Helm chart for kube-oidc-proxy | ||
home: https://github.com/jetstack/kube-oidc-proxy | ||
name: kube-oidc-proxy | ||
version: 0.3.1 | ||
version: 0.3.2 | ||
maintainers: | ||
- name: mhrabovcin | ||
- name: joshvanl |
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.