Rename module to docker/attest-provider

We were still using the name from the template
This commit is contained in:
Jonny Stoten
2024-06-26 12:14:15 +01:00
parent 1ecfd083f3
commit 74bd930006
10 changed files with 19 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ jobs:
with:
app-id: ${{ vars.DOCKER_READ_APP_ID }}
private-key: ${{ secrets.DOCKER_READ_APP_PRIVATE_KEY }}
repositories: "attest,attest-external-data-provider"
repositories: "attest,attest-provider"
- name: Set up Go 1.22
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
@@ -78,7 +78,7 @@ jobs:
with:
app-id: ${{ vars.DOCKER_READ_APP_ID }}
private-key: ${{ secrets.DOCKER_READ_APP_PRIVATE_KEY }}
repositories: "attest,attest-external-data-provider"
repositories: "attest,attest-provider"
- name: Bootstrap e2e
env:
@@ -107,7 +107,7 @@ jobs:
--create-namespace \
--debug
- name: Build and install attest-external-data-provider
- name: Build and install attest-provider
run: |
./scripts/generate-tls-cert.sh
export GITHUB_TOKEN=${{ steps.app-token.outputs.token }}

View File

@@ -8,7 +8,7 @@ ARG LDFLAGS
ENV GO111MODULE=on \
CGO_ENABLED=0
WORKDIR /go/src/github.com/docker/attest-external-data-provider
WORKDIR /src/attest-provider
COPY . .
@@ -29,10 +29,10 @@ RUN --mount=type=cache,target=$GOPATH/pkg/mod --mount=type=cache,target=/root/.c
FROM ${BASEIMAGE}
COPY --from=builder /go/src/github.com/docker/attest-external-data-provider/bin/attest /
COPY --from=builder /src/attest-provider/bin/attest /
COPY --from=builder --chown=65532:65532 /go/src/github.com/docker/attest-external-data-provider/certs/tls.crt \
/go/src/github.com/docker/attest-external-data-provider/certs/tls.key \
COPY --from=builder --chown=65532:65532 /src/attest-provider/certs/tls.crt \
/src/attest-provider/certs/tls.key \
/certs/
USER 65532:65532

View File

@@ -1,4 +1,4 @@
REPOSITORY ?= docker/attest-external-data-provider
REPOSITORY ?= docker/attest-provider
IMG := $(REPOSITORY):dev
# When updating this, make sure to update the corresponding action in

View File

@@ -38,8 +38,8 @@ helm install gatekeeper/gatekeeper \
3. Build and deploy the external data provider.
```bash
git clone https://github.com/docker/attest-external-data-provider.git
cd attest-external-data-provider
git clone https://github.com/docker/attest-provider.git
cd attest-provider
# if you are not planning to establish mTLS between the provider and Gatekeeper,
# deploy the provider to a separate namespace. Otherwise, do not run the following command

View File

@@ -2,7 +2,7 @@ apiVersion: v2
description: A Helm chart for attest external data provider
name: attest-provider
version: 0.0.1
home: https://github.com/docker/attest-external-data-provider
home: https://github.com/docker/attest-provider
sources:
- https://github.com/docker/attest-external-data-provider.git
- https://github.com/docker/attest-provider.git
appVersion: 0.0.1

View File

@@ -14,7 +14,7 @@ spec:
run: attest-provider
spec:
containers:
- image: docker/attest-external-data-provider:dev
- image: docker/attest-provider:dev
imagePullPolicy: IfNotPresent
name: attest-provider
securityContext:

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/open-policy-agent/gatekeeper-external-data-provider
module github.com/docker/attest-provider
go 1.22.1

View File

@@ -10,8 +10,8 @@ import (
"path/filepath"
"time"
"github.com/open-policy-agent/gatekeeper-external-data-provider/pkg/handler"
"github.com/open-policy-agent/gatekeeper-external-data-provider/pkg/utils"
"github.com/docker/attest-provider/pkg/handler"
"github.com/docker/attest-provider/pkg/utils"
"k8s.io/klog/v2"
)

View File

@@ -7,11 +7,11 @@ import (
"net/http"
"runtime/debug"
"github.com/docker/attest-provider/pkg/utils"
"github.com/docker/attest/pkg/oci"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1/remote"
"github.com/open-policy-agent/frameworks/constraint/pkg/externaldata"
"github.com/open-policy-agent/gatekeeper-external-data-provider/pkg/utils"
"k8s.io/klog/v2"
)

View File

@@ -7,14 +7,14 @@ import (
"net/http"
"runtime/debug"
"github.com/docker/attest-provider/internal/embed"
"github.com/docker/attest-provider/pkg/utils"
"github.com/docker/attest/pkg/attest"
"github.com/docker/attest/pkg/oci"
"github.com/docker/attest/pkg/policy"
"github.com/docker/attest/pkg/tuf"
intoto "github.com/in-toto/in-toto-golang/in_toto"
"github.com/open-policy-agent/frameworks/constraint/pkg/externaldata"
"github.com/open-policy-agent/gatekeeper-external-data-provider/internal/embed"
"github.com/open-policy-agent/gatekeeper-external-data-provider/pkg/utils"
"k8s.io/klog/v2"
)