instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sigstore__cosign__2620 | sigstore/cosign | 2,620 | defect | 3a492c7ba1e8e3ca43660a31b37caf14509585d1 | a66fb00be95db65b17b58759a4221fb6d4840ae8 | insecure-skip-tlog-verify: rename and adapt the cert expiration check | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Pleases use
issue tags su... | diff --git a/cmd/cosign/cli/options/verify.go b/cmd/cosign/cli/options/verify.go
index 80fd353234e..4fe8c0d091d 100644
--- a/cmd/cosign/cli/options/verify.go
+++ b/cmd/cosign/cli/options/verify.go
@@ -22,7 +22,7 @@ import (
type CommonVerifyOptions struct {
Offline bool // Force offline verification
TSACe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message for an expired certificate without a signed timestamp should read \"must provide a signed timestamp to verify an expired certificate\" instead of \"expected a signed timestamp from the bundle\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "in... | null |
sigstore__cosign__2735 | sigstore/cosign | 2,735 | defect | f9d8e5d22c038f261e6aa722af745d9bcc5850ea | f8a8d168c53871ff006d0b55e4e3289260cab347 | Default generated PEM labels to SIGSTORE | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Pleases use
issue tags su... | diff --git a/README.md b/README.md
index ccafa412698a..baefba910276 100644
--- a/README.md
+++ b/README.md
@@ -504,12 +504,12 @@ Note: different registries might expect different formats for the "repository."
Generated private keys are stored in PEM format.
The keys encrypted under a password using scrypt as a KDF an... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add test cases ensuring that both PEM types (COSIGN and SIGSTORE) are read successfully, and one covering writing too.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added code fails lint and the lint violations must be fixed... | null |
sigstore__cosign__3014 | sigstore/cosign | 3,014 | defect | 6236366b6cafc92930df4f7619a27ea0265ca2e0 | 9792537907edc035260190ab05cd221c30c682ed | accepts `attachment-tag-prefix` for `cosign copy` | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/cmd/cosign/cli/copy/copy.go b/cmd/cosign/cli/copy/copy.go
index a5343a7d5cc..ab78aa8ab65 100644
--- a/cmd/cosign/cli/copy/copy.go
+++ b/cmd/cosign/cli/copy/copy.go
@@ -49,6 +49,11 @@ func CopyCmd(ctx context.Context, regOpts options.RegistryOptions, srcImg, dstIm
}
dstRepoRef := dstRef.Context()
+ oc... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add a test validating the problem reported in the issue.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The normalize helper can be removed because it is only ever called with suffix set to the empty strin... | null |
sigstore__cosign__3486 | sigstore/cosign | 3,486 | defect | 26e8440d5c128db64d78d8f2a57eac9bb6cc05dd | c3db7a8d45aab586fb788ddad11b6e0b977b920e | fix for issue 3476 | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
This PR is required to fix the issue "Closes #3476"
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time fo... | diff --git a/pkg/cosign/verify.go b/pkg/cosign/verify.go
index 7a4b2b1115c..f477d11df42 100644
--- a/pkg/cosign/verify.go
+++ b/pkg/cosign/verify.go
@@ -291,6 +291,89 @@ func ValidateAndUnpackCert(cert *x509.Certificate, co *CheckOpts) (signature.Ver
return verifier, nil
}
+// ValidateAndUnpackCertWithIntermediate... | 8 | 7 | 1 | [{"id": "G0", "claim": "Remove the stray blank line between the new doc comment and the ValidateAndUnpackCertWithIntermediates function declaration.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added (or existing coverage confi... | null |
sigstore__cosign__3549 | sigstore/cosign | 3,549 | defect | 5703887cf32bb9e80213c21301449d4b902468d0 | c13b425d8803766c3558af0c5b6d3fc05bace634 | Honor creation timestamp for signatures again | closes #3298
#### Summary
As the timestamp is part of the OCI spec it makes no sense to omit it. signatures that are pushed to an OCI registry are not immutable by default and honoring the creation timestamp will enable people to use time based cleanup policies in their registries again (as in GCP, GitLab etc.).
... | diff --git a/pkg/oci/mutate/signatures.go b/pkg/oci/mutate/signatures.go
index 648cab04148a..e16862d00fac 100644
--- a/pkg/oci/mutate/signatures.go
+++ b/pkg/oci/mutate/signatures.go
@@ -19,6 +19,7 @@ import (
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/google/go-containerregistry/pkg/v1/empty"
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The currently implemented behavior should stay the default, and setting the timestamp correctly should be added as a feature flag instead of the new unconditional behavior.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__cosign__3761 | sigstore/cosign | 3,761 | defect | 811dba8d66aa22969e76a2d328ed4951f4180ae0 | c51db7628dbca77bf5b723e8c47c8f6ca1dd0944 | add handling of keyless verification for all verify commands | #### Summary
Copy the handling of non-Fulcio keys from the `verify` to all the other verify commands (`verify-attestation`,
`verify-blob`, `verify-blob-attestations`).
Fix #3759.
#### Release Note
- add keyless verification and `--ca-roots` / `--ca-intermediates` parameters to the
`verify-attestation`, `v... | diff --git a/cmd/cosign/cli/verify.go b/cmd/cosign/cli/verify.go
index a2540923082f..c574b8a0f80e 100644
--- a/cmd/cosign/cli/verify.go
+++ b/cmd/cosign/cli/verify.go
@@ -114,14 +114,14 @@ against the transparency log.`,
CheckClaims: o.CheckClaims,
KeyRef: o.Key,
Ce... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add tests covering the keyless verification handling that the pull request adds to the verify commands.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the TODO comment above loadCertsKeylessVerification that lists the veri... | null |
sigstore__cosign__4368 | sigstore/cosign | 4,368 | defect | b6ce93da38c781b1ba763c9c7d7a4ce49763fbee | 6c5159e0b8d9efde2510158f787e9121c21bbf83 | Support self-managed keys when signing with sigstore-go | This creates a wrapper around the Keypair interface when a SignerVerifier is provided for signing with KMS or any other provided keys. This also retains support for --issue-certificate to request a certificate for a managed key.
Fixes #4327
<!--
Thanks for opening a pull request! Please do not just delete this t... | diff --git a/cmd/cosign/cli/attest/attest_blob.go b/cmd/cosign/cli/attest/attest_blob.go
index 9cf69592d71b..1b32417908f6 100644
--- a/cmd/cosign/cli/attest/attest_blob.go
+++ b/cmd/cosign/cli/attest/attest_blob.go
@@ -35,6 +35,7 @@ import (
"github.com/sigstore/cosign/v2/cmd/cosign/cli/rekor"
cosign_sign "github.c... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new signing-config code is unclear about what flag drives this behavior and how sigstore-go uses it, and it mutates the command's configuration (c.IssueCertificateForExistingKey = false) to keep SignerFromKeyOpts from requesting a Fulcio certificate; instead keylessSigner should be exposed a... | null |
sigstore__cosign__4371 | sigstore/cosign | 4,371 | defect | 59b9930775e16492a7450da977ee4185165529c8 | 4f9d05d0967c96ad3f27f23bcf629d5cd9ee70fc | Add support for SigningConfig in sign/attest | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/cmd/cosign/cli/attest.go b/cmd/cosign/cli/attest.go
index b3744c214242..c066dae0dfe4 100644
--- a/cmd/cosign/cli/attest.go
+++ b/cmd/cosign/cli/attest.go
@@ -25,6 +25,7 @@ import (
"github.com/sigstore/cosign/v2/internal/ui"
"github.com/sigstore/cosign/v2/pkg/cosign"
"github.com/sigstore/cosign/v2/pk... | 2 | 2 | 1 | [{"id": "G0", "claim": "In cmd/cosign/cli/attest.go the code always sets ko.TrustedMaterial even when cosign.TrustedRoot() returns an error, which is a little weird and only works because TrustedRoot() presumably returns nil on error.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
sigstore__cosign__4415 | sigstore/cosign | 4,415 | defect | 45bda40b8ef48fe4ba95e9c67bd3b390b902ed2d | 7eb0302ca813c6c0cf005c0cce0f2bf495839ada | Support multiple container identities | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/cmd/cosign/cli/options/sign.go b/cmd/cosign/cli/options/sign.go
index 028cb9a82ae3..8a35244c6f92 100644
--- a/cmd/cosign/cli/options/sign.go
+++ b/cmd/cosign/cli/options/sign.go
@@ -40,7 +40,7 @@ type SignOptions struct {
TSAServerName string
TSAServerURL string
IssueCertificate ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use StringSliceVar for --sign-container-identity so comma-separated values (--sign-container-identity=docker.io/name1:tag1,docker.io/name2:tag2) can be specified.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering ... | null |
sigstore__cosign__4548 | sigstore/cosign | 4,548 | defect | 8bce2dc8bb70efad54a9221612e2208ec615c6fc | 194461f75217825773bcd143fc8d239fbe03c4c2 | Update e2e tests to use scaffolding containers | Closes #4281
#### Summary
<!--
Explain the **motivation** for making this change. What existing problem does the pull request solve? How can reviewers test this PR?
-->
This change simplifies the end-to-end testing bash script by leveraging the scaffolding containers. | diff --git a/test/e2e_test.go b/test/e2e_test.go
index 60abf75ae47a..046c37c2ca9b 100644
--- a/test/e2e_test.go
+++ b/test/e2e_test.go
@@ -610,9 +610,8 @@ func trustedRootCmd(t *testing.T, downloadDirectory, tsaURL string) *trustedroot
defer rekorFP.Close()
must(downloadFile(rekorURL+"/api/v1/log/publicKey", rekorF... | 1 | 1 | 0 | [{"id": "G0", "claim": "The e2e tests should also replace the remaining instances of the in-memory TSA server with the docker (scaffolding) TSA instance.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
sigstore__cosign__4620 | sigstore/cosign | 4,620 | defect | 47643e0bdb9856c8d4ec705edbef1ad106d2513c | 6885e3346474772b15884e56083687b76d5077ba | Support mTLS for TSA clients when using a signing config | Partially addresses #4570
#### Summary
This change adds support for using mTLS to connect to a TSA client via sigstore-go when signing with a signing config. | diff --git a/cmd/cosign/cli/sign/sign_blob.go b/cmd/cosign/cli/sign/sign_blob.go
index 9c1527562a13..5e7cf1502e60 100644
--- a/cmd/cosign/cli/sign/sign_blob.go
+++ b/cmd/cosign/cli/sign/sign_blob.go
@@ -29,9 +29,13 @@ import (
"google.golang.org/protobuf/encoding/protojson"
+ "net/http"
+ "time"
+
"github.com/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "SignData should take a new SignOptions struct (containing optional sigstore-go signing options such as TSAClientTransport) as its last input instead of the tsaClientTransport parameter, which sticks out among the other arguments.", "category": "design", "verdict": "supported", "priority": "P2", ... | null |
sigstore__cosign__4636 | sigstore/cosign | 4,636 | defect | 10e56727c01bd682da2d536819c1493a84884940 | abc41d7796aab9dd5fb1d4a5c4d54caa229609a3 | disallow key and cert identity being used together during verification | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/cmd/cosign/cli/verify/verify.go b/cmd/cosign/cli/verify/verify.go
index 613be72636bb..760680e41021 100644
--- a/cmd/cosign/cli/verify/verify.go
+++ b/cmd/cosign/cli/verify/verify.go
@@ -98,6 +98,10 @@ func (c *VerifyCommand) Exec(ctx context.Context, images []string) (err error) {
c.HashAlgorithm = cryp... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error returned when both --key and --certificate-identity are given should say more about what to do — how the user can tell whether to provide a key or an identity.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ke... | null |
sigstore__cosign__4652 | sigstore/cosign | 4,652 | defect | 03be625fbb4eec105dc8d81c2923c62ba14992c4 | 51c102e59d02b5ce981aafb556b108371ab4b76a | fix: avoid panic on malformed tlog entry body | - avoid panic on malformed ComputeLeafHash inputs by returning errors
- add regression test to ensure non-string log entry bodies do not panic
- no behavior change for valid inputs | diff --git a/pkg/cosign/tlog.go b/pkg/cosign/tlog.go
index 875dc2a39756..1f148d5a222b 100644
--- a/pkg/cosign/tlog.go
+++ b/pkg/cosign/tlog.go
@@ -301,7 +301,11 @@ func rekorEntry(checksum NamedHash, signature, pubKey []byte) hashedrekord_v001.
}
func ComputeLeafHash(e *models.LogEntryAnon) ([]byte, error) {
- entr... | 3 | 2 | 0 | [{"id": "G0", "claim": "The defensive body-type guard in ComputeLeafHash is unnecessary because the entry comes directly from Rekor, so it should be dropped.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should be renamed to TestComputeLeafHash... | null |
sigstore__cosign__4653 | sigstore/cosign | 4,653 | defect | 03be625fbb4eec105dc8d81c2923c62ba14992c4 | 341765e4e109871605895980711d53f8d5e28e08 | fix: avoid panic on malformed replace payload | - avoid panic on malformed Replace inputs by returning errors
- add regression test to ensure non-string payloads do not panic
- no behavior change for valid inputs | diff --git a/pkg/cosign/remote/remote.go b/pkg/cosign/remote/remote.go
index 8c46a65dbcd..a9c3f58789b 100644
--- a/pkg/cosign/remote/remote.go
+++ b/pkg/cosign/remote/remote.go
@@ -141,7 +141,11 @@ func (r *ro) Replace(signatures oci.Signatures, o oci.Signature) (oci.Signatures
if !ok {
return nil, fmt.Errorf("c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The license header of the new test file should say Copyright 2026 instead of Copyright 2021.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test file should be named remote_test.go instead of remote_replaceop_test.g... | null |
sigstore__cosign__4723 | sigstore/cosign | 4,723 | defect | 9b259ff6b690c0f0844893016cd23c2c250124f2 | 65a883fab8ae4b5d862c209709fe08e4db9113af | Fix parsing of in-toto for string predicates | ee3d9fe1 changed the parsing of an in-toto Statement from using the deprecated in-toto/in-toto-golang Statement[1] to the recommended in-toto/attestation Statement[2]. This type is more strict about the Predicate field. Attestations that were created with `--type spdxjson` correctly become a regular JSON object under t... | diff --git a/pkg/cosign/verifiers.go b/pkg/cosign/verifiers.go
index 95f901f67e40..a63659bdf8e1 100644
--- a/pkg/cosign/verifiers.go
+++ b/pkg/cosign/verifiers.go
@@ -72,8 +72,8 @@ func IntotoSubjectClaimVerifier(sig oci.Signature, imageDigest v1.Hash, annotati
return err
}
- st := in_toto.Statement{}
- if err :... | 1 | 1 | 1 | [{"id": "G0", "claim": "When the parsed predicate is not a string, toStatement should throw an error instead of silently returning without converting it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__cosign__4785 | sigstore/cosign | 4,785 | defect | 1d5c7a6d34ce6ec314400c33c1e8d1a2ffde3eeb | da57eb73af0ad55ca72bbd4ecd40362c80d1d9c4 | Require bundle output or registry upload | Closes #4534
#### Summary
This change requires that the user enable OCI registry upload (where applicable) or specify a bundle output path so that all signing events provide material with which the user can verify the signing event.
#### Release Note
This is a **breaking change**. When using `--new-bundle-f... | diff --git a/cmd/cosign/cli/attest.go b/cmd/cosign/cli/attest.go
index 89bdf407917..345357f8f16 100644
--- a/cmd/cosign/cli/attest.go
+++ b/cmd/cosign/cli/attest.go
@@ -68,6 +68,12 @@ func Attest() *cobra.Command {
Args: cobra.MinimumNArgs(1),
PersistentPreRun: options.BindViper,
+ PreRunE: func(_ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release note should explain the breaking change in more detail so that anyone with a workflow relying on the old behavior of discarding signed material knows what exactly is changing and how to fix it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
sigstore__cosign__4829 | sigstore/cosign | 4,829 | defect | b7462fb60764850a789392429d3ba40f969d07db | 2f3cd8b2fcb9c75dd757459bfbc2712100d0e9aa | bundle create: Prevent IgnoreTlog when bundle contains SET | #### Summary
This change updates the `bundle create` command to prevent the user from enabling `--ignore-tlog` if the provided bundle contains a Signed Entry Timestamp (SET).
The presence of a SET in an old-format bundle indicates that there should be a corresponding Rekor entry, which should be fetched for the c... | diff --git a/cmd/cosign/cli/bundle/bundle.go b/cmd/cosign/cli/bundle/bundle.go
index 8fe426ed9dd..e21bf04cbd1 100644
--- a/cmd/cosign/cli/bundle/bundle.go
+++ b/cmd/cosign/cli/bundle/bundle.go
@@ -76,6 +76,10 @@ func (c *CreateCmd) Exec(ctx context.Context) (err error) {
return err
}
+ if c.IgnoreTlog && b.Bu... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added covering the new check that errors when IgnoreTlog is used and the provided bundle contains a Signed Entry Timestamp.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__fulcio__1008 | sigstore/fulcio | 1,008 | defect | d49e2fe915f32d3ed2654e9635ae86c3de2b0d2f | 63a50272dcdf3c4f9475f4b1b26168ba175a8067 | Use Issuer interface to allow for custom issuers | This plumbs through IssuerPool and starts using it to set up Fulcio.
| diff --git a/cmd/app/grpc.go b/cmd/app/grpc.go
index 6a41ab4e2..91ea1f114 100644
--- a/cmd/app/grpc.go
+++ b/cmd/app/grpc.go
@@ -33,6 +33,7 @@ import (
"github.com/sigstore/fulcio/pkg/config"
gw "github.com/sigstore/fulcio/pkg/generated/protobuf"
gw_legacy "github.com/sigstore/fulcio/pkg/generated/protobuf/legacy... | 3 | 2 | 1 | [{"id": "G0", "claim": "In getIssuer the condition should be `meta != \"\"` — as written, a meta issuer's prefix is never used and a regular issuer's URL is overwritten with an empty string.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The test's ... | null |
sigstore__fulcio__1033 | sigstore/fulcio | 1,033 | defect | 305fac727a010927850455cb1038c1b2d452cdf7 | 41f72d2d6d2fccd3831b22bb6f8aa8aea227f5cd | Implement Issuer interface for spiffe and kubernetes types | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Pleases use
issue tags su... | diff --git a/pkg/identity/kubernetes/issuer.go b/pkg/identity/kubernetes/issuer.go
new file mode 100644
index 000000000..fc561a94b
--- /dev/null
+++ b/pkg/identity/kubernetes/issuer.go
@@ -0,0 +1,42 @@
+// Copyright 2022 The Sigstore Authors.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// y... | 1 | 1 | 0 | [{"id": "G0", "claim": "The license header year in the new pkg/identity/kubernetes/issuer.go and pkg/identity/spiffe/issuer.go files should be 2023 instead of 2022.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sigstore__fulcio__1206 | sigstore/fulcio | 1,206 | defect | d2286c69636d10f328d3e0162cb5c080724983aa | 2e6c0aa656f38d110b3b0df97b503b476e3bbdfb | Update GitLab claim mappings for build configs | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/pkg/identity/gitlabcom/issuer_test.go b/pkg/identity/gitlabcom/issuer_test.go
index b6466a6fa..de1452ade 100644
--- a/pkg/identity/gitlabcom/issuer_test.go
+++ b/pkg/identity/gitlabcom/issuer_test.go
@@ -53,6 +53,7 @@ func TestIssuer(t *testing.T) {
"user_email": "cpanato@example.com",
"pip... | 6 | 4 | 4 | [{"id": "G0", "claim": "Asks whether Fulcio should be okay with pipeline_ref being empty rather than erroring, since the claim is behind a feature flag and only populated when the CI config lives in the same repo.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
sigstore__fulcio__1342 | sigstore/fulcio | 1,342 | defect | f94df0a74a63e98b3110b84de8af7ebccb07d33c | 71f9651ab26ee6add2bbbee2812272e191cfa515 | Gracefully shutdown HTTP, gRPC, and Prom servers | This catches sigint and sigterm and calls each server's shutdown method, blocking until shutdown completes.
This is only added for non-Duplex, we'll need to add a shutdown method for Duplex servers.
Fixes https://github.com/sigstore/fulcio/issues/1341
<!--
Thanks for opening a pull request! Please do not just... | diff --git a/cmd/app/grpc.go b/cmd/app/grpc.go
index 3aaf283a5..caa21252a 100644
--- a/cmd/app/grpc.go
+++ b/cmd/app/grpc.go
@@ -21,8 +21,10 @@ import (
"fmt"
"net"
"os"
+ "os/signal"
"runtime"
"sync"
+ "syscall"
"github.com/fsnotify/fsnotify"
"github.com/goadesign/goa/grpc/middleware"
@@ -197,7 +199,7 ... | 1 | 1 | 1 | [{"id": "G0", "claim": "If ListenAndServe fails immediately (e.g. the port is already in use), the process blocks forever on idleConnsClosed instead of failing fast; it should log Fatal on that error (and only log Error for a normal server-closed path).", "category": "correctness", "verdict": "supported", "priority": "... | null |
sigstore__fulcio__1593 | sigstore/fulcio | 1,593 | defect | 32ea18812326cb71bae7ea61789691c9e6330ea4 | 33fb641f92233b8199fc2546aa574f1db9a495ed | Add Codefresh OIDC provider | Add support for Codefresh OIDC provider to allow keyless signing of artifacts in Codefresh pipelines
Closes #1592
| diff --git a/config/config.jsn b/config/config.jsn
index 6c2dff21e..8e66be79e 100644
--- a/config/config.jsn
+++ b/config/config.jsn
@@ -20,6 +20,11 @@
"IssuerURL": "https://token.actions.githubusercontent.com",
"ClientID": "sigstore",
"Type": "github-workflow"
+ },
+ "https://oidc.codefresh.... | 10 | 5 | 1 | [{"id": "G0", "claim": "The Codefresh OIDC token leaves the source repository digest / pipeline-config version unpopulated in the claim mapping, and wlynch asks - out of scope for this PR - that Codefresh start capturing it in OIDC claims so users can know what version was used for the build.", "category": "design", "v... | null |
sigstore__fulcio__1738 | sigstore/fulcio | 1,738 | defect | 406abab800109ba33f6b4c171731a0bc1c3fa75e | e7456474222a04d4825bb6d2c796ba5722c2beb5 | Migrate github to ci provider flow | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index ecbfd64d6..82003927e 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+define: &github-type ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test's error message should read \"issuer with type ci-provider should have the same CI provider name as key for CIIssuerMetadata\" (fixing the typos/grammar of \"isseuer with type ci provider should has the same ci provider name\").", "category": "maintainability", "verdict": "supported... | null |
sigstore__fulcio__1740 | sigstore/fulcio | 1,740 | defect | 9f02ba2924c6f8a0b46861b3585cb497a7560454 | 9d4a9bc93b5a8fc7199ff111fb0a8de966ca83f8 | Move gitlab to ci-provider | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index 672f25c00..d563a21ff 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-define: &github-type ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The gitlab source-repository-ref template value \"ref\" needs a conditional value based on RefType (branch vs tag), as in pkg/identity/gitlabcom/principal.go L160-L165.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__fulcio__1743 | sigstore/fulcio | 1,743 | defect | 9acf0762233aeab6ddf8beba89d3a3d52716c543 | 704ce08af38c353b2e726871131fb247947b6ec4 | Move codefresh and buildkite to ci-provider identity | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index d9fb56fec..a75664321 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -15,6 +15,8 @@
define:
- &github-type "github-workflow"
- &gitlab-type "gitlab-pipeline"
+ - &codefresh-type "codefresh-workflow"
+ - &... | 4 | 4 | 2 | [{"id": "G0", "claim": "The Codefresh extension templates misspell the variable as `.platform_ur`; it needs to be updated to `.platform_url`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer proposes changing the behavior of the default t... | null |
sigstore__fulcio__1762 | sigstore/fulcio | 1,762 | defect | 3e4c399511136fccce8da74f1b416a1f8abaaff3 | 9f6f3b4af047989855af764f78d325d8b275dea4 | fix: removing surplus slash, making logs richer | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Please use
issue tags suc... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index e2650d7c6..77ef00f9d 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -178,7 +178,7 @@ ci-issuer-metadata:
# ref_type: The type of the ref
# E.g. "branch", "tag"
# ref: Git ref being built
- ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The two new emptiness checks should use strings.TrimSpace instead of strings.Trim(s, \" \") so that any whitespace character, not just spaces, is trimmed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new error messa... | null |
sigstore__fulcio__1903 | sigstore/fulcio | 1,903 | defect | 854cd8c04661d6b1bfed48a29ede83f3e7765b63 | d3fc2b29bf0036b4fe06dc04d67076926ed17c6a | Configure additional certificate extensions for Buildkite | #### Summary
The Buildkite Issuer was added in #890, prior to the efforts to standardise certificate extensions for CI providers, and #1074 calls for the Buildkite issuer to be updated to use the new extensions (where applicable).
This is an early attempt to make those changes. I initially started these in #1307,... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index 9803e72ee..f2db35257 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -236,4 +236,13 @@ ci-issuer-metadata:
*buildkite-type:
default-template-values:
url: "https://buildkite.com"
- subject-alterna... | 7 | 6 | 3 | [{"id": "G0", "claim": "The run-invocation-uri template added for Buildkite renders the integer build_number claim as %!s(float64=42), producing malformed URLs like .../builds/%!s(float64=42)#<job_id>.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
sigstore__fulcio__1931 | sigstore/fulcio | 1,931 | defect | 260872d5d90c0591ba4fac6625124b2376ca2f3d | dd0f340ff67e6c553fd8385fad531320f190e98f | feat: makes leaf optional and other changes. | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/.gitignore b/.gitignore
index ba4c8f02f..f392acd92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,4 +41,4 @@ hack/tools/bin
# macOS
.DS_Store
-fulcio-certificate-maker
+certificate-maker
diff --git a/Makefile b/Makefile
index bb08d96f1..987de29d5 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "KMSConfig/InitKMS should have no notion of whether the KMS key is for a root/intermediate/leaf: KMSConfig should have only a KeyID field set for each invocation of InitKMS, the intermediate and leaf key IDs should be passed as parameters to CreateCertificates, and the InitKMS call should be move... | null |
sigstore__fulcio__1932 | sigstore/fulcio | 1,932 | defect | 065f2c2dacaa3d05e10d5336ead8d0aa05f40753 | f2251bb05beac5c02c177f3e40965d813beb204e | Tls verification on OIDC issuers | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index f93680b8c..8e5d64e35 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -116,6 +116,11 @@ type OIDCIssuer struct {
// Optional, the contact for the issuer team
// Usually it is a email
Contact string `json:"Contact,omitempty" yaml:"contac... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add back the explanatory comments in GetVerifier that the pull request removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simplify the transport/client block in GetVerifier by conditionally initializing the client only... | null |
sigstore__fulcio__1938 | sigstore/fulcio | 1,938 | defect | a8b363778199a55d9d8a7a54c6da29c26627a893 | a284ead2ce9dca8bfa3c80bbfd1a350067a00e01 | Allow configurable client signing algorithms | #### Summary
This PR adds a --client-signing-algorithms flag to Fulcio to restrict what key/hash combinations are allowed.
Closes https://github.com/sigstore/fulcio/issues/1388
This is based on https://github.com/sigstore/fulcio/pull/1517, but I could not mark it as Ready because done by @tetsuo-cpp .
#### Rele... | diff --git a/cmd/app/grpc.go b/cmd/app/grpc.go
index c2f5358f6..4ec902fe1 100644
--- a/cmd/app/grpc.go
+++ b/cmd/app/grpc.go
@@ -26,6 +26,8 @@ import (
"sync"
"syscall"
+ "github.com/sigstore/sigstore/pkg/signature"
+
"github.com/fsnotify/fsnotify"
"github.com/goadesign/goa/grpc/middleware"
ctclient "github... | 3 | 2 | 2 | [{"id": "G0", "claim": "Include the three RSA-PKCS1v15 algorithms in the default client-signing-algorithms list, to match what Fulcio currently supports.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Either add a comment that the legacy gRPC server... | null |
sigstore__fulcio__1980 | sigstore/fulcio | 1,980 | defect | ae50fc4ecb66fbedee61d8989a37fd8bc94a73bd | 99f30cdab3121614a4e3a056ce2d9e8727433380 | mark principal and issuer class under pkg/identity as deprecated | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/pkg/identity/issuer.go b/pkg/identity/issuer.go
index 5c631ba73..f5f77a232 100644
--- a/pkg/identity/issuer.go
+++ b/pkg/identity/issuer.go
@@ -20,6 +20,7 @@ import (
"github.com/sigstore/fulcio/pkg/config"
)
+// Deprecated: Use ciProviderIssuer instead
type Issuer interface {
// Match checks if th... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request deprecates the wrong declarations: the Issuer and Principal interfaces are not actually being deprecated, and instead every publicly exported method/struct in the per-provider identity packages (codefresh, buildkite, gitlabcom, github) should be marked deprecated with a link to ... | null |
sigstore__fulcio__2111 | sigstore/fulcio | 2,111 | defect | 07b030202d328ddc704d0d6f23ce9cc176a176f8 | d143757cf5739a65646b787bba35dde0ef32edbe | fix: K8s API does not accept unauthorized requests | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index d288aacd7..b1bafbce4 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -51,6 +51,17 @@ type verifierWithConfig struct {
*oidc.Config
}
+type bearerTokenTransport struct {
+ Transport http.RoundTripper
+ Token string
+}
+
+func (t *bea... | 9 | 5 | 1 | [{"id": "G0", "claim": "Make whether or not the Kubernetes token is attached configurable, to avoid the risk of breaking existing deployments.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The extra k8s verifier block in prepare() looks unnecessary... | null |
sigstore__fulcio__2117 | sigstore/fulcio | 2,117 | defect | e5dab2efb6057551591d8757b9bdd8117fcb5db1 | 43394e6380cc4efe6af73c200ade743c5f6c0df0 | fix: vault for enterprise expects only the key name | closes #2118
<!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please us... | diff --git a/cmd/certificate_maker/certificate_maker.go b/cmd/certificate_maker/certificate_maker.go
index 7aa5f5574..75dd1736a 100644
--- a/cmd/certificate_maker/certificate_maker.go
+++ b/cmd/certificate_maker/certificate_maker.go
@@ -80,6 +80,7 @@ func init() {
mustBindEnv("gcp-credentials-file", "GCP_CREDENTIALS_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should revert its changes to the generated protobuf files, which appear to have been produced by a different local protobuf compiler version rather than being part of the intended change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
sigstore__fulcio__2192 | sigstore/fulcio | 2,192 | defect | f1ecac5815252bf375519b5a6c78b2d1bebbd602 | 3bafa865abade53fe71ab700baaca370094dfc61 | add circleci info to fulcio | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/config/identity/config.yaml b/config/identity/config.yaml
index 218e98e64..d614430df 100644
--- a/config/identity/config.yaml
+++ b/config/identity/config.yaml
@@ -17,6 +17,7 @@ define:
- &gitlab-type "gitlab-pipeline"
- &codefresh-type "codefresh-workflow"
- &buildkite-type "buildkite-job"
+ - &... | 3 | 2 | 1 | [{"id": "G0", "claim": "The extension templates reference claim keys containing `.` and `/` with the `{{.'key'}}` syntax, which cannot handle periods in the token claim name; they need to use `{{ index . \"key\" }}` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
sigstore__fulcio__222 | sigstore/fulcio | 222 | defect | 58ec2faf3c7a0227f00a80d764248c034ce0f195 | bbd4c5666ba2cd4a2b04725e563359ef72c42ff4 | Refactor the way we access `Config` | This change starts to refactor the way we interact with theh Fulcio `Config`
to support a forthcoming change to support what I've taken to calling "meta URLs".
I want to allow the public Fulcio instance to support the following *classes*
of Issuer URL, which are exposed for EKS and GKE clusters:
* https://oidc.e... | diff --git a/federation/main.go b/federation/main.go
index f55e705ab..7609a2f2c 100644
--- a/federation/main.go
+++ b/federation/main.go
@@ -57,7 +57,7 @@ func main() {
}
matches = append(matches, globs...)
}
- fulcioConfig := config.FulcioConfig{
+ fulcioConfig := &config.FulcioConfig{
OIDCIssuers: map[stri... | 1 | 1 | 0 | [{"id": "G0", "claim": "ParseConfig should not do work beyond parsing (moving the k8s CA transport logic and eager verifier population into a separate function called after parsing).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sigstore__fulcio__2220 | sigstore/fulcio | 2,220 | defect | 51d916e167276404d153607f076e5a7fb8f30986 | c80773538cc2a1a136461eae38bd1d62c25ff833 | feat: Add support for skipping the email_verified claim on email issuer types | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tags su... | diff --git a/pkg/config/config.go b/pkg/config/config.go
index 71f2e98e8..9a800b844 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -133,6 +133,11 @@ type OIDCIssuer struct {
// This is used to trust the TLS certificate signed by an internal CA when interacting
// with some OIDC providers, preventin... | 1 | 1 | 1 | [{"id": "G0", "claim": "The function used to output the server's configuration (ToIssuers, behind the api/v2/configuration endpoint) should also be updated to carry the new SkipEmailVerification field.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__fulcio__2307 | sigstore/fulcio | 2,307 | defect | b683519248cf9ee45abe22b29b63aa5124f882ba | f30059235bff913c5a497df0307140034007d585 | Include raw subject in certificates |
<!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficient time for discussions to take place. Please use
issue tag... | diff --git a/docs/oid-info.md b/docs/oid-info.md
index 7b4afb425..02f668ed4 100644
--- a/docs/oid-info.md
+++ b/docs/oid-info.md
@@ -52,7 +52,7 @@ Nice-to-haves:
`1.3.6.1.4.1.57264.1.7` is formatted as a DER-encoded string in the SubjectAlternativeName extension, as per RFC 5280 4.2.1.6.
-`1.3.6.1.4.1.57264.1.8` t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The end-to-end tests in pkg/server/grpc_server_test.go should also be updated to cover the new raw-subject certificate extension.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sigstore__fulcio__463 | sigstore/fulcio | 463 | defect | 8bc09cfa82d705005b9981ead4ce65d635169946 | 9029402c939b6f4be96177e1b91826110c6fdc95 | Update Username OIDC flow based on comments | <!--
Thanks for opening a pull request!
Please remember to:
- mention any issue(s) that this PR closes using a closing keyword as well as the issue number, such as "Closes #XYZ" or "Resolves sigstore/repo-name#XYZ", cf.
[documentation](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pul... | diff --git a/pkg/api/api_test.go b/pkg/api/api_test.go
index 6c2a4afd9..138100e22 100644
--- a/pkg/api/api_test.go
+++ b/pkg/api/api_test.go
@@ -75,9 +75,172 @@ func TestMissingRootFails(t *testing.T) {
// oidcTestContainer holds values needed for each API test invocation
type oidcTestContainer struct {
- Signer j... | 5 | 5 | 1 | [{"id": "G0", "claim": "Move the test-container declarations (the `tests` slice) above the `for` loop so the two list items are not at the same indentation level as the loop body, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "R... | null |
sigstore__fulcio__500 | sigstore/fulcio | 500 | defect | 56c15d68101f8aa3d6376bd8da9993a27edcd0cd | 514deeb1be8d974558ef00dbf9d5fbb4e2956193 | Generate larger, compliant serial numbers | UUIDs generate 16 byte serial numbers. Serial numbers can be no larger
than 20 bytes. They also must be positive, giving us 159 bits to
generate a serial number.
This does not affect prod currently, since CA Service generates its own serial numbers. This will affect prod once we switch to using an intermediate CA.... | diff --git a/cmd/app/createca.go b/cmd/app/createca.go
index 34619573b..88d1916ec 100644
--- a/cmd/app/createca.go
+++ b/cmd/app/createca.go
@@ -24,13 +24,12 @@ import (
"crypto/x509/pkix"
"encoding/pem"
"fmt"
- "math"
- "math/big"
"os"
"path/filepath"
"time"
"github.com/ThalesIgnite/crypto11"
+ "github... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the spelling typo in the error message string: \"error generarting serial number\" should be \"error generating serial number\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sigstore__fulcio__558 | sigstore/fulcio | 558 | defect | 05aa4bb8d2b541c78be0833045057c49f643b6a0 | 3bd5424f7952972c1ecf3ff2d62185a3ae8b2296 | Add new `Issuer` and `Principal` abstractions | #### Summary
Adds identity package with `Issuer` and `Principal` abstractions as well as an `IssuerPool` implementation that matches a token against a pool is issuers to authenticate. This work is part of a larger refactor of our identity issuer code as described [here](https://docs.google.com/document/d/1PKAou7wEmE... | diff --git a/pkg/identity/issuer.go b/pkg/identity/issuer.go
new file mode 100644
index 000000000..e83d075d4
--- /dev/null
+++ b/pkg/identity/issuer.go
@@ -0,0 +1,25 @@
+// Copyright 2022 The Sigstore Authors.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except i... | 7 | 7 | 0 | [{"id": "G0", "claim": "Principal.Embed should take a *x509.Certificate pointer and mutate it instead of taking and returning a certificate by value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Match doc comment should be phrased as a statement ra... | null |
sigstore__fulcio__580 | sigstore/fulcio | 580 | defect | b04529f29efdc87e5595bcf73da8d5e40b59d660 | 0462628c60c1e23d7599fdad9ce2c9b061786cde | Refactor challenge verification | #### Summary
The challenge verification logic is sort of mixed up with the OIDC token parsing at the moment. This work makes two changes to this logic to make it a little easier to understand (there is one commit per change so you can read one at a time if desired)
- Break up the OIDC parsing logic and proof of p... | diff --git a/pkg/api/grpc_server.go b/pkg/api/grpc_server.go
index 9a91d82f2..d6e1cd0d1 100644
--- a/pkg/api/grpc_server.go
+++ b/pkg/api/grpc_server.go
@@ -70,7 +70,15 @@ func (g *grpcCAServer) CreateSigningCertificate(ctx context.Context, request *fu
}
}
- principal, err := authorize(ctx, token)
+ // Authentic... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error branch for parsing the authenticated ID token reuses Unauthenticated with the shared invalidCredentials message; to maintain the same status code it should return InvalidArgument there with its own error message, something like invalidIdentityToken, since verification of the token sign... | null |
sigstore__fulcio__583 | sigstore/fulcio | 583 | defect | ffd323d4061cb49fb0e4ed53afe7b70759b58ae6 | f242c25c28a4f8706c3e406751c3d6dd5f35df02 | Add some tests for challenges | #### Summary
Just a smattering of different tests for challenge results. Wanted to increase coverage before migrating into issuer abstraction.
| diff --git a/pkg/challenges/challenges_test.go b/pkg/challenges/challenges_test.go
index e58a0fb65..7ba07a535 100644
--- a/pkg/challenges/challenges_test.go
+++ b/pkg/challenges/challenges_test.go
@@ -31,9 +31,12 @@ import (
"errors"
"fmt"
"net/url"
+ "reflect"
"testing"
+ "unsafe"
"github.com/coreos/go-oid... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test case name `No issuer should faile to render extensions` misspells \"fail\" and should read \"fail\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function `TestEmail` should be renamed to something lik... | null |
sigstore__fulcio__599 | sigstore/fulcio | 599 | defect | 00d7e6666294b98a7622c3ce0489ac15720c470b | 9b0dadfa3588980853acf4e004935c2a6264abc0 | Move github principal to its own package | Remove github workflow logic from challenge result and put it in its own
package.
| diff --git a/pkg/challenges/challenges.go b/pkg/challenges/challenges.go
index b1a23fdc6..c7c374b6a 100644
--- a/pkg/challenges/challenges.go
+++ b/pkg/challenges/challenges.go
@@ -28,6 +28,7 @@ import (
"github.com/sigstore/fulcio/pkg/ca/x509ca"
"github.com/sigstore/fulcio/pkg/config"
"github.com/sigstore/fulcio... | 7 | 6 | 0 | [{"id": "G0", "claim": "The comment in Embed should say \"SubjectAltName\" instead of \"SubjectNameAlt\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a note that the url field is what is used for the subject of the certificate, and what the... | null |
sigstore__fulcio__670 | sigstore/fulcio | 670 | defect | ee8e8f9f5e020ab16e7db69ce37cd7c539219360 | 8d46c56c514f43f7765320cd2b1c8b8328850aec | Add CORS support to HTTP endpoint | This is blocking interactive use of the swagger tool against our production instance.
During this process, I noticed we were still passing some Grpc information in HTTP response headers so this also squelches those.
Signed-off-by: Bob Callaway <bcallaway@google.com>
| diff --git a/cmd/app/http.go b/cmd/app/http.go
index 5a9290774..82fe290cd 100644
--- a/cmd/app/http.go
+++ b/cmd/app/http.go
@@ -26,6 +26,7 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/prometheus/client_golang/prometheus/promhttp"
+ "github.com/rs/cors"
gw "github.com/sigstore/ful... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add a comment noting that cors.Default() configures CORS to accept requests from all domains.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test errors with: parse \"passthrough:///:\\x00\\x00\\x00\\x00\\x00\\x00\\... | null |
sigstore__fulcio__761 | sigstore/fulcio | 761 | defect | 9c19f0826b07d5392a5a246ba9ebbda6ece00263 | 880eb156b53c0b602e3c8331ffb3873190127ca4 | Export Fulcio extension OIDs |
<!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Pleases use
issue tag... | diff --git a/pkg/ca/baseca/baseca_test.go b/pkg/ca/baseca/baseca_test.go
index a3e74b953..b06f57c59 100644
--- a/pkg/ca/baseca/baseca_test.go
+++ b/pkg/ca/baseca/baseca_test.go
@@ -27,6 +27,7 @@ import (
ct "github.com/google/certificate-transparency-go"
"github.com/sigstore/fulcio/pkg/ca"
+ "github.com/sigstore/... | 3 | 3 | 0 | [{"id": "G0", "claim": "Put the Fulcio extension code under its own package so that clients don't need to pull in the rest of the CA package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Apply the suggested package doc comment wording '// X.509 certifi... | null |
sigstore__fulcio__802 | sigstore/fulcio | 802 | defect | f3dd6a92637c3c7f469e3b2acf61d3b7e9c561b2 | 9f1b55e9674da47abf3d879efad7383fc7e65b15 | Change username format, enforce identity format | <!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent time for discussions to take place. Pleases use
issue tags su... | diff --git a/docs/oid-info.md b/docs/oid-info.md
index 6e441a9ae..42ef9b5f4 100644
--- a/docs/oid-info.md
+++ b/docs/oid-info.md
@@ -52,6 +52,11 @@ This contains the `ref` claim from the GitHub OIDC Identity token that contains
the git ref that the workflow run was based upon.
[(docs)][github-oidc-doc]
+### 1.3.6.1... | 2 | 1 | 1 | [{"id": "G0", "claim": "Use govalidator's more thorough email regex instead of the simple inline one in pkg/identity/email, and reuse that same solution in pkg/identity/uri and pkg/identity/username rather than duplicating a regex that is compiled on every call.", "category": "correctness", "verdict": "supported", "pri... | null |
sigstore__fulcio__966 | sigstore/fulcio | 966 | defect | e3bc97f29729934e4b9b326debf2bb4e9f79a77b | d7b4f829c70e28f677058ce3c0c2406414e32a25 | Add custom error logs when communicating with the CA backend | Signed-off-by: Hector Fernandez <hector@chainguard.dev>
<!--
Thanks for opening a pull request! Please do not just delete this text. The three fields below are mandatory.
Please remember to:
- This PR requires an issue. If it is a new feature, the issue should proceed the PR and will have allowed sufficent tim... | diff --git a/pkg/server/error.go b/pkg/server/error.go
index 4102fada5..222b05af4 100644
--- a/pkg/server/error.go
+++ b/pkg/server/error.go
@@ -34,8 +34,11 @@ const (
//nolint
invalidCredentials = "There was an error processing the credentials for this request"
// nolint
- invalidIdentityToken = "There was an er... | 1 | 1 | 0 | [{"id": "G0", "claim": "The logger.Error calls added in the error branches duplicate the log statement that the subsequent handleFulcioGRPCError call already fires, so err should instead be wrapped with the descriptive string (e.g. err = fmt.Errorf(\"Error creating certificate with CA backend: %w\", err)) to keep the s... | null |
siimon__prom-client__146 | siimon/prom-client | 146 | defect | 8cf0bd9d70bd9ed5b782ad6ac18ea58616a9c8bc | c5b65593fd45ad9b25ba1b1193bd3cba126ef3e4 | Compatibility with pushgateway 0.4 | As of pushgateway 0.4, timestamps are no longer accepted when pushing.
See: https://github.com/prometheus/pushgateway/pull/119 | diff --git a/index.d.ts b/index.d.ts
index 8221421b..bd428674 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,6 +1,16 @@
// Type definitions for prom-client
// Definitions by: Simon Nyberg http://twitter.com/siimon_nyberg
+/**
+ * Options pass to Registry.metrics()
+ */
+export interface MetricsOpts {
+ /**
+ * Whe... | 3 | 3 | 1 | [{"id": "G0", "claim": "The PR adds tests for the new metrics({timestamps:false}) behaviour and documents it in the README and CHANGELOG.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In Registry.metrics(), don't use .bind(this) inside the arrow callba... | null |
siimon__prom-client__149 | siimon/prom-client | 149 | defect | 9815ae29e476a2ca19bf18ca0b826a9acc825fcf | c6647eb69f3916e00ab0079b36a8266b1607ff5f | Include invalid values in the error messages | `Error` only expects one argument, the `message`, which means that the invalid values were lost in the second argument. | diff --git a/lib/counter.js b/lib/counter.js
index 1f771e23..8bc55bb5 100644
--- a/lib/counter.js
+++ b/lib/counter.js
@@ -2,6 +2,8 @@
* Counter metric
*/
'use strict';
+
+const util = require('util');
const globalRegistry = require('./registry').globalRegistry;
const type = 'counter';
const isNumber = require(... | 4 | 4 | 1 | [{"id": "G0", "claim": "The pull request should include tests for the changed error-throwing behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The thrown validation errors should be TypeError instead of plain Error.", "category": "design", "verd... | null |
siimon__prom-client__159 | siimon/prom-client | 159 | defect | 426941fbc22433fff932d8f9fb09ebba4818f514 | febc91fc4cad7717ffc3a5cab16dba72ecc1b0a7 | Lazily initialize cluster event listeners | Sorry for the delay, forgot about this. Small change aside from indenting (try [ignoring whitespace](https://github.com/siimon/prom-client/pull/159/files?w=1)).
Fixes #155
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5348cf20..eafd94d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased]
### Breaking
### Changed
+- Don't add event listeners if cluster module is not used.
### Add... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added asserting that requiring the cluster module does not add any 'message' event listeners (e.g. require the file and check process.listenerCount('message') is 0, or use jest.resetModules() with listenerCount assertions before and after).", "category": "testing", "verdict": "s... | null |
siimon__prom-client__255 | siimon/prom-client | 255 | defect | b66755a6f79c7483dc899360eaf9759f330cd420 | f662f041f60d846a5789a7911b91357079d161fb | feat: add option to disable timestamps on defaultMetrics | Some timestamps can now be turned off by the user.
We have a server that does not have the correct time set.
Prometheus ignores these metrics because timestamps are too far in the future.
We currently can not change the server time so we are not collecting these critical metrics.
| diff --git a/lib/defaultMetrics.js b/lib/defaultMetrics.js
index 470ce648..1972b3c8 100644
--- a/lib/defaultMetrics.js
+++ b/lib/defaultMetrics.js
@@ -42,7 +42,13 @@ module.exports = function startDefaultMetrics(config) {
normalizedConfig = { timeout: config };
}
- normalizedConfig = Object.assign({ timeout: 100... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new `timestamps` option should be covered by an added test, the README docs, the TypeScript typings, and the changelog before merge.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new `timestamps` option should be documen... | null |
siimon__prom-client__260 | siimon/prom-client | 260 | defect | b66755a6f79c7483dc899360eaf9759f330cd420 | bf207c82501fb562940dad260e33689f168f5c9f | Split process request and process handles by type | Hello @siimon
In my project I found it quite useful to monitor not only total number of active requests and handles(process._getActiveRequests()/process._getActiveHandles()), but also split them by type.
If you see that number of active handles is growing but you dont know the handle type - it did not help you muc... | diff --git a/lib/metrics/helpers/processMetricsHelpers.js b/lib/metrics/helpers/processMetricsHelpers.js
new file mode 100644
index 00000000..bc79c4b4
--- /dev/null
+++ b/lib/metrics/helpers/processMetricsHelpers.js
@@ -0,0 +1,26 @@
+'use strict';
+
+function aggregateByObjectName(list) {
+ const data = {};
+
+ for (co... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR should not add a separate total gauge alongside the by-type gauge, since querying the by-type gauge without selecting by labels already gives the total.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add a note ... | null |
siimon__prom-client__274 | siimon/prom-client | 274 | defect | e291f4d9463cb6da4728fe082bce3657573a9fb4 | 2f09e828327d7c4cd86774b5496855a89ef72b1b | feat: implement GC metrics collection without native(C++) modules | I've implemented GC monitoring using perf_hooks builtin module (no dependencies on third party native modules).
Unfortunately perf_hooks module does not provide ability to measure heap size before GC, so I do not report amount of garbage collected( like https://github.com/SimenB/node-prometheus-gc-stats does)
But t... | diff --git a/example/server.js b/example/server.js
index 890be2a1..28036672 100644
--- a/example/server.js
+++ b/example/server.js
@@ -56,6 +56,19 @@ if (cluster.isWorker) {
}, 2000);
}
+// Generate some garbage
+const t = [];
+setInterval(() => {
+ for (let i = 0; i < 100; i++) {
+ t.push(new Date());
+ }
+}, 10... | 10 | 9 | 4 | [{"id": "G0", "claim": "Checking process.version with a semver dependency to gate GC metrics may be unnecessary; testing `if (!perf_hooks)` would suffice and drop the new dependency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GC duration should be ex... | null |
siimon__prom-client__314 | siimon/prom-client | 314 | defect | cc9ce780ce59207c48fec79c539de947801348ee | 94c1c2ab9ea2d53393625b79eefa957fd09fa7ea | fix: process_max_fds is process limit, not OS | Fix https://github.com/siimon/prom-client/issues/311
In case anyone is wondering why I don't check for a exact match against the ulimit output, instead of just for "reasonableness", its because there isn't really any way to check the ulimit for the current process other than reading `/proc/self/limits`. Shelling out... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cb51e79a..1b70160b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Changed
+- fix: `process_max_fds` is process limit, not OS (#314)
- Changed `Metric` labelNames & labelValues in TypeSc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The changelog should be updated to mention this change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Most of the split operations could be saved by checking line.startsWith('Max open files') before splitting.", "category"... | null |
siimon__prom-client__329 | siimon/prom-client | 329 | defect | 9aea513ff5ed681a89883c901629492d1a2b1066 | 72e3d70bf8d0c4a5a5f47c363b7645036b32a57a | fix: collect metrics on scrape, not timeout | Only the event loop "lag" is still async, see the in-src notes.
Fixes: https://github.com/siimon/prom-client/issues/180
---
This is a WIP, it lacks tests (though it passes the existing ones).
Open questions:
- should I rearrange the commits? There are some unrelated ones in the PR, I could pull them in... | diff --git a/README.md b/README.md
index 967172ec..bdae7742 100644
--- a/README.md
+++ b/README.md
@@ -51,19 +51,11 @@ In addition, some Node-specific metrics are included, such as event loop lag,
active handles and Node.js version. See what metrics there are in
[lib/metrics](lib/metrics).
-`collectDefaultMetrics` ... | 8 | 7 | 1 | [{"id": "G0", "claim": "The deprecated `timeout` argument to collectDefaultMetrics should be removed entirely, since the next release is a major anyway.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "registerCollector should use `this._collectors.inclu... | null |
siimon__prom-client__374 | siimon/prom-client | 374 | defect | 20ec7028828e3815504719a120990698df30f417 | 0ddf829775722a827f1f3059ac3124d2fcc388de | feat: added support for adding labels to default metrics | I believe this resolves https://github.com/siimon/prom-client/issues/224. I was also needing a mechanism like this for applying labels to worker processes when running in a clustered environment.
I did it a bit more generically than just the suggested `collectDefaultMetrics({includeWorkerId: true})` because our proj... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cf84c33c..f5c9ed44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
- chore: refactor metrics to reduce code duplication
- chore: replace `utils.getPropertiesFromObj` with `Object.values`
- chor... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add an `expect.assertions(n)` call to the new 'should apply labels to metrics when configured' test so the test fails if a bug keeps some of its async assertions from running.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Use ar... | null |
siimon__prom-client__386 | siimon/prom-client | 386 | defect | 5971bcb010a39e6784388375376534940433e420 | 89c531fcc60c7695bd1d1bfbdfb6ff8858fda1a0 | Add function for setting a Histogram to zero for given labels | Since PR #139, histograms are initialized to zero if they do not use any labels - however, there currently is no way to do the same for histograms with labels (without directly accessing the internals of the histogram from the outside, which is of course not a great solution).
Therefore, this PR adds a function that... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fe5d0957..b636fc23 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -46,6 +46,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Added
- feat: exposed `registry.registerCollector()` and `registry.collectors()` methods in TypeScript declaration
+- fea... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add the new zero() function to index.d.ts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a short mention of the new function to the readme.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope"... | null |
siimon__prom-client__446 | siimon/prom-client | 446 | defect | c7b9a9ddd048f6a1921fa1b33c56a5296713aa2b | f10a1d131e4447a7439c3d5e2fa5eb37ff70aec8 | Use Nullish Coalescing Operator in inc() | Calling `.inc(value)` with a dynamic value that may be 0 or 1 will always cause to increase metrics by 1. This is very problematic and may distort the metrics in a non obvious way.
Closes https://github.com/siimon/prom-client/issues/447 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8adcb1c6..3ab68c62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Added
- feat: added `zero()` to `Histogram` for setting the metrics for a given label combination to zero
+- fix: allow t... | 1 | 1 | 0 | [{"id": "G0", "claim": "In dec() the new local variable needs a different name since `value` is also the parameter name, and the statement needs a semicolon at the end.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siimon__prom-client__45 | siimon/prom-client | 45 | defect | dd3ce63bd1719e23fef0d78818d37b487d1432fe | fbe22972ca51d09925765bbe34ffe7ac900a5440 | Remove all default metrics on initalization (#44) | ping @SimenB, a better solution imo, any comments?
| diff --git a/lib/defaultMetrics.js b/lib/defaultMetrics.js
index 6e3b8998..0fbdd6df 100644
--- a/lib/defaultMetrics.js
+++ b/lib/defaultMetrics.js
@@ -9,6 +9,7 @@ var eventLoopLag = require('./metrics/eventLoopLag');
var processHandles = require('./metrics/processHandles');
var processRequests = require('./metrics/pr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The default-metric removal should pass `register.removeSingleMetric` directly to `metricNames.forEach` instead of wrapping it in an anonymous function, and `metrics[metric]` should be read once into a variable and reused.", "category": "maintainability", "verdict": "supported", "priority": "P2",... | null |
siimon__prom-client__485 | siimon/prom-client | 485 | defect | d00dbd55736595887ae77f1431e4326296e3c5ec | 7423ba1bf4de8417349af8beabfd4c2d0a237d9a | Use `process.getActiveResourcesInfo()` in process metrics | We should use `process.getActiveResourcesInfo()` here because it is a
public alternative of the private APIs `process._getActiveHandles()` and
`process._getActiveRequests()`.
Refs: https://nodejs.org/api/process.html#processgetactiveresourcesinfo
Signed-off-by: Darshan Sen <darshan.sen@postman.com> | diff --git a/lib/defaultMetrics.js b/lib/defaultMetrics.js
index 10e5906f..07dd05c8 100644
--- a/lib/defaultMetrics.js
+++ b/lib/defaultMetrics.js
@@ -11,6 +11,7 @@ const processMaxFileDescriptors = require('./metrics/processMaxFileDescriptors')
const eventLoopLag = require('./metrics/eventLoopLag');
const processHan... | 4 | 4 | 3 | [{"id": "G0", "claim": "Since the metric requires Node.js v17.3.0, the collect loop could use `Object.hasOwn(data, resource)` instead of `Object.hasOwnProperty.call(data, resource)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests need ... | null |
siimon__prom-client__549 | siimon/prom-client | 549 | defect | 038291156017fe130b1fa4e74f028b356112890c | 4234088c28f504b0e7aa0778e4d43f8b83061e37 | perf: improve performance of rendering metrics to Prometheus string | Rendering histograms, particularly in `getMetricAsPrometheusString`, repeats most of the work of label rendering over and over and over and over again on the same strings. This is because we currently fully copy all labels out onto all buckets and then format them all separately as if they weren't the same labelset to ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f1218536..09937496 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,8 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Changed
+- Refactor histogram internals and provide a fast path for rendering metrics to
+ Prometheus strings when ther... | 3 | 1 | 0 | [{"id": "G0", "claim": "Mutating a labels object after it has been rendered to a Prometheus string once is silently ignored by the memoization, which may be undesirable behaviour.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use a WeakMap instead of... | null |
siimon__prom-client__556 | siimon/prom-client | 556 | defect | 84fae8405064dfd021595aa3c8e73dc5585e066e | be890667292310811a927de2b003d3f155a5845d | fix: correct exemplar formating | Fix exemplar formating
- Fixed improper formating of exemplars
- Added snapshot test for exemplars
Fixes https://github.com/siimon/prom-client/issues/554 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f1218536..3bf01503 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
### Changed
+- Fix exemplar formating, improve test suite
- Refactor `escapeString` helper in `lib/registry.js` to improve ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable should not be declared empty above the loop; declare it directly with its assigned value here (nit: use `let fullMetricLine = ...` at this line).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siimon__prom-client__597 | siimon/prom-client | 597 | defect | 798b9c8e91f561217b03aa789b8cbdca070fde9c | 3f615d65065abca58dfc0b5e6cfd7f185bca4389 | pushgateway: adds configuration for omitting job name | intended for compatibility with gravel gateway (https://github.com/sinkingpoint/prometheus-gravel-gateway)
see issue https://github.com/siimon/prom-client/issues/502
| diff --git a/README.md b/README.md
index 9125dd37..a0d0684d 100644
--- a/README.md
+++ b/README.md
@@ -581,6 +581,16 @@ gateway = new client.Pushgateway('http://127.0.0.1:9091', {
});
```
+Some gateways such as [Gravel Gateway](https://github.com/sinkingpoint/prometheus-gravel-gateway) do not support grouping by jo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Instead of mutating the shared `instance` by setting `requireJobName` on it (and flipping it back), the new test should create a new Pushgateway instance configured with `requireJobName: false`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siimon__prom-client__633 | siimon/prom-client | 633 | defect | 564e46724e258704df52ab329a7be833aaed4b69 | 0417f9138472974bf47956879b01ac7420ade389 | Improve error message on labels | This fix ensures consumers of the library get more insights into which labels are causing an error to occur.
With the new error message it is easier for a developer to debug what happened in the case where you accidentally pass in a bad argument.
If `getLabels` gets called like this:
```js
getLabels(['label1',... | diff --git a/lib/util.js b/lib/util.js
index 8054c1bb..077a769f 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -53,7 +53,9 @@ exports.getLabels = function (labelNames, args) {
}
if (labelNames.length !== args.length) {
- throw new Error('Invalid number of arguments');
+ throw new Error(
+ `Invalid number of ar... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error message would be even more helpful if it included the number of arguments and label names in parentheses and joined the values with ', ' instead of ','. (suggestion block)", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
siimon__prom-client__693 | siimon/prom-client | 693 | defect | 49d6e76bfaa30a53ba16fd83286dd4a7ae090110 | 3934784050e91ce7a14559a4fff32dadc73ecf17 | Add worker support | Similar to cluster support, but also allows for the 'main' thread to not be responsible for aggregation. The user can opt to send all aggregation to a dedicated worker, thereby avoiding crowding up the main thread, as is the problem in #628.
This answers #401 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6df11452..069cc563 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,10 +25,12 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Show the invalid name in the validation errors
- perf: Improve performance of registry defaultLabels during metric processi... | 4 | 3 | 0 | [{"id": "G0", "claim": "In example/cluster.js the express app instantiation (`express()`) should be moved out of the block of `require` statements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In example/worker.js the express app instantiati... | null |
sile__eetf__16 | sile/eetf | 16 | defect | e9f451b9a266f1ce021a88aac47b6551959fec9c | 2df859d8e11a4007b1336a9f0f68d0d7b342eb62 | Use SMALL_ATOM_UTF8_EXT and ATOM_UTF8_EXT for safer atom encoding | Fix #13 | diff --git a/src/codec.rs b/src/codec.rs
index f06dd3c..bdb62b3 100644
--- a/src/codec.rs
+++ b/src/codec.rs
@@ -628,13 +628,13 @@ impl<W: io::Write> Encoder<W> {
return Err(EncodeError::TooLongAtomName(x.clone()));
}
- let is_ascii = x.name.as_bytes().iter().all(|&c| c < 0x80);
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `as u16` cast on the ATOM_UTF8_EXT length write could truncate the length if `x.name.len()` exceeds `u16::MAX`; the author should use `u16::try_from(x.name.len())` and handle the error case properly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
sile__nojson__3 | sile/nojson | 3 | defect | 637ffbed7d8dc2a16b5f8c7446e33aff6ee42442 | 0639dd2045fad7d5343422e1c1152e771cd9df6c | Fix infinity recursion when displaying floats | # Copilot Summary
This pull request includes changes to improve the handling of floating-point numbers in JSON formatting and adds new tests for these improvements. The most important changes are:
Improvements to JSON formatting:
* [`src/display_json.rs`](diffhunk://#diff-306616aca861614390fc20c0ea561ac604a27... | diff --git a/src/display_json.rs b/src/display_json.rs
index 2dfcbb5..c6a65a4 100644
--- a/src/display_json.rs
+++ b/src/display_json.rs
@@ -275,13 +275,21 @@ impl DisplayJson for std::num::NonZeroUsize {
impl DisplayJson for f32 {
fn fmt(&self, f: &mut JsonFormatter<'_, '_>) -> std::fmt::Result {
- self... | 2 | 2 | 1 | [{"id": "G0", "claim": "The updated implementation should be ensured to handle non-finite float values correctly by outputting \"null\", and whether this behavior fully meets JSON formatting requirements should be reviewed.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {... | null |
silenceper__wechat__869 | silenceper/wechat | 869 | defect | 54f08cbd737d462cf1f7a635a4bc5b3d2b08fd0b | 327aa08fab7c46dc76a18e8e774ce49aeb180e18 | feat(redis): 优化配置语义并增强超时与连接池能力,同时保持向后兼容 | ### 关联问题
- #868
### 变更说明
本 PR 对 Redis 配置进行了增强与语义修正,同时确保向后兼容:
- 统一配置结构体标签格式,将混用的 yaml / yml 统一为 yaml,提升一致性与可维护性;
- 修复 opts.MaxActive 定义但未被使用的问题,并在兼容逻辑中正确接入该字段;
- 修复歧义字段命名
- MaxIdle → MinIdleConns;
- MaxActive → PoolSize。
- 完善 Redis 连接与超时控制能力
- MaxRetries;
- DialTimeout;
- R... | diff --git a/cache/redis.go b/cache/redis.go
index ba9063237..dcc64331c 100644
--- a/cache/redis.go
+++ b/cache/redis.go
@@ -17,14 +17,24 @@ type Redis struct {
// RedisOpts redis 连接属性
type RedisOpts struct {
- Host string `json:"host" yml:"host"`
- Username string `json:"username" ... | 9 | 9 | 4 | [{"id": "G0", "claim": "PoolTimeout handling is inconsistent with the other timeout fields: positive values are converted but special values 0 and -1 get no explicit handling, so 0 may not trigger the library's default behavior as the field comment intends.", "category": "correctness", "verdict": "supported", "priority... | null |
silentsokolov__django-admin-rangefilter__27 | silentsokolov/django-admin-rangefilter | 27 | defect | 6d0954e985b1570e2668a614a8666ddb5d1f0c2a | 07272b7746418c8a8a9fc27b653426e4e4ae1034 | Avoid loading admin_static in templates under Django>=1.10 | - `admin_static` [loses functionality in Django 1.10](https://github.com/django/django/blob/stable/1.10.x/django/contrib/admin/templatetags/admin_static.py)
- Fixes #26 | diff --git a/rangefilter/templates/rangefilter/date_filter.html b/rangefilter/templates/rangefilter/date_filter.html
index 439e005..2041188 100644
--- a/rangefilter/templates/rangefilter/date_filter.html
+++ b/rangefilter/templates/rangefilter/date_filter.html
@@ -1,4 +1,4 @@
-{% load i18n admin_static %}
+{% load i18n... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test for the static_or_admin_static template tag should follow the approach of Django's own admin_views test — testing the template tag directly instead of rendering a template, which does not require a TEMPLATES setting in the test configuration.", "category": "testing", "verdict": "sup... | null |
silius-rs__silius__194 | silius-rs/silius | 194 | defect | 93de80ec494ad86b4070de5ba3881131ebb56a31 | 6df081af5fa8d4efcf997d47f3af6abdd02683d5 | Add example | Add some examples about simple account
These are some codes I used to debug. Maybe it would be helpful to add into examples. | diff --git a/Cargo.lock b/Cargo.lock
index d93ed8ef..44af5967 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,6 +69,63 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "alloy-primitives"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66f73f11dcfbf8bb763d88fb1d... | 4 | 4 | 1 | [{"id": "G0", "claim": "The locally defined Request struct in deposit.rs is unnecessary because it already exists in lib.rs and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The env variable and variable name should be seed_p... | null |
silius-rs__silius__195 | silius-rs/silius | 195 | defect | 33dc6e686fd2fff4b26e0c5ceadce20e3cf5e739 | 916fc33f9a66a9e3397c64c82c54ed609b73fe72 | Add support ws RPC API and selectable http and ws api | ## Changes
- Introduced logic to allow for selectable HTTP and WebSocket endpoints in the json-rpc server.
- Updated CLI arguments to handle `--http` and `--ws` flags for enabling HTTP and WebSocket respectively.
- Modified `JsonRpcServer` instantiation to accept `http` and `ws` boolean flags.
## Related
https... | diff --git a/Cargo.lock b/Cargo.lock
index d93ed8ef..63b47338 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4347,6 +4347,7 @@ dependencies = [
"serde_json",
"silius-grpc",
"silius-primitives",
+ "tokio",
"tonic",
"tower",
"tower-http",
diff --git a/bin/silius/src/cli.rs b/bin/silius/src/cli.rs
index 5a658d80... | 4 | 4 | 0 | [{"id": "G0", "claim": "The value-taking `--http`/`--ws` flags are awkward to disable (`--ws false`); the PR should follow the flag practices of other clients and control the servers by the presence of the flags.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
silverbulletmd__silverbullet__1386 | silverbulletmd/silverbullet | 1,386 | defect | 57c4317b49d4b81ba727d338de6ca9fbe64cf6ef | 3e6e32c08dee8e51236d26a4af9b26193da502f6 | Utility function to handle empty query results and templates | More general implementation of #1359
This also documents current workaround for #1343 | diff --git a/website/Space Lua.md b/website/Space Lua.md
index cba31673b4..e700a2f3be 100644
--- a/website/Space Lua.md
+++ b/website/Space Lua.md
@@ -57,6 +57,8 @@ A new syntax introduced with Space Lua is the `${lua expression}` syntax that yo
For example: 10 + 2 = ${adder(10, 2)} (Alt-click, or select to see th... | 4 | 1 | 1 | [{"id": "G0", "claim": "The lead-in sentence of the Lua implementation notes section should be reworded so it covers the Differences, Planned and Not planned headers that now follow it, e.g. 'Here are some of the expected differences and planned and not planned features:'.", "category": "documentation", "verdict": "unc... | null |
silverbulletmd__silverbullet__1391 | silverbulletmd/silverbullet | 1,391 | defect | b93f622e9b3426ffc6b8fb4c4e8ff6cf736ac69c | df42dcebd399e4e6f6f42096afd0708738942489 | Order strings in queries using collation algorithm | Configurable with queryCollation, default value maintains old behaviour. Added schema, example settings, and documentation to query page.
Close: #614
Close: #1316 | diff --git a/Library/Std/Config.md b/Library/Std/Config.md
index 16361590b2..a80dbdb7a6 100644
--- a/Library/Std/Config.md
+++ b/Library/Std/Config.md
@@ -217,4 +217,25 @@ config.define("vim", {
},
additionalProperties = false
})
+
+config.define("queryCollation", {
+ description = "Configure string ordering in... | 2 | 1 | 0 | [{"id": "G0", "claim": "Fetch the whole queryCollation object with a single client.config.get call (using an empty object as the default value) and read from that, instead of making three separate config.get calls.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
simbody__simbody__223 | simbody/simbody | 223 | defect | cbcd6b8f592e86b71e88dddaee63103de3a92a53 | ae5beb93b1db73e8b8d85f9ed5a77d588814e06d | Use gcc/clang demangler for NiceTypeName. | @sherm1 , as a follow-up to our name mangling conversation, I found a way to demangle right in NiceTypeName.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_demangling.html, https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/a01696.html
I don't assume you want to accept this PR. I don't know ho... | diff --git a/SimTKcommon/include/SimTKcommon/internal/common.h b/SimTKcommon/include/SimTKcommon/internal/common.h
index 07f0a405d..7bb4d341f 100644
--- a/SimTKcommon/include/SimTKcommon/internal/common.h
+++ b/SimTKcommon/include/SimTKcommon/internal/common.h
@@ -733,11 +733,18 @@ static const bool Is64BitPlatform = s... | 5 | 5 | 5 | [{"id": "G0", "claim": "NiceTypeName::name() returns the heap-allocated demangled string without freeing it, so every call leaks memory, which sherm1 says cannot stand.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The non-standard C demangling cod... | null |
simbody__simbody__307 | simbody/simbody | 307 | defect | 9344b875e2c50f91a3e565ad64e6d2d81aa85fd6 | 0fb615a3d897f0d5f35cba349c7536f9e2332276 | deconstructPathRelativeToSWD | Addresses fixes to deconstructPathname (addresses issue #264). Introduces a new function deconstructPathRelativeToSWD that finds the absolute path to a given path name relative to a specified working directory (swd).
| diff --git a/SimTKcommon/include/SimTKcommon/internal/Pathname.h b/SimTKcommon/include/SimTKcommon/internal/Pathname.h
index 6fd728d77..876907292 100644
--- a/SimTKcommon/include/SimTKcommon/internal/Pathname.h
+++ b/SimTKcommon/include/SimTKcommon/internal/Pathname.h
@@ -87,6 +87,22 @@ namespace SimTK {
*/
class Si... | 17 | 13 | 4 | [{"id": "G0", "claim": "The lines this PR adds to Pathname.h are indented with tabs, which the project forbids and its tab check rejects.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "CONTRIBUTING.md's tab guidance is misnamed and incomplete: t... | null |
simbody__simbody__426 | simbody/simbody | 426 | defect | 2b654027934d0ec05ff049b48a57c29f997cdc14 | f6c748bb45ab5c71d766510cd4bfa94fec82f34b | Add ResetOnCopy<T> and ReinitOnCopy<T> mixins | Add ResetOnCopy<T> and ReinitOnCopy<T> mixins. These are used on data members to provide resetting to default values on copy construction or copy assignment, or reinitialization to specified values.
These can be used on built-in types, pointers, containers, smart pointers, Simbody resource index objects, and almost any... | diff --git a/SimTKcommon/BigMatrix/include/SimTKcommon/internal/MatrixBase.h b/SimTKcommon/BigMatrix/include/SimTKcommon/internal/MatrixBase.h
index 797c2b718..823a3751f 100644
--- a/SimTKcommon/BigMatrix/include/SimTKcommon/internal/MatrixBase.h
+++ b/SimTKcommon/BigMatrix/include/SimTKcommon/internal/MatrixBase.h
@@ ... | 7 | 5 | 2 | [{"id": "G0", "claim": "NullOnCopyUniquePtr, which ResetOnCopy<unique_ptr<T>> supersedes, should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "For class types, copy assignment invokes T::reset()/clear() while copy construction def... | null |
simbody__simbody__428 | simbody/simbody | 428 | defect | 86ccaba77ade0ff68fd35d7bbfadcbd1252359b8 | 59998efa24b7510c2069f73a6aa75359f7c1d9a6 | Allow kinematics evaluation separate from position and velocity stages | This PR adds some flexibility to make state cache entries have more subtle dependencies than just realization stages, then uses that new capability to allow early evaluation and time independence of position and velocity kinematics (that is, mapping generalized coordinates to spatial pose and generalized speeds to spat... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f03d9446..9a75a8904 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,14 @@ of the current working directory (thanks to Carmichael Ong). See [Issue #264](ht
* Added the ability to parallelize forces, robustness/performance improvements
to ParallelExecutor, mutex... | 6 | 3 | 0 | [{"id": "G0", "claim": "The new StageVersion doc comment in Stage.h misspells \"uninitialized\" as \"unintialized\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The advanced State accessors (getUStageVersion, getCacheEntryInfo, etc.) should be ... | null |
simbody__simbody__469 | simbody/simbody | 469 | defect | 5259e3441732d8c3fb4b36797fcfdcda8c5aa8f8 | 5734ab7fb28dee6c6f9397b4d6a71c4698dddc57 | Add State::isConsistent() method. | This method compares if two states have the same number of subsystems, state variables, constraints, etc. I use such a method in OpenSim's StatesTrajectory class ([see PR](https://github.com/opensim-org/opensim-core/pull/730)).
Notes:
1. The function checks that the number of multipliers matches in both states, even t... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c28d3f45a..ff2abaf8a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -63,6 +63,8 @@ to ParallelExecutor, mutex state lock.
out right. [PR #461](https://github.com/simbody/simbody/pull/461)
* Added helper class IteratorRange to use range-based for loops with a pair of
... | 4 | 4 | 3 | [{"id": "G0", "claim": "The test should not be run only in Release mode relying on the absence of stage checks; it should also run in Debug, verifying that the expected exception (StageTooLow) is thrown when the state is not realized far enough.", "category": "testing", "verdict": "supported", "priority": "P1", "scope"... | null |
simbody__simbody__493 | simbody/simbody | 493 | defect | e3ebe69fe2a7741403bc5f3824bd55aecfc921cf | 8e37e172f9daddef307a431da814f773e33ef70e | Remove global variables in IpOpt interface - issue #175 | Removes the global variables in IpLapackSolverInterface.cpp. Makes `ipiv` a member variable of `IpLapackSolverInterface`. IpOpt can now be used in multiple concurrent threads. I have tested this with OpenSim inverse kinematics and with the Simbody test suit without encountering any problem.
| diff --git a/SimTKmath/Optimizers/src/IpOpt/IpLapackSolverInterface.cpp b/SimTKmath/Optimizers/src/IpOpt/IpLapackSolverInterface.cpp
index 4294ce54b..6f9282fbc 100644
--- a/SimTKmath/Optimizers/src/IpOpt/IpLapackSolverInterface.cpp
+++ b/SimTKmath/Optimizers/src/IpOpt/IpLapackSolverInterface.cpp
@@ -20,8 +20,6 @@ names... | 2 | 2 | 1 | [{"id": "G0", "claim": "The newly added `delete [] ipiv_` should also set `ipiv_ = nullptr;`, because the other three freed pointers are reassigned right after but ipiv_ is not.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new `ipiv_` member d... | null |
simbody__simbody__540 | simbody/simbody | 540 | defect | 3a3bba2de139e230ed4d73ace0005956a252bd26 | 509e2e3ae80b4e8fe5d631e712424c247cc9656b | CMAES treat init_stepsize as Vector | #520
Change init_stepsize so that it can be assigned as a Vector valued property. | diff --git a/SimTKmath/Optimizers/src/CMAESOptimizer.cpp b/SimTKmath/Optimizers/src/CMAESOptimizer.cpp
index 8d7e84d29..5ecf2e264 100644
--- a/SimTKmath/Optimizers/src/CMAESOptimizer.cpp
+++ b/SimTKmath/Optimizers/src/CMAESOptimizer.cpp
@@ -159,15 +159,13 @@ double* CMAESOptimizer::init(cmaes_t& evo, SimTK::Vector& res... | 6 | 6 | 2 | [{"id": "G0", "claim": "The Unicode sigma (σ) characters added to the init_stepsize documentation may not look right when rendered by doxygen.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making init_stepsize Vector-only is backwards-incompatibl... | null |
simbody__simbody__833 | simbody/simbody | 833 | defect | 066ddeee67767c55b27629d2e581f8335477179d | 06889b809f1ab832e6eeba076cf87dacb163f288 | LLT (Cholesky) Factorization | Resolves #819
@sherm1 could you take a look?
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/simbody/simbody/833)
<!-- Reviewable:end -->
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba7a82aec..bacd75fb5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ PRs and issues that were included in a particular release.
3.9 (in development)
--------------------
+* Add LLT (Cholesky) factorization
* Add quaternion multiplication (Hamilton product... | 1 | 1 | 0 | [{"id": "G0", "claim": "Cosmetic cleanup before merging: beautify or plain-ify the FactorLLT comment blocks in FactorLLT.cpp, remove the trailing spaces at end of line in FactorLLT.cpp and FactorLLTTest.cpp, and rename the FactorLLTRep workspace member from `lu` to `llt` (or maybe just `l`).", "category": "maintainabil... | null |
simd-everywhere__simde__1072 | simd-everywhere/simde | 1,072 | defect | fefc7857ff3e785b988a61a8f5f3c5bd5eb24342 | 99f29097646fc4ad39e0be8b061724225dcdc1ac | aes: initial implementation of most aes instructions | Hi!
Regarding issue #45
I've adapted AES encryption/decryption instructions using algorithm from this project https://github.com/dhuertas/AES
The code is straight forward with a very basic optimization using a lookup table for the most time consuming function.
The only modification I did to the original impleme... | diff --git a/meson.build b/meson.build
index 12e4c0e43..732d92afc 100644
--- a/meson.build
+++ b/meson.build
@@ -384,6 +384,7 @@ if not meson.is_subproject()
install_headers(
files([
+ 'simde/x86/aes.h',
'simde/x86/avx512.h',
'simde/x86/avx2.h',
'simde/x86/avx.h',
diff --git a/simde/... | 13 | 12 | 9 | [{"id": "G0", "claim": "The file-scope private variables and functions (gmult, the softaes tables and helpers) should get a _simde_ prefix added to their names to reduce the chance of colliding with users' code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
simd-everywhere__simde__1173 | simd-everywhere/simde | 1,173 | defect | 416091ebdb9e901b29d026633e73167d6353a0b0 | e7c25b1aad9bb436112f8e1fd7558c3a4d9082c7 | arm: fix some neon2rvv intrinsic function error | 1. For vqdmlal_s16/s32, the doubling result maybe overflow, so need to use vqaddq_s16/32 to saturate it. As the same with vqdmlsl_s16/32.
2. The vrdmulh family function need to use vqadd saturating function to avoid the doubling result overflow. But now I just use rvv intrinsic function to replace the RISCV_V_NATIVE... | diff --git a/simde/arm/neon/qdmlal.h b/simde/arm/neon/qdmlal.h
index b23ab6fca..dd3ecefe3 100644
--- a/simde/arm/neon/qdmlal.h
+++ b/simde/arm/neon/qdmlal.h
@@ -71,7 +71,8 @@ simde_vqdmlal_s16(simde_int32x4_t a, simde_int16x4_t b, simde_int16x4_t c) {
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
return vqdmlal_s16(... | 1 | 1 | 1 | [{"id": "G0", "claim": "In addition to whatever changes are needed to make CI pass, the pull request also needs additional test cases that demonstrate why the changes were needed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
simd-everywhere__simde__1194 | simd-everywhere/simde | 1,194 | defect | bc37d4b3d9ac9e647c7eda5aee9fda07ce840b3f | 47d4df9a452371ca815e960feb1e236e0b41e216 | Fix qdmlal instructions | qdmlal instructions were implemented without saturation. This has been fixed by utilising existing SIMDe saturating mult and add instructions. Unit tests have been updated to test for all possible saturation cases.
- Fix qdmlal, qdmlal_n, qdmlal_lane, qdmlal_high, qdmlal_high_n and qdmlal_high_lane
- Update unit t... | diff --git a/simde/arm/neon/qdmlal.h b/simde/arm/neon/qdmlal.h
index fe96b0fc8..121d7eed8 100644
--- a/simde/arm/neon/qdmlal.h
+++ b/simde/arm/neon/qdmlal.h
@@ -27,12 +27,9 @@
#if !defined(SIMDE_ARM_NEON_QDMLAL_H)
#define SIMDE_ARM_NEON_QDMLAL_H
-#include "add.h"
-#include "mul.h"
-#include "mul_n.h"
-#include "mov... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's test failures must be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
simd-everywhere__simde__1309 | simd-everywhere/simde | 1,309 | defect | f6f8f3283066d9eb839ef54bd6b1f691e46209c3 | 5b80c60e2224239aba78d8b97fd33fe268a3ca13 | x86: clamp variable shifts | Fixes #1306 | diff --git a/simde/x86/avx2.h b/simde/x86/avx2.h
index 6085e5860..4a43a18bc 100644
--- a/simde/x86/avx2.h
+++ b/simde/x86/avx2.h
@@ -4438,30 +4438,29 @@ simde__m256i
simde_mm256_sll_epi16 (simde__m256i a, simde__m128i count) {
#if defined(SIMDE_X86_AVX2_NATIVE)
return _mm256_sll_epi16(a, count);
- #elif defin... | 10 | 10 | 10 | [{"id": "G0", "claim": "Reverting the pull request's fix to mm_sra_pi32 does not make the new test cases fail, so the new tests do not confirm the fix for that function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Reverting the pull request's fix to ... | null |
simd-everywhere__simde__1347 | simd-everywhere/simde | 1,347 | defect | 0b7e610a8fb447d250f60fb19bd10d048c65e342 | f8440a2857745a10914cbcaa37baa5dcd667de51 | x86: Added some bmi1 and bmi2 intrinsics | Hi @mr-c, I tried to follow the already established structure , using x86/clmul.h as a template. There are three added x86 intrinsics present in the "bmi1" and "bmi2" feature sets of the ISA (as reported by lscpu on Linux). I bundled them into a new file (x86/bmi.h) and added SIMDE-prefixed feature test macros. Just... | diff --git a/meson.build b/meson.build
index eada6046e..3ad79f7b4 100644
--- a/meson.build
+++ b/meson.build
@@ -501,6 +501,7 @@ if not meson.is_subproject()
'simde/x86/avx512.h',
'simde/x86/avx2.h',
'simde/x86/avx.h',
+ 'simde/x86/bmi.h',
'simde/x86/clmul.h',
'simde/x86/fma.h',
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new simde/x86/bmi.h copyright header is left with a bare 'Copyright:' line, so the author should add their name and contact email.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SVE2-bitperm paths in simde/x86/bmi.h... | null |
simd-everywhere__simde__1360 | simd-everywhere/simde | 1,360 | defect | 83fdacb51046facb132f25438fe288c71e06817a | 6411a985e0757dd66aa7684d9ba742ad1b45c042 | Fix some SSE on NEON bugs | - `_mm_min_pd`/`_mm_max_pd` had incorrect NaN behavior. The implementations of the four min/max functions were all slightly different; they now use the same logic. The NaN bug also applied to other architectures.
- `_mm_round_pd` wasn't doing half-to-even rounding in `_MM_FROUND_TO_NEAREST_INT` mode. It now uses the... | diff --git a/simde/x86/sse.h b/simde/x86/sse.h
index b547b93dd..d2357fa52 100644
--- a/simde/x86/sse.h
+++ b/simde/x86/sse.h
@@ -3236,27 +3236,20 @@ simde_mm_min_ps (simde__m128 a, simde__m128 b) {
a_ = simde__m128_to_private(a),
b_ = simde__m128_to_private(b);
- #if defined(SIMDE_FAST_NANS) && defin... | 1 | 1 | 0 | [{"id": "G0", "claim": "Restore the SIMDE_VECTOR_SUBSCRIPT_OPS fallback case in simde_mm_min_ps that the pull request removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
simd-everywhere__simde__137 | simd-everywhere/simde | 137 | defect | 6f7307e826abb290d0c4e531a087e52dbc7b83ad | 5c895ece5ffdf41e3a047f03a20ad9a4823cae73 | Add simde_mm512_shuffle_epi8 and simde_mm512_cmpeq_epi8_mask to avx512bw.h | Add simde_mm512_shuffle_epi8() and simde_mm512_cmpeq_epi8_mask() functions.
Remarks:-
The shuffle_epi8 intrinsics are my favourite SIMD instructions.
You probably won't like the double AVX and SSE fallbacks.
They are essential for me as without the SSE fallback for shuffle my software runs **FIFTY** times more sl... | diff --git a/simde/x86/avx512bw.h b/simde/x86/avx512bw.h
index 99325d5e5..5d8e758a9 100644
--- a/simde/x86/avx512bw.h
+++ b/simde/x86/avx512bw.h
@@ -236,6 +236,76 @@ simde_mm512_adds_epu16 (simde__m512i a, simde__m512i b) {
# define _mm512_adds_epu16(a, b) simde_mm512_adds_epu16(a, b)
#endif
+SIMDE__FUNCTION_ATTRI... | 3 | 3 | 1 | [{"id": "G0", "claim": "The disabled `#if 0` test-vector generation section in test_simde_mm512_cmpeq_epi8_mask in test/x86/avx512bw.c should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's mask values should use the unsign... | null |
simd-everywhere__simde__1380 | simd-everywhere/simde | 1,380 | defect | b928608952151614f596d67aba25523a73ec2e5d | 5449c9536773f8d4cbcbccd2daba5eacae885d09 | x86 f16: implement rounding support | Makes `_mm_cvtps_ph`/`_mm256_cvtps_ph` respect the rounding mode argument. Assumes `_MM_FROUND_CUR_DIRECTION` is always half-to-even, which isn't strictly correct, but is already assumed by various other functions.
Enables the rounding mode tests and adds a few more. There should be no behavior changes for the round... | diff --git a/simde/simde-f16.h b/simde/simde-f16.h
index f1755c321..f1d9184dc 100644
--- a/simde/simde-f16.h
+++ b/simde/simde-f16.h
@@ -175,20 +175,29 @@ SIMDE_DEFINE_CONVERSION_FUNCTION_(simde_uint16_as_float16, simde_float16, u
#endif
#endif
+#define SIMDE_F16_ROUND_TO_NEAREST 0x00
+#define SIMDE_F16_ROUN... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR's f16c tests fail on MSVC 2015 (19.00) and 2017 (19.16) on AppVeyor: the conversion rounds qNaN to -qNaN, so r0[1] is -512 where 32256 (qNaN) is expected, tripping assertions in test/x86/f16c.c.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"},... | null |
simd-everywhere__simde__1395 | simd-everywhere/simde | 1,395 | defect | d542caac7d475390a9f0613fabe2bde446e389fa | 3bb50526dd06d413bd058c9e46c1c3b71a2f79aa | x86 avx512: add more reduce functions | This commit adds support for more reduce functions on avx512. The test data was generated using a machine which supports the corresponding instruction (Intel(R) Xeon(R) Gold 6430). | diff --git a/simde/x86/avx512/reduce.h b/simde/x86/avx512/reduce.h
index c007572e2..ae4530e31 100644
--- a/simde/x86/avx512/reduce.h
+++ b/simde/x86/avx512/reduce.h
@@ -349,6 +349,251 @@ simde_mm512_reduce_min_ps(simde__m512 a) {
# define _mm512_reduce_min_ps(a) simde_mm512_reduce_min_ps((a))
#endif
+SIMDE_FUNCTIO... | 3 | 3 | 0 | [{"id": "G0", "claim": "Please indent the new simde_mm512_reduce_add_epi32 function like the other functions in the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The add loop in simde_mm512_reduce_add_epi32 lacks the SIMDE_VECTORIZE_REDUC... | null |
simd-everywhere__simde__259 | simd-everywhere/simde | 259 | defect | ec0603469127fa16db0ac67f51ae957a35cb58b4 | b9a2187c5c3b9c904217e8acce2600b4709d89a7 | avx512f: added the implementation for mm512_{mask,maskz}_cvtsepi64_epi32 | I don't understand why this fails on appveyor, please review this. | diff --git a/simde/x86/avx512f.h b/simde/x86/avx512f.h
index b0f4623e9..f35ce8f8b 100644
--- a/simde/x86/avx512f.h
+++ b/simde/x86/avx512f.h
@@ -3534,6 +3534,59 @@ simde_mm512_cvtsepi64_epi32 (simde__m512i a) {
#define _mm512_cvtsepi64_epi32(a) simde_mm512_cvtsepi64_epi32(a)
#endif
+SIMDE__FUNCTION_ATTRIBUTES
+si... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace every occurrence of INT32_C(-2147483648) in the generated test code with INT32_MIN, because the constant 2147483648 does not fit in a signed 32-bit int, so the compiler treats it as unsigned and negating it stays unsigned (the MSVC warning).", "category": "correctness", "verdict": "suppo... | null |
simdjson__simdjson__1274 | simdjson/simdjson | 1,274 | defect | 265db2e533d4cdc8f7548717b911a92b6a7c9ec9 | 0b92a729ecea88a73454042d47ba455eefa6c559 | fix segfault in numberparsing #1273 | Closes #1273 | diff --git a/include/simdjson/generic/numberparsing.h b/include/simdjson/generic/numberparsing.h
index 934e57e39b..098a90b0e4 100644
--- a/include/simdjson/generic/numberparsing.h
+++ b/include/simdjson/generic/numberparsing.h
@@ -42,6 +42,8 @@ simdjson_really_inline double to_double(uint64_t mantissa, uint64_t real_ex... | 2 | 1 | 0 | [{"id": "G0", "claim": "In parse_double() the overflow check for the exponent (exponent outside [smallest_power, largest_power]) should be moved, not duplicated as a second overflow computation, near where the PR now has it.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"... | null |
simdjson__simdjson__1615 | simdjson/simdjson | 1,615 | defect | 7ca016652ee83a25db54ff2edb903e83166938d6 | 279366b2221ef43374c52c349f37e5b6e0bf9a02 | Add JSON Pointer for On Demand | This implements JSON pointer for On Demand which works like for DOM. Currently, I have two tests that seem to work and I messed around a little bit and the JSON pointer also work as expected. I will add more tests to test for success as well as failure (with the corresponding expected error).
A few remarks on the ... | diff --git a/include/simdjson/generic/ondemand/array-inl.h b/include/simdjson/generic/ondemand/array-inl.h
index c0fc42ce6e..973c396eed 100644
--- a/include/simdjson/generic/ondemand/array-inl.h
+++ b/include/simdjson/generic/ondemand/array-inl.h
@@ -93,6 +93,50 @@ simdjson_really_inline simdjson_result<size_t> array::... | 10 | 9 | 4 | [{"id": "G0", "claim": "The JSON pointer functions should not use the simdjson_really_inline attribute; it only makes sense for core functions and may be much less necessary, and even possibly negative, here.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":... | null |
simdjson__simdjson__1618 | simdjson/simdjson | 1,618 | defect | a4803d50c5dd7ae1e14aed03e02da35b21c1c6f9 | af2aaa8e2ecb8976163140950ea262ec2f2b7b8c | Update basic.md to document JSON pointer for On Demand. | Update basic.md.
Fixes #1616 | diff --git a/doc/basics.md b/doc/basics.md
index 5a8a8a4a57..2dc6c88084 100644
--- a/doc/basics.md
+++ b/doc/basics.md
@@ -522,8 +522,11 @@ Your input string does not need any padding. Any string will do. The `validate_u
JSON Pointer
------------
-The simdjson library also supports [JSON pointer](https://tools.ietf... | 13 | 10 | 1 | [{"id": "G0", "claim": "The documentation of multiple at_pointer calls should be a clear note that at_pointer rewinds at the start of each call, invalidates previously parsed values, and requires consuming the values between calls, rather than the current confusing wording (whether as a note or a broken example).", "ca... | null |
simdjson__simdjson__1667 | simdjson/simdjson | 1,667 | defect | 47a62db55936e29e1966a26a9aadb5f28237ae37 | 0506be7da78e958fe3740fe98293f5fbd9a2eab2 | Parse numbers inside strings | This was requested via #1481.
I have added a check if a number starts with the quote character `"`, so that we can move the char pointer accordingly (same way as when checking for negative sign at beginning of number). I have also added the quote character `"` as a valid ending character when parsing numbers. I think... | diff --git a/include/simdjson/generic/numberparsing.h b/include/simdjson/generic/numberparsing.h
index 1abe524df9..e0f380619f 100644
--- a/include/simdjson/generic/numberparsing.h
+++ b/include/simdjson/generic/numberparsing.h
@@ -513,6 +513,9 @@ simdjson_really_inline error_code parse_number(const uint8_t *const, W &w... | 7 | 5 | 5 | [{"id": "G0", "claim": "Keep the existing parse_double/parse_unsigned/parse_integer code unchanged because it is easy to introduce new tricky bugs there, and instead duplicate it as separate *_in_string functions that check for a final quote.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
simdjson__simdjson__1695 | simdjson/simdjson | 1,695 | defect | 06643fc9f5f1019c49dc4564cf56a8c47010ad15 | 10caf9cf86a8dc4b0172006b54f36e8c7c2b4d3f | Provide current location in JSON input | Fixes #1685
This provides the `current_location()` method which is called on document instances. It returns a `simdjson_result<const char *>` instance to the current location in the JSON input. It also checks if the location is within bounds (before last structural index). If out of bounds, it returns an `INDEX_OUT_... | diff --git a/include/simdjson/generic/ondemand/document-inl.h b/include/simdjson/generic/ondemand/document-inl.h
index 3a1dd74a37..14bf6cbeae 100644
--- a/include/simdjson/generic/ondemand/document-inl.h
+++ b/include/simdjson/generic/ondemand/document-inl.h
@@ -20,6 +20,10 @@ inline std::string document::to_debug_stri... | 8 | 5 | 3 | [{"id": "G0", "claim": "The bounds check in current_location should compare with >= rather than merely >, as lemire expected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "current_location should check that the parser is not null for safety (is_ali... | null |
simdjson__simdjson__2026 | simdjson/simdjson | 2,026 | defect | 92174c927dd2a0e4943ac7ccbcec2bdb4f8daedd | 6312513013f86014261bd0562cc1cc2004e035d0 | Add pretty print for DOM | Add pretty print for DOM with documentation.
Currently, the indentation is fixed to four spaces.
Close #1329.
| diff --git a/doc/dom.md b/doc/dom.md
index 1fc7bd76fe..8cc9c287f4 100644
--- a/doc/dom.md
+++ b/doc/dom.md
@@ -105,7 +105,7 @@ Once you have an element, you can navigate it with idiomatic C++ iterators, oper
with the `size()` method.
* **Checking an Element Type:** You can check an element's type with `element.type... | 5 | 4 | 1 | [{"id": "G0", "claim": "Brace the single-statement body of the `for` loop in `pretty_formatter::print_indents` (the suggestion adds `{` after the loop header).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Brace the body of the `if (indent_step... | null |
simdjson__simdjson__2219 | simdjson/simdjson | 2,219 | defect | 49e231b634abffcecb255bdbec1e2b893ab37690 | d3c8f5d2fecada89ee8bb2fe739918e43273ec00 | tag_invoke based custom types | Now you can use tag_invoke to add a custom type or a group of custom types.
A follow up on [Daniel Lemire's tweet](https://x.com/lemire/status/1815544018979504145), here's a proposal on how we would use [tag_invoke](https://wg21.link/P1895) in simdjson.
There might be some small details like which namespace to us... | diff --git a/include/simdjson/generic/ondemand/value-inl.h b/include/simdjson/generic/ondemand/value-inl.h
index 9f321aa523..c7c20dc89c 100644
--- a/include/simdjson/generic/ondemand/value-inl.h
+++ b/include/simdjson/generic/ondemand/value-inl.h
@@ -467,7 +467,15 @@ simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTAT... | 4 | 4 | 4 | [{"id": "G0", "claim": "The C++20 feature test should use the __cpp_concepts macro instead of a raw __cplusplus version comparison.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "One of the added __cplusplus guards mistakenly uses >= where > was int... | null |
simdjson__simdjson__2221 | simdjson/simdjson | 2,221 | defect | 49e231b634abffcecb255bdbec1e2b893ab37690 | 1845f91fdeeea9236fe3bd2885a51931a2afaeb3 | Added the functionality to convert dom::object and dom::array to dom element. | closed: #2218
Added the functionality to convert dom::object and dom::array to dom element.
Add the function "inline operator element() const noexcept" to the dom::object and dom::array classes, and add test for it. | diff --git a/include/simdjson/dom/array-inl.h b/include/simdjson/dom/array-inl.h
index 8cca452f41..6a29ef8553 100644
--- a/include/simdjson/dom/array-inl.h
+++ b/include/simdjson/dom/array-inl.h
@@ -123,6 +123,10 @@ inline simdjson_result<element> array::at(size_t index) const noexcept {
return INDEX_OUT_OF_BOUNDS;
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The two newly added test-invocation lines in tests/dom/basictests.cpp are not indented like the previous and following lines and should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
simdjson__simdjson__2228 | simdjson/simdjson | 2,228 | defect | a76e7788047fadb32dfacf5000a76035873e1835 | 6464edbd26a147976c2dc6642da96c6a25635a3b | Making `tag_invoke` to support `ondemand::document` as well + docs | I did mention a problem with the design of `document::get() &&` (in #2227) that is a bit weird for me; I can't go back and just simply use non-const `document::get()` anymore because that might break user's codes.
Now we instead of this:
```C++
namespace simdjson {
// unique_ptr<T>
template <typename T>
aut... | diff --git a/doc/basics.md b/doc/basics.md
index 0fcd9f820d..6999d08a3c 100644
--- a/doc/basics.md
+++ b/doc/basics.md
@@ -788,6 +788,25 @@ for (ondemand::object points : parser.iterate(points_json)) {
Adding support for custom types
----------------------
+There are 2 main ways provided by simdjson to deserialize ... | 10 | 10 | 2 | [{"id": "G0", "claim": "Fix the typos and grammar in item 3 of the doc's 'Differences between the two' list: 'Another different' -> 'Another difference', 'std::stirng' -> 'std::string', and reword 'there are a lot of time you would need to simply lie to the compiler' to 'you may need to catch exceptions so'.", "categor... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.