Skip to content

Commit

Permalink
fix: change attestor names to witness.dev domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Cole Kennedy authored and mikhailswift committed Feb 28, 2022
1 parent 422d9b8 commit cb797dd
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ Look [here](docs/policy.md) for full documentation on Witness Policies.
"name": "build",
"attestations": [
{
"type": "https://witness.testifysec.com/attestations/material/v0.1",
"type": "https://witness.dev/attestations/material/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/command-run/v0.1",
"type": "https://witness.dev/attestations/command-run/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/product/v0.1",
"type": "https://witness.dev/attestations/product/v0.1",
"regopolicies": []
}
],
Expand Down Expand Up @@ -187,7 +187,7 @@ Witness attestors are pieces of code that assert facts about a system and store

```
Name = "aws"
Type = "https://witness.testifysec.com/attestation/aws/v0.1"
Type = "https://witness.dev/attestations/aws/v0.1"
RunType = attestation.PreRunType
```

Expand Down
6 changes: 3 additions & 3 deletions dev/build-and-push-builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -e
#set -e

cd ..
go mod tidy
go mod vendor
go build -o ./bin/witness
make
cd dev

RED='\033[0;31m'

sha=$(git rev-parse --short HEAD)
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
imagetag=`echo registry.gitlab.com/testifysec/witness/builder:${tag}-${sha}-golang-1.17.3`
imagetag=`echo registry.gitlab.com/testifysec/demos/witness-demo/builder:${tag}-${sha}-golang-1.17.3`


docker build -f ./Dockerfile.go-builder -t ${imagetag} ./../
Expand Down
12 changes: 6 additions & 6 deletions docs/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ deny[msg] {
"name": "clone",
"attestations": [
{
"type": "https://witness.testifysec.com/attestations/material/v0.1",
"type": "https://witness.dev/attestations/material/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/command-run/v0.1",
"type": "https://witness.dev/attestations/command-run/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/product/v0.1",
"type": "https://witness.dev/attestations/product/v0.1",
"regopolicies": []
}
],
Expand All @@ -174,11 +174,11 @@ deny[msg] {
"artifactsFrom": ["clone"],
"attestations": [
{
"type": "https://witness.testifysec.com/attestations/material/v0.1",
"type": "https://witness.dev/attestations/material/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/command-run/v0.1",
"type": "https://witness.dev/attestations/command-run/v0.1",
"regopolicies": [
{
"name": "expected command",
Expand All @@ -187,7 +187,7 @@ deny[msg] {
]
},
{
"type": "https://witness.testifysec.com/attestations/product/v0.1",
"type": "https://witness.dev/attestations/product/v0.1",
"regopolicies": []
}
],
Expand Down
8 changes: 4 additions & 4 deletions examples/log4shell/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
"name": "demo",
"attestations": [
{
"type": "https://witness.testifysec.com/attestations/material/v0.1",
"type": "https://witness.dev/attestations/material/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/command-run/v0.1",
"type": "https://witness.dev/attestations/command-run/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/product/v0.1",
"type": "https://witness.dev/attestations/product/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/maven/v0.1",
"type": "https://witness.dev/attestations/maven/v0.1",
"regopolicies": [
{
"name": "log4j vulnerability",
Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/aws-iid/aws-iid.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

const (
Name = "aws"
Type = "https://witness.testifysec.com/attestation/aws/v0.1"
Type = "https://witness.dev/attestations/aws/v0.1"
RunType = attestation.PreRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/commandrun/commandrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

const (
Name = "command-run"
Type = "https://witness.testifysec.com/attestations/command-run/v0.1"
Type = "https://witness.dev/attestations/command-run/v0.1"
RunType = attestation.Internal
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
Name = "environment"
Type = "https://witness.testifysec.com/attestations/environment/v0.1"
Type = "https://witness.dev/attestations/environment/v0.1"
RunType = attestation.PreRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/gcp-iit/gcp-iit.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

const (
Name = "gcp-iit"
Type = "https://witness.testifysec.com/attestation/gcp-iit/v0.1"
Type = "https://witness.dev/attestations/gcp-iit/v0.1"
RunType = attestation.PreRunType

jwksUrl = "https://www.googleapis.com/oauth2/v3/certs"
Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
Name = "git"
Type = "https://witness.testifysec.com/attestations/git/v0.1"
Type = "https://witness.dev/attestations/git/v0.1"
RunType = attestation.PreRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
Name = "gitlab"
Type = "https://witness.testifysec.com/attestations/gitlab/v0.1"
Type = "https://witness.dev/attestations/gitlab/v0.1"
RunType = attestation.PreRunType

jwksUrl = "https://gitlab.com/-/jwks"
Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

const (
Name = "jwt"
Type = "https://witness.testifysec.com/attestations/jwt/v0.1"
Type = "https://witness.dev/attestations/jwt/v0.1"
RunType = attestation.PreRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/material/material.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
Name = "material"
Type = "https://witness.testifysec.com/attestations/material/v0.1"
Type = "https://witness.dev/attestations/material/v0.1"
RunType = attestation.Internal
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/maven/maven.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

const (
Name = "maven"
Type = "https://witness.testifysec.com/attestations/maven/v0.1"
Type = "https://witness.dev/attestations/maven/v0.1"
RunType = attestation.PreRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

const (
Name = "oci"
Type = "https://witness.testifysec.com/attestations/oci/v0.1"
Type = "https://witness.dev/attestations/oci/v0.1"
RunType = attestation.PostRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/product/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

const (
Name = "product"
Type = "https://witness.testifysec.com/attestations/product/v0.1"
Type = "https://witness.dev/attestations/product/v0.1"
RunType = attestation.Internal
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/sarif/sarif.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

const (
Name = "sarif"
Type = "https://witness.testifysec.com/attestations/sarif/v0.1"
Type = "https://witness.dev/attestations/sarif/v0.1"
RunType = attestation.PostRunType
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/attestation/scorecard/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

const (
Name = "scorecard"
Type = "https://witness.testifysec.com/attestations/scorecard/v0.1"
Type = "https://witness.dev/attestations/scorecard/v0.1"
RunType = attestation.PostRunType
)

Expand Down
6 changes: 3 additions & 3 deletions test/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"name": "build",
"attestations": [
{
"type": "https://witness.testifysec.com/attestations/material/v0.1",
"type": "https://witness.dev/attestations/material/v0.1",
"regopolicies": []
},
{
"type": "https://witness.testifysec.com/attestations/command-run/v0.1",
"type": "https://witness.dev/attestations/command-run/v0.1",
"regopolicies": [
{
"name": "expected command",
Expand All @@ -18,7 +18,7 @@
]
},
{
"type": "https://witness.testifysec.com/attestations/product/v0.1",
"type": "https://witness.dev/attestations/product/v0.1",
"regopolicies": []
}
],
Expand Down

0 comments on commit cb797dd

Please sign in to comment.