Skip to content
Merged

0.9.1 #333

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
14d1c74
version bump
zachmann Dec 5, 2023
fb7b42f
Bump github.com/zachmann/go-oidcfed
dependabot[bot] Dec 6, 2023
e68b786
Codebase sync (#312)
zachmann Jan 5, 2024
fb95a45
Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0
dependabot[bot] Jan 5, 2024
97a5bf3
Bump golang.org/x/term from 0.15.0 to 0.16.0
dependabot[bot] Jan 5, 2024
f3a2afd
Bump golang.org/x/term from 0.15.0 to 0.16.0 (#317)
zachmann Jan 5, 2024
aa909f4
Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0 (#316)
zachmann Jan 5, 2024
52b1fce
Bump github.com/zachmann/go-oidcfed from 0.0.0-20230725165112-6d27a13…
zachmann Jan 5, 2024
7fdb1c3
Bump github.com/redis/go-redis/v9 from 9.3.0 to 9.3.1
dependabot[bot] Jan 5, 2024
589dfaf
Bump github.com/coreos/go-oidc/v3 from 3.8.0 to 3.9.0
dependabot[bot] Jan 5, 2024
18e2592
Bump golang.org/x/crypto from 0.16.0 to 0.17.0
dependabot[bot] Jan 5, 2024
f558020
Bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6
dependabot[bot] Jan 5, 2024
c9061bf
Bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6 (#315)
zachmann Jan 5, 2024
81e1e48
Bump github.com/redis/go-redis/v9 from 9.3.0 to 9.3.1 (#314)
zachmann Jan 5, 2024
f8cc20e
Bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#313)
zachmann Jan 5, 2024
1e942a0
Bump github.com/coreos/go-oidc/v3 from 3.8.0 to 3.9.0 (#311)
zachmann Jan 5, 2024
241689d
Bump github.com/redis/go-redis/v9 from 9.3.1 to 9.4.0
dependabot[bot] Jan 8, 2024
055ce30
Bump github.com/gofiber/fiber/v2 from 2.51.0 to 2.52.0
dependabot[bot] Jan 8, 2024
e90df23
Bump github.com/gofiber/template/mustache/v2 from 2.0.7 to 2.0.8
dependabot[bot] Jan 9, 2024
b8baf9b
Bump github.com/evanphx/json-patch/v5 from 5.7.0 to 5.9.0
dependabot[bot] Jan 29, 2024
140c16f
[web] improve handling of includes (in restrictions) in the webinterface
zachmann Feb 7, 2024
0bd6adf
[ci] try to replace bitnami git and curl docker iamges with more nati…
zachmann Feb 7, 2024
49fafdb
[ci] debug ci
zachmann Feb 7, 2024
eec6751
[ci] debug ci
zachmann Feb 7, 2024
e60358b
[ci] debug ci
zachmann Feb 7, 2024
a5dadfb
[ci] debug ci
zachmann Feb 7, 2024
1911566
[ci] debug ci
zachmann Feb 7, 2024
0e011db
[ci] debug ci
zachmann Feb 7, 2024
9d5d935
[ci] debug ci
zachmann Feb 7, 2024
5d64cef
[ci] debug ci
zachmann Feb 7, 2024
8bb5b8c
[ci] debug ci
zachmann Feb 7, 2024
520606d
[ci] debug ci
zachmann Feb 7, 2024
2c405fc
[ci] debug ci
zachmann Feb 7, 2024
9649ebd
[ci] debug ci
zachmann Feb 7, 2024
d56909c
[ci] debug ci
zachmann Feb 7, 2024
31b8bb1
[ci] debug ci
zachmann Feb 7, 2024
71979c8
[ci] debug ci
zachmann Feb 7, 2024
9c764ad
[ci] debug ci
zachmann Feb 7, 2024
a180908
[ci] debug ci
zachmann Feb 7, 2024
a8ca6cb
[ci] debug ci
zachmann Feb 7, 2024
46fc464
[ci] debug ci
zachmann Feb 7, 2024
9c47cc9
[ci] debug ci
zachmann Feb 7, 2024
8aea9e5
Bump golang.org/x/oauth2 from 0.15.0 to 0.17.0
dependabot[bot] Feb 9, 2024
0c34cad
[ci] refactor ci
zachmann Feb 12, 2024
bf33464
[ci] remove unneeded variable
zachmann Feb 12, 2024
690e280
Bump golang.org/x/oauth2 from 0.15.0 to 0.17.0 (#331)
zachmann Feb 12, 2024
4756bde
Bump golang.org/x/mod from 0.14.0 to 0.15.0
dependabot[bot] Feb 12, 2024
2ee726c
Bump golang.org/x/mod from 0.14.0 to 0.15.0 (#328)
zachmann Feb 12, 2024
e8fc2be
Bump github.com/evanphx/json-patch/v5 from 5.7.0 to 5.9.0 (#327)
zachmann Feb 12, 2024
fc06005
Bump github.com/gofiber/template/mustache/v2 from 2.0.7 to 2.0.8 (#322)
zachmann Feb 12, 2024
e60306f
Bump github.com/gofiber/fiber/v2 from 2.51.0 to 2.52.0 (#319)
zachmann Feb 12, 2024
737b837
Bump github.com/redis/go-redis/v9 from 9.3.1 to 9.4.0 (#318)
zachmann Feb 12, 2024
3eb9aa7
Bump github.com/lestrrat-go/jwx from 1.2.27 to 1.2.28
dependabot[bot] Feb 12, 2024
a06451e
update changelog
zachmann Feb 12, 2024
a9a61f2
Bump github.com/lestrrat-go/jwx from 1.2.27 to 1.2.28 (#320)
zachmann Feb 12, 2024
e3888b1
Bump github.com/valyala/fasthttp from 1.51.0 to 1.52.0
dependabot[bot] Feb 13, 2024
33bf207
Bump github.com/valyala/fasthttp from 1.51.0 to 1.52.0 (#332)
zachmann Feb 13, 2024
1bdb2a2
update changelog
zachmann Feb 13, 2024
fe43ec5
2024
zachmann Feb 13, 2024
f38f01e
0.9.1 logos
zachmann Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/codebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: codebase-sync

on:
- push
- delete

jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wangchucheng/git-repo-sync@v0.1.0
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
target-url: https://codebase.helmholtz.cloud/m-team/oidc/mytoken/server.git
# Such as wangchucheng
target-username: gabriel.zachmann
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
target-token: ${{ secrets.CODEBASE_TOKEN }}
11 changes: 1 addition & 10 deletions .gitlab-ci-scripts/goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,5 @@ GORELEASER_CONFIG=".goreleaser.yml"
if [ -n "$CI_COMMIT_TAG" ] && echo "$CI_COMMIT_TAG" | grep -qv '~'; then
GORELEASER_CONFIG=".goreleaser-release.yml"
fi
BASEDIR=/go/src/github.com/oidc-mytoken/server
docker run --rm --privileged \
-v "$PWD":"$BASEDIR" \
-w "$BASEDIR" \
-v "${PWD}/../shared":/tmp/shared \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DOCKER_USERNAME -e DOCKER_PASSWORD \
-e GITHUB_TOKEN \
-e GORELEASER_CONFIG \
goreleaser/goreleaser release -f $GORELEASER_CONFIG --release-notes /tmp/shared/release.md
goreleaser release -f $GORELEASER_CONFIG --release-notes ../shared/release.md
ls -l results
17 changes: 13 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
include:
- 'https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/-/raw/master/ci-include/github-status-sync.yml'

variables:
UPSTREAM_PROJECT: oidc-mytoken/server

image: golang:1.19
stages:
- build
Expand Down Expand Up @@ -58,7 +64,8 @@ build_migratedb:
prerelease:
stage: release
image:
name: docker:stable
name: goreleaser/goreleaser
entrypoint: [ "" ]
services:
- docker:dind
only:
Expand All @@ -72,12 +79,15 @@ prerelease:
GIT_DEPTH: 0
REPO_HOST: repo.data.kit.edu
REPO_USER: cicd
DOCKER_REGISTRY: https://index.docker.io/v1/
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY"
script:
- if [ -z "$CI_COMMIT_TAG" ]; then docker run --rm -v $PWD:/tmp/mytoken -w /tmp/mytoken bitnami/git .gitlab-ci-scripts/set-prerel-version.sh; fi;
- if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi;
- .gitlab-ci-scripts/goreleaser.sh
- .gitlab-ci-scripts/upload.sh
after_script:
- docker run --rm curlimages/curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks
- curl -d "repo=github.com/oidc-mytoken/server" https://goreportcard.com/checks

deploy-dev:
stage: deploy
Expand All @@ -90,4 +100,3 @@ deploy-dev:
- cp $DEPLOYMENT_SSH_KEY /root/.ssh/id_ed25519 && chmod 0600 /root/.ssh/id_ed25519
script:
- ssh mytoken-dev.vm.fedcloud.eu

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@
<!-- ### Dependencies -->
<!-- -->

## mytoken 0.9.1

### Enhancements

- Improfile includes handling in the webitnerface restrictions editor.

### Dependencies

- Bump golang.org/x/oauth2 from 0.15.0 to 0.17.0
- Bump golang.org/x/crypto from 0.17.0 to 0.19.0
- Bump golang.org/x/mod from 0.14.0 to 0.15.0
- Bump github.com/evanphx/json-patch/v5 from 5.7.0 to 5.9.0
- Bump github.com/gofiber/template/mustache/v2 from 2.0.7 to 2.0.8
- Bump github.com/lestrrat-go/jwx from 1.2.27 to 1.2.28
- Bump github.com/gofiber/fiber/v2 from 2.51.0 to 2.52.0
- Bump github.com/redis/go-redis/v9 from 9.3.1 to 9.4.0
- Bump github.com/valyala/fasthttp from 1.51.0 to 1.52.0
- Bump github.com/coreos/go-oidc/v3 from 3.8.0 to 3.9.0
- Bump github.com/gliderlabs/ssh from 0.3.5 to 0.3.6
- Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0
- Bump golang.org/x/term from 0.15.0 to 0.17.0

## mytoken 0.9.0

### Changes
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 Gabriel Zachmann
Copyright (c) 2020-2024 Gabriel Zachmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
38 changes: 19 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@ go 1.19

require (
github.com/Songmu/prompter v0.5.1
github.com/coreos/go-oidc/v3 v3.8.0
github.com/evanphx/json-patch/v5 v5.7.0
github.com/coreos/go-oidc/v3 v3.9.0
github.com/evanphx/json-patch/v5 v5.9.0
github.com/fatih/structs v1.1.0
github.com/gliderlabs/ssh v0.3.5
github.com/go-resty/resty/v2 v2.10.0
github.com/gliderlabs/ssh v0.3.6
github.com/go-resty/resty/v2 v2.11.0
github.com/go-sql-driver/mysql v1.7.1
github.com/gofiber/fiber/v2 v2.51.0
github.com/gofiber/fiber/v2 v2.52.0
github.com/gofiber/helmet/v2 v2.2.26
github.com/gofiber/template/mustache/v2 v2.0.7
github.com/gofiber/template/mustache/v2 v2.0.8
github.com/gofrs/uuid v4.4.0+incompatible
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/ip2location/ip2location-go v8.3.0+incompatible
github.com/jinzhu/copier v0.4.0
github.com/jmoiron/sqlx v1.3.5
github.com/lestrrat-go/jwx v1.2.27
github.com/lestrrat-go/jwx v1.2.28
github.com/oidc-mytoken/api v0.11.2-0.20230810083726-bf164306e5b2
github.com/oidc-mytoken/lib v0.7.1
github.com/oidc-mytoken/utils v0.1.3-0.20230731143919-ea5b78243e5d
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pires/go-proxyproto v0.7.0
github.com/pkg/errors v0.9.1
github.com/redis/go-redis/v9 v9.3.0
github.com/redis/go-redis/v9 v9.4.0
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli/v2 v2.3.1-0.20211205195634-e8d81738896c
github.com/valyala/fasthttp v1.51.0
github.com/zachmann/go-oidcfed v0.0.0-20230725165112-6d27a1323204
golang.org/x/crypto v0.16.0
golang.org/x/mod v0.14.0
golang.org/x/oauth2 v0.15.0
golang.org/x/term v0.15.0
github.com/valyala/fasthttp v1.52.0
github.com/zachmann/go-oidcfed v0.1.0
golang.org/x/crypto v0.19.0
golang.org/x/mod v0.15.0
golang.org/x/oauth2 v0.17.0
golang.org/x/term v0.17.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/adam-hanna/arrayOperations v1.0.1 // indirect
github.com/andybalholm/brotli v1.0.5 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
github.com/cbroglie/mustache v1.4.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand All @@ -51,8 +51,8 @@ require (
github.com/gofiber/template v1.8.2 // indirect
github.com/gofiber/utils v1.1.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/klauspost/compress v1.17.0 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/klauspost/compress v1.17.6 // indirect
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
Expand All @@ -67,8 +67,8 @@ require (
github.com/tinylib/msgp v1.1.8 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
Expand Down
Loading