Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump docker/build-push-action from 3 to 4 #111

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f669dc4
build(deps): bump helm/kind-action from 1.1.0 to 1.2.0
dependabot[bot] Jul 22, 2021
bf3b81c
Adding an oidcConnector config to decide whether to validate that the…
acohen4 Jul 22, 2021
a3bf676
Merge pull request #10 from pachyderm/acohen4/relax-callback-issuer-u…
acohen4 Jul 22, 2021
56fc504
pass login_hint to OIDC connector's /auth endpoint in auth_code flow …
acohen4 Aug 11, 2021
1efa471
add offline_access scope to oidc connector
armaanv Oct 12, 2021
f73bd86
add some logging
armaanv Oct 12, 2021
2060aa2
dont refresh with connector
armaanv Oct 13, 2021
825fea7
lint
armaanv Oct 13, 2021
31634c5
remove offline acess type
armaanv Oct 18, 2021
3f72bb8
Revert "lint"
armaanv Oct 18, 2021
6981cae
Revert "dont refresh with connector"
armaanv Oct 18, 2021
37923ca
remove token logs
armaanv Oct 20, 2021
ebfeda6
Merge pull request #30 from pachyderm/armaan/offline-access
Oct 20, 2021
8b147da
Merge pull request #5 from pachyderm/dependabot/github_actions/helm/k…
msteffen Oct 22, 2021
f7cfc0b
build(deps): bump golang from 1.16.5-alpine3.13 to 1.17.3-alpine3.13
dependabot[bot] Nov 9, 2021
12cd7b3
build(deps): bump github.com/mattn/go-sqlite3
dependabot[bot] Jan 10, 2022
9670608
build(deps): bump actions/checkout from 2 to 3
dependabot[bot] Mar 2, 2022
b1ca9c7
build(deps): bump actions/setup-go from 2 to 3
dependabot[bot] Apr 11, 2022
d4e0ce7
build(deps): bump github/codeql-action from 1 to 2
dependabot[bot] Apr 26, 2022
13ebd9a
build(deps): bump docker/build-push-action from 2 to 3
dependabot[bot] May 6, 2022
80d8c5f
build(deps): bump docker/login-action from 1 to 2
dependabot[bot] May 6, 2022
ed5adfe
build(deps): bump alpine from 3.14.0 to 3.16.0
dependabot[bot] May 24, 2022
62b1ba8
build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.5.0
dependabot[bot] Jun 21, 2022
8a4719c
build(deps): bump google.golang.org/api from 0.49.0 to 0.87.0
dependabot[bot] Jul 13, 2022
888209a
build(deps): bump google.golang.org/grpc from 1.38.0 to 1.48.0
dependabot[bot] Jul 13, 2022
39241b9
build(deps): bump entgo.io/ent from 0.8.0 to 0.11.1
dependabot[bot] Jul 14, 2022
36fe38e
Fix linter, and delint
robert-uhl Jul 15, 2022
465168c
Update entgo && regenerate files
robert-uhl Jul 15, 2022
fda1bb5
Update & tidy deps
robert-uhl Jul 15, 2022
7efcfd8
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
robert-uhl Jul 15, 2022
9d57fb5
Correct version of go-sqlite3
robert-uhl Jul 15, 2022
f301d91
Merge remote-tracking branch 'origin/dependabot/github_actions/action…
robert-uhl Jul 15, 2022
5c5f3c1
Merge remote-tracking branch 'origin/dependabot/github_actions/action…
robert-uhl Jul 15, 2022
e3d4268
Merge remote-tracking branch 'origin/dependabot/github_actions/github…
robert-uhl Jul 15, 2022
e4ec8b4
Merge remote-tracking branch 'origin/dependabot/github_actions/docker…
robert-uhl Jul 15, 2022
336acfb
Merge remote-tracking branch 'origin/dependabot/github_actions/docker…
robert-uhl Jul 15, 2022
869b29f
Merge remote-tracking branch 'origin/dependabot/docker/alpine-3.16.0'…
robert-uhl Jul 15, 2022
784c6b7
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
robert-uhl Jul 15, 2022
cd68836
Merge remote-tracking branch 'origin/dependabot/go_modules/google.gol…
robert-uhl Jul 16, 2022
a26b9fd
Delint
robert-uhl Jul 16, 2022
ee44c5f
Merge remote-tracking branch 'origin/dependabot/go_modules/google.gol…
robert-uhl Jul 17, 2022
6cd2777
Merge remote-tracking branch 'origin/dependabot/go_modules/entgo.io/e…
robert-uhl Jul 18, 2022
8eefbbc
Merge pull request #90 from pachyderm/ruhl/core-873-update-deps
robert-uhl Jul 19, 2022
9d28ece
build(deps): bump docker/build-push-action from 3 to 4
dependabot[bot] Jan 31, 2023
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Start services
run: docker-compose -f docker-compose.test.yaml up -d

- name: Create kind cluster
uses: helm/kind-action@v1.1.0
uses: helm/kind-action@v1.2.0
with:
version: v0.11.1
node_image: kindest/node:v1.19.11@sha256:07db187ae84b4b7de440a73886f008cf903fcf5764ba8106a9fd5243d6f32729
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
8 changes: 4 additions & 4 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Calculate Docker image tags
id: tags
Expand Down Expand Up @@ -57,22 +57,22 @@ jobs:
driver-opts: image=moby/buildkit:master

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
if: github.event_name == 'push'

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.5-alpine3.13 AS builder
FROM golang:1.17.3-alpine3.13 AS builder

WORKDIR /usr/local/src/dex

Expand All @@ -20,7 +20,7 @@ COPY . .

RUN make release-binary

FROM alpine:3.14.0 AS gomplate
FROM alpine:3.16.0 AS gomplate

ARG TARGETOS
ARG TARGETARCH
Expand All @@ -33,7 +33,7 @@ RUN wget -O /usr/local/bin/gomplate \
&& chmod +x /usr/local/bin/gomplate


FROM alpine:3.14.0
FROM alpine:3.16.0

# Dex connectors, such as GitHub and Google logins require root certificates.
# Proper installations should manage those certificates, but it's a bad user
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export GOBIN=$(PWD)/bin
LD_FLAGS="-w -X main.version=$(VERSION)"

# Dependency versions
GOLANGCI_VERSION = 1.40.1
GOLANGCI_VERSION = 1.46.2

PROTOC_VERSION = 3.15.6
PROTOC_GEN_GO_VERSION = 1.26.0
Expand Down Expand Up @@ -85,13 +85,15 @@ kind-tests: testall

bin/golangci-lint: bin/golangci-lint-${GOLANGCI_VERSION}
@ln -sf golangci-lint-${GOLANGCI_VERSION} bin/golangci-lint

bin/golangci-lint-${GOLANGCI_VERSION}:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint bash -s -- v${GOLANGCI_VERSION}
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin v${GOLANGCI_VERSION}
#curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint bash -s -- v${GOLANGCI_VERSION}
@mv bin/golangci-lint $@

.PHONY: lint lint-fix
lint: bin/golangci-lint ## Run linter
bin/golangci-lint run
./bin/golangci-lint run

.PHONY: fix
fix: bin/golangci-lint ## Fix lint violations
Expand Down
2 changes: 1 addition & 1 deletion connector/authproxy/authproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type callback struct {
}

// LoginURL returns the URL to redirect the user to login with.
func (m *callback) LoginURL(s connector.Scopes, callbackURL, state string) (string, error) {
func (m *callback) LoginURL(s connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
u, err := url.Parse(callbackURL)
if err != nil {
return "", fmt.Errorf("failed to parse callbackURL %q: %v", callbackURL, err)
Expand Down
3 changes: 2 additions & 1 deletion connector/bitbucketcloud/bitbucketcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"sync"
"time"

Expand Down Expand Up @@ -111,7 +112,7 @@ func (b *bitbucketConnector) oauth2Config(scopes connector.Scopes) *oauth2.Confi
}
}

func (b *bitbucketConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (b *bitbucketConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if b.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, b.redirectURI)
}
Expand Down
3 changes: 2 additions & 1 deletion connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package connector
import (
"context"
"net/http"
"net/url"
)

// Connector is a mechanism for federating login to a remote identity service.
Expand Down Expand Up @@ -63,7 +64,7 @@ type CallbackConnector interface {
// requested if one has already been issues. There's no good general answer
// for these kind of restrictions, and may require this package to become more
// aware of the global set of user/connector interactions.
LoginURL(s Scopes, callbackURL, state string) (string, error)
LoginURL(s Scopes, callbackURL, state string, forwardedParams url.Values) (string, error)

// Handle the callback to the server and return an identity.
HandleCallback(s Scopes, r *http.Request) (identity Identity, err error)
Expand Down
3 changes: 2 additions & 1 deletion connector/gitea/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"sync"
"time"
Expand Down Expand Up @@ -82,7 +83,7 @@ func (c *giteaConnector) oauth2Config(_ connector.Scopes) *oauth2.Config {
}
}

func (c *giteaConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (c *giteaConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", c.redirectURI, callbackURL)
}
Expand Down
3 changes: 2 additions & 1 deletion connector/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"io/ioutil"
"net"
"net/http"
"net/url"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -187,7 +188,7 @@ func (c *githubConnector) oauth2Config(scopes connector.Scopes) *oauth2.Config {
}
}

func (c *githubConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (c *githubConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, c.redirectURI)
}
Expand Down
3 changes: 2 additions & 1 deletion connector/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strconv"

"golang.org/x/oauth2"
Expand Down Expand Up @@ -98,7 +99,7 @@ func (c *gitlabConnector) oauth2Config(scopes connector.Scopes) *oauth2.Config {
}
}

func (c *gitlabConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (c *gitlabConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", c.redirectURI, callbackURL)
}
Expand Down
3 changes: 2 additions & 1 deletion connector/google/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"time"

"github.com/coreos/go-oidc/v3/oidc"
Expand Down Expand Up @@ -120,7 +121,7 @@ func (c *googleConnector) Close() error {
return nil
}

func (c *googleConnector) LoginURL(s connector.Scopes, callbackURL, state string) (string, error) {
func (c *googleConnector) LoginURL(s connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, c.redirectURI)
}
Expand Down
3 changes: 1 addition & 2 deletions connector/keystone/keystone.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ func (p *conn) Login(ctx context.Context, scopes connector.Scopes, username, pas

func (p *conn) Prompt() string { return "username" }

func (p *conn) Refresh(
ctx context.Context, scopes connector.Scopes, identity connector.Identity) (connector.Identity, error) {
func (p *conn) Refresh(ctx context.Context, scopes connector.Scopes, identity connector.Identity) (connector.Identity, error) {
token, err := p.getAdminToken(ctx)
if err != nil {
return identity, fmt.Errorf("keystone: failed to obtain admin token: %v", err)
Expand Down
8 changes: 4 additions & 4 deletions connector/keystone/keystone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,22 +454,22 @@ func setupVariables(t *testing.T) {
keystoneAdminPassEnv := "DEX_KEYSTONE_ADMIN_PASS"
keystoneURL = os.Getenv(keystoneURLEnv)
if keystoneURL == "" {
t.Skip(fmt.Sprintf("variable %q not set, skipping keystone connector tests\n", keystoneURLEnv))
t.Skipf(fmt.Sprintf("variable %q not set, skipping keystone connector tests\n", keystoneURLEnv))
return
}
keystoneAdminURL = os.Getenv(keystoneAdminURLEnv)
if keystoneAdminURL == "" {
t.Skip(fmt.Sprintf("variable %q not set, skipping keystone connector tests\n", keystoneAdminURLEnv))
t.Skipf("variable %q not set, skipping keystone connector tests\n", keystoneAdminURLEnv)
return
}
adminUser = os.Getenv(keystoneAdminUserEnv)
if adminUser == "" {
t.Skip(fmt.Sprintf("variable %q not set, skipping keystone connector tests\n", keystoneAdminUserEnv))
t.Skipf("variable %q not set, skipping keystone connector tests\n", keystoneAdminUserEnv)
return
}
adminPass = os.Getenv(keystoneAdminPassEnv)
if adminPass == "" {
t.Skip(fmt.Sprintf("variable %q not set, skipping keystone connector tests\n", keystoneAdminPassEnv))
t.Skipf("variable %q not set, skipping keystone connector tests\n", keystoneAdminPassEnv)
return
}
authTokenURL = keystoneURL + "/v3/auth/tokens/"
Expand Down
3 changes: 2 additions & 1 deletion connector/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ func (c *Config) OpenConnector(logger log.Logger) (interface {
connector.Connector
connector.PasswordConnector
connector.RefreshConnector
}, error) {
}, error,
) {
return c.openConnector(logger)
}

Expand Down
3 changes: 2 additions & 1 deletion connector/linkedin/linkedin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"

"golang.org/x/oauth2"
Expand Down Expand Up @@ -62,7 +63,7 @@ var (
)

// LoginURL returns an access token request URL
func (c *linkedInConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (c *linkedInConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.oauth2Config.RedirectURL != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q",
callbackURL, c.oauth2Config.RedirectURL)
Expand Down
3 changes: 2 additions & 1 deletion connector/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -151,7 +152,7 @@ func (c *microsoftConnector) oauth2Config(scopes connector.Scopes) *oauth2.Confi
}
}

func (c *microsoftConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) {
func (c *microsoftConnector) LoginURL(scopes connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
if c.redirectURI != callbackURL {
return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, c.redirectURI)
}
Expand Down
2 changes: 1 addition & 1 deletion connector/mock/connectortest.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Callback struct {
}

// LoginURL returns the URL to redirect the user to login with.
func (m *Callback) LoginURL(s connector.Scopes, callbackURL, state string) (string, error) {
func (m *Callback) LoginURL(s connector.Scopes, callbackURL, state string, _ url.Values) (string, error) {
u, err := url.Parse(callbackURL)
if err != nil {
return "", fmt.Errorf("failed to parse callbackURL %q: %v", callbackURL, err)
Expand Down
Loading