tektoncd / chains

Supply Chain Security in Tekton Pipelines
Apache License 2.0
249 stars 135 forks source link

missing document key (code=InvalidArgument) #556

Closed michaelsatish closed 1 year ago

michaelsatish commented 2 years ago

I am not sure this is a bug, thus an unstructured issue. I have been trying to store the OCI signatures in AWS DynamoDB and running into the below error. Any help will be much appreciated.

Config

configMapGenerator:
  - name: chains-config
    namespace: tekton-chains
    behavior: merge
    literals:
      - artifacts.oci.storage=docdb
      - artifacts.oci.signer=x509
      - storage.docdb.url=dynamodb://tekton-chains-oci-storage?partition_key=key
{"level":"error","ts":"2022-09-15T00:32:37.745Z","logger":"watcher","caller":"chains/signing.go:204","msg":"missing document key (code=InvalidArgument)"

I think the URL is correct, as the below code works.

package main

import (
    "context"
    "log"

    "gocloud.dev/docstore"
    _ "gocloud.dev/docstore/awsdynamodb"
)

func main() {
    ctx := context.TODO()
    coll, err := docstore.OpenCollection(ctx, "dynamodb://tekton-chains-oci-storage?partition_key=key")
    if err != nil {
        log.Fatal(err)
    }
    defer coll.Close()
    coll.Put(ctx, map[string]interface{}{"key": "bar"})
}

Thank you

tekton-robot commented 1 year ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

tekton-robot commented 1 year ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten with a justification. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

tekton-robot commented 1 year ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen with a justification. Mark the issue as fresh with /remove-lifecycle rotten with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

tekton-robot commented 1 year ago

@tekton-robot: Closing this issue.

In response to [this](https://github.com/tektoncd/chains/issues/556#issuecomment-1426918654): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen` with a justification. >Mark the issue as fresh with `/remove-lifecycle rotten` with a justification. >If this issue should be exempted, mark the issue as frozen with `/lifecycle frozen` with a justification. > >/close > >Send feedback to [tektoncd/plumbing](https://github.com/tektoncd/plumbing). Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
concaf commented 7 months ago

@michaelsatish 👋🏼 hey, i wonder if you were able to figure this out - i'm running into similar errors...