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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spiceai__spiceai__9416 | spiceai/spiceai | 9,416 | defect | efcc1949cf7012d48262062dfa51d24d815bb9f7 | 3093a0f2eec08b14ac36f36c4d0d8eb5a65ccd66 | Ensure we query one and only one partition per request | ## 📝 Summary
<!-- What does this PR change? Why is it necessary? Keep it concise. -->
## 🔗 Related
<!-- Link to relevant issues, discussions, or other PRs. Use "Closes #123" to auto-close issues. Omit if none. -->
## 🚨 Breaking Changes
<!-- Describe breaking changes if any, or delete this section. -->... | diff --git a/crates/object_store_occ/src/state.rs b/crates/object_store_occ/src/state.rs
index 531f9b84de1..f6d652ceb42 100644
--- a/crates/object_store_occ/src/state.rs
+++ b/crates/object_store_occ/src/state.rs
@@ -77,6 +77,16 @@ pub struct ObjectState<T> {
_marker: PhantomData<T>,
}
+impl<T> std::fmt::Debug ... | 17 | 7 | 2 | [{"id": "G0", "claim": "Use tracing::error! instead of eprintln! for the scheduler partition-store initialization failure, for consistency with the codebase's tracing-based logging conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When... | null |
spiceai__spiceai__9549 | spiceai/spiceai | 9,549 | defect | 00bd85dc96d0c963a7793529e22a3b52d26021d2 | 2659a8d44fcff4b6721b994f47fb1d7312728372 | Make `Refresh::refresh_sql` more robust to alterations over time. | ## 📝 Summary
- Introduces a structured `RefreshSQL` type that decomposes user `refresh_sql` into validated parts (columns, WHERE predicates, LIMIT) instead of storing it as a raw `Option<String>`
- Stores cluster partition filters as separate `Vec<Expr>` on `RefreshSQL` rather than wrapping user SQL in a subquer... | diff --git a/crates/runtime/src/accelerated_table/mod.rs b/crates/runtime/src/accelerated_table/mod.rs
index 9c35fdae9a3..f5cc5cb616e 100644
--- a/crates/runtime/src/accelerated_table/mod.rs
+++ b/crates/runtime/src/accelerated_table/mod.rs
@@ -994,23 +994,64 @@ impl AcceleratedTable {
Arc::clone(&self.synchro... | 7 | 6 | 5 | [{"id": "G0", "claim": "LIMIT parsing in parse_refresh_sql uses parse::<usize>().ok() and falls back to None, so a user-provided LIMIT can be silently dropped (or changed on overflow) from the refresh SQL that is later executed; the reviewer asks to reject any LIMIT that is not a non-negative integer literal instead.",... | null |
spiceai__spiceai__9571 | spiceai/spiceai | 9,571 | defect | 3ea99b9680bb9711ad4d98a5df114eb9ec627645 | 6f113bb0d040340979935e8ca6ab1c117694a4ec | Support partitioning in Arrow accelerator | ## 📝 Summary
- Enable partitioning for `acceleration.engine: arrow`. Essentially just a `Memtable` per partition.
- Helpful for getting started with Accelerations in distributed query. | diff --git a/crates/runtime-acceleration/src/engine.rs b/crates/runtime-acceleration/src/engine.rs
index 3693cb6c858..499627d90b4 100644
--- a/crates/runtime-acceleration/src/engine.rs
+++ b/crates/runtime-acceleration/src/engine.rs
@@ -17,6 +17,7 @@ use std::fmt::Display;
pub enum Engine {
#[default]
Arrow,... | 8 | 6 | 5 | [{"id": "G0", "claim": "The new `Engine::PartitionedArrow` variant is not handled in the exhaustive `match acceleration_settings.engine` in `crates/runtime/src/dataaccelerator/spice_sys.rs`, which will cause a compile error; the fix is to add an arm mapping it to `UnsupportedEngineSnafu` like `Engine::Arrow`.", "catego... | null |
spiceai__spiceai__9620 | spiceai/spiceai | 9,620 | defect | bd42a0e210b7e0388be66381ba0cd28c7e6d229e | 836303b468035ee8b4842b598801b47aa68583ea | Refactor and clean up code across multiple crates | This pull request improves the reliability and maintainability of upsert operations in the Cayenne table provider by ensuring that insert records are properly persisted in the catalog, so that upserted rows remain visible after a restart. It also refines test infrastructure and code hygiene by adding targeted `#[allow(... | diff --git a/bin/spiced/src/lib.rs b/bin/spiced/src/lib.rs
index d06db394668..642ea9a4d40 100644
--- a/bin/spiced/src/lib.rs
+++ b/bin/spiced/src/lib.rs
@@ -405,6 +405,22 @@ pub async fn run(args: Args) -> Result<()> {
match resolved_cluster_config {
Ok(resolved_cluster_config) => {
+ // Vali... | 3 | 3 | 1 | [{"id": "G0", "claim": "The scheduler-mode error message references `scheduler.state_location`, but the actual spicepod key is `runtime.scheduler.state_location`, so the error text should be updated so users can find the correct configuration field.", "category": "documentation", "verdict": "supported", "priority": "P2... | null |
spiceai__spiceai__9623 | spiceai/spiceai | 9,623 | defect | bd42a0e210b7e0388be66381ba0cd28c7e6d229e | 2733163bee5970890fee19fd87181daef845a849 | fix(DF): Lazily initialize BatchCoalescer in RepartitionExec to avoid schema type mismatch | ## 📝 Summary
PR fixes the following error and adds integration test
- https://github.com/spiceai/spiceai/issues/9621
> PASS [ 3.160s] (12/32) runtime::integration_models models::search::test_rrf_search_duckdb_acceleration
## 🔗 Related
<!-- Link to relevant issues, discussions, or other PRs. Use "Clos... | diff --git a/Cargo.lock b/Cargo.lock
index 6924aacb539..8796e6ac215 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5293,7 +5293,7 @@ dependencies = [
[[package]]
name = "datafusion"
version = "52.2.0"
-source = "git+https://github.com/spiceai/datafusion.git?rev=77306e949c80d4b786368b0287496aa34a4daf55#77306e949c80d4b7... | 1 | 1 | 1 | [{"id": "G0", "claim": "The placeholder DataFusion fork revision pinned in [patch.crates-io] must be updated to the real SHA (from spiceai/datafusion#135) before merging.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
spiceai__spiceai__9664 | spiceai/spiceai | 9,664 | defect | 303ce0e4acea6da2632069b8362ca47dd354e6ba | 8999774175ccd5540be5ec3390435a7f06ddbc9c | fix(s3): Fix metadata column schema mismatches in projected queries | ## 📝 Summary
Fixes `Input field name X does not match with the projection expression Y`/ schema mismatches when querying datasets with `metadata` columns enabled:
- correctly apply projection when location-based predicate returns no files
- when projection contains selected metadata columns only w/o data column... | diff --git a/Cargo.lock b/Cargo.lock
index edd77b0e25d..99cb803f98e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5294,7 +5294,7 @@ dependencies = [
[[package]]
name = "datafusion"
version = "52.2.0"
-source = "git+https://github.com/spiceai/datafusion.git?rev=757c891b9f6f2e52f9307ed428df848b96970cc9#757c891b9f6f2e52... | 4 | 2 | 1 | [{"id": "G0", "claim": "The datafusion patch dependency rev (b628223f) must be updated once spiceai/datafusion#136 is merged.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The empty-result projection logic uses full_schema.field(i), which panic... | null |
spiceai__spiceai__9667 | spiceai/spiceai | 9,667 | defect | c00a779c728fa81364a9752352ed5df183b484fe | 83f076f39c964e2bcecf1ecd3c9cc0c228786644 | Refactor Cayenne IDs to use UUIDv7 strings | ## Summary
- switch Cayenne table, partition, snapshot, insert, and delete-file identifiers to UUIDv7 strings
- adapt trunk-era catalog and test code to the string-based IDs, including concurrent create-table handling
- add the schema invariant needed for concurrent table creation to return a single table id
## Testin... | diff --git a/crates/cayenne/src/catalog.rs b/crates/cayenne/src/catalog.rs
index 576c4e85c36..2eaeb467fb1 100644
--- a/crates/cayenne/src/catalog.rs
+++ b/crates/cayenne/src/catalog.rs
@@ -212,44 +212,44 @@ pub trait MetadataCatalog: Send + Sync {
async fn list_table_names(&self) -> CatalogResult<Vec<String>>;
... | 3 | 2 | 2 | [{"id": "G0", "claim": "commit_compaction builds a multi-statement transaction by interpolating table_id and new_snapshot_id into SQL instead of using parameter binding, which can break if IDs ever contain quotes and makes the code harder to audit for SQL injection; prefer parameterized statements in an explicit transa... | null |
spiceai__spiceai__9698 | spiceai/spiceai | 9,698 | defect | a80fd2b6d2de4637158cf57898bcc12155074447 | 57e6c3cc8cd1252c112583d889f285fbb567525a | Show an error on a shared acceleration file with snapshots enabled | ## 📝 Summary
Closes https://github.com/spiceai/spiceai/issues/9517
Show an error in case when snapshots are enabled for multiple datasets that share same acceleration file:
Duckdb:
```
DuckDB doesn't support snapshots for shared acceleration. \
Datasets [{datasets}] share the same file '{path}'. \
Con... | diff --git a/crates/runtime/src/dataaccelerator/snapshots.rs b/crates/runtime/src/dataaccelerator/snapshots.rs
index 66211f054e0..8b5e647b22f 100644
--- a/crates/runtime/src/dataaccelerator/snapshots.rs
+++ b/crates/runtime/src/dataaccelerator/snapshots.rs
@@ -109,7 +109,9 @@ pub(super) async fn download_snapshot_if_ne... | 9 | 1 | 1 | [{"id": "G0", "claim": "On snapshot-path validation failure, load_datasets only logs the error and returns without updating the affected datasets' status, which can leave them stuck in Initializing and make the runtime appear to hang with no per-dataset error surfaced; consider setting the dataset statuses to error_wit... | null |
spiceai__spiceai__9708 | spiceai/spiceai | 9,708 | defect | 3b2dfe4c14865931834afc4b7b78c25143c22f07 | 0d1707107fa8400e8b99ff020294faf1aa1ad777 | Update datafusion and related packages to version 52.3.0 | - Bump version of datafusion and its related packages from 52.2.0 to 52.3.0.
- Update git source references to the new commit hash for datafusion.
- Adjust dependencies in Cargo.lock and Cargo.toml accordingly. | diff --git a/Cargo.lock b/Cargo.lock
index 3e7bee97e8c..00e0554fa0e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5293,8 +5293,8 @@ dependencies = [
[[package]]
name = "datafusion"
-version = "52.2.0"
-source = "git+https://github.com/spiceai/datafusion.git?rev=19572a274fb2907a9a0f45cebb50668af907e1e0#19572a274fb290... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR title/description says DataFusion is bumped to 52.3.0 but the manifest's DataFusion version constraints elsewhere remain at 52.0.0 (caret), with the real bump happening via the git patch rev and Cargo.lock; consider updating the PR description (or the version constraints) to avoid confusi... | null |
spiceai__spiceai__9754 | spiceai/spiceai | 9,754 | defect | b1fbaf175f2fed6e6f6eb86948a55adc5e815419 | 374d1bca50f55ceadec4cbfb005e26e78d5ae4a6 | Route FlightSQL statement updates through QueryBuilder | ## Problem
The FlightSQL `CommandStatementUpdate` and `PreparedStatementUpdate` handlers called `session.create_physical_plan()` directly, bypassing the runtime's DELETE/UPDATE interception in `Query::run()`. This caused DML operations (DELETE, UPDATE) via FlightSQL `execute_update` to fail with:
```
This featur... | diff --git a/crates/runtime/src/flight/flightsql/prepared_statement_update.rs b/crates/runtime/src/flight/flightsql/prepared_statement_update.rs
index 955da87d6a3..efc05df2557 100644
--- a/crates/runtime/src/flight/flightsql/prepared_statement_update.rs
+++ b/crates/runtime/src/flight/flightsql/prepared_statement_updat... | 6 | 5 | 3 | [{"id": "G0", "claim": "QueryBuilder::run() errors are mapped to Status::internal, turning client-side planning/validation failures into gRPC INTERNAL errors; map query::Error with the shared Flight helper (handle_query_error) so DataFusion errors return appropriate codes like invalid_argument/unavailable.", "category"... | null |
spiceai__spiceai__9813 | spiceai/spiceai | 9,813 | defect | b73ef9f9f06585aea4a7ab7d6957eaabf4602984 | 974834230990d6e958f7386967d81d0dab0edca6 | Fix ADBC Connector build and test | ## Changes
Fix ADBC Connector build and integration tests.
### Build Fix
- Adds `adbc` to `spiced` default features so the runtime compiles with the ADBC connector enabled.
### Test Refactoring
- **Pre-create tables before runtime starts**: Integration tests now use `rusqlite` to create and populate SQLite tables ... | diff --git a/crates/runtime/Cargo.toml b/crates/runtime/Cargo.toml
index 93380f955ce..bf4ed2a0bbb 100644
--- a/crates/runtime/Cargo.toml
+++ b/crates/runtime/Cargo.toml
@@ -247,6 +247,7 @@ tempfile.workspace = true
test-framework = { path = "../test-framework" }
tiberius.workspace = true
tokio = { workspace = true, ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test helper performs synchronous SQLite I/O inside #[tokio::test] async tests, which can block a Tokio worker thread and cause test flakiness under load; the setup should run via tokio::task::spawn_blocking (or tokio-rusqlite) with errors propagated to the test Result.", "category": "per... | null |
spiceai__spiceai__9876 | spiceai/spiceai | 9,876 | defect | de2d0e8e1c0fb57325cd203da804d5ee05849b7d | b552f027f809835fe4e66db9427973ec650e945d | Fix Flight/FlightSQL filter precedence and mutable query consistency | ## Summary
- fix Flight / FlightSQL pushed-down SQL generation so combined filters preserve precedence while keeping `TableProviderFilterPushDown::Inexact`
- invalidate full runtime caches after mutable writes / DML and preserve ordered synchronous query results used by validation consumers
- add local distributed vali... | diff --git a/bin/spiced/src/lib.rs b/bin/spiced/src/lib.rs
index 889ed44274d..57c5c3ab824 100644
--- a/bin/spiced/src/lib.rs
+++ b/bin/spiced/src/lib.rs
@@ -55,6 +55,19 @@ use yaml::Value;
mod spiced_tracing;
mod tls;
+const SPICED_DO_PUT_RATE_LIMIT_ENABLED_ENV: &str = "SPICED_DO_PUT_RATE_LIMIT_ENABLED";
+
+fn env_... | 6 | 4 | 3 | [{"id": "G0", "claim": "num_executors() parses SPIDAPTER_NUM_EXECUTORS with no upper bound, so a typo or unexpected env value could reserve thousands of ports, create many directories and spawn an excessive number of spiced processes; the value should be validated/capped (e.g. 1..=N) with a clear error when out of rang... | null |
spiceai__spiceai__9899 | spiceai/spiceai | 9,899 | defect | 6823f04c91ca3f979730528a5efa65033217e244 | 1938c8ab58e895b81eb73cc057125ff52c986c3a | feat: Add custom auth header support for GraphQL connector | ## Summary
Adds the ability to specify a custom authentication header name in the GraphQL connector via the `graphql_auth_header` spicepod parameter. When set alongside `graphql_auth_token`, the token is sent using the specified header name instead of the default `Authorization: Bearer <token>` header.
This is us... | diff --git a/Cargo.lock b/Cargo.lock
index 7954f1bb55d..5a2da38c19f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4118,6 +4118,7 @@ dependencies = [
"datafusion",
"linkme",
"paste",
+ "reqwest 0.12.24",
"runtime",
"snafu",
"token_provider",
diff --git a/crates/cayenne/src/provider/mod.rs b/crates/cayenne/src... | 9 | 9 | 6 | [{"id": "G0", "claim": "write_data and write_streaming_data invalidate only the plans cache, so cached query results for the table can still be replayed after a write when SQL results caching is enabled; invalidate via self.caching().invalidate_for_table (or both caches).", "category": "correctness", "verdict": "suppor... | null |
spiceai__spiceai__9900 | spiceai/spiceai | 9,900 | defect | 6823f04c91ca3f979730528a5efa65033217e244 | 2261f3d4f400e0b7d81a88a1c96fe0777a1a6d6b | Fix ADBC Catalog | ## 📝 Summary
1. Add `adbc_options` (Reuse `build_db_options` from data connector)
2. Properly initialize `BigQueryDialect` (Reuse `dialect_for_driver` from data connector) | diff --git a/crates/runtime/src/catalogconnector/adbc.rs b/crates/runtime/src/catalogconnector/adbc.rs
index 1e702b95ba8..3131bfccad2 100644
--- a/crates/runtime/src/catalogconnector/adbc.rs
+++ b/crates/runtime/src/catalogconnector/adbc.rs
@@ -30,6 +30,7 @@ use datafusion::catalog::{CatalogProvider, SchemaProvider};
... | 5 | 4 | 2 | [{"id": "G0", "claim": "The unit tests in the same file still call build_db_options with 3 arguments after the signature gained the driver_options parameter, so as-is the code will fail to compile, and the new driver_options parsing behavior is left untested; update the tests to the new signature and add coverage for d... | null |
spiceai__spiceai__9917 | spiceai/spiceai | 9,917 | defect | 6a5ca00eb63d46e8561315dbeb1ac679483be75c | a2f8edde7e700dacc1a6a912ce3f1f716d4b9487 | chore: Update iceberg-rust fork to v0.9 | ## Changes
Update spiceai/iceberg-rust dependency from v0.8.0 to v0.9.0 (commit 6c9b9709c572fe40484ec00aa969d1f62f2b0fe7 on branch spiceai-52).
### Key API migration changes
- **Storage model**: Replace Extensions/FileIO::from_path with StorageFactory/FileIOBuilder
- **Credential types**: Move AwsCredential, AwsCred... | diff --git a/Cargo.lock b/Cargo.lock
index 5a2da38c19f..cef56221f80 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1580,6 +1580,7 @@ dependencies = [
"aws-smithy-runtime-api",
"fundu",
"iceberg",
+ "iceberg-storage-opendal",
"object_store",
"reqwest 0.12.24",
"secrecy",
@@ -2835,6 +2836,16 @@ dependencies = [... | 15 | 9 | 7 | [{"id": "G0", "claim": "Add unit test coverage for build_opendal_operator's URL parsing and root-prefix handling (especially s3a://bucket/prefix/... and file:///...), since regressions there would silently break Hadoop catalog discovery.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
spiceai__spiceai__9944 | spiceai/spiceai | 9,944 | defect | 5ff62b30dfa2c581da3635e12f6f039cdfe21b08 | 75165c5a502ddb6a8dcc73d5bf448d2492e56659 | Add integration tests for `spice-cloud-client`, against dev. | ## 📝 Summary
Basic CRUD integration tests for `spice-cloud-client`.
### Usage
```bash
export SPICE_SPICEAI_TOKEN=$(curl -s -X POST https://dev.spice.ai/api/oauth/token \
-H "Content-Type: application/json" \
-d '{
"client_id": "$SPICE_SCP_CLIENT_ID",
"client_secret": "$SPICE_SCP_CLIENT_SECRET... | diff --git a/.github/actions/management-login/action.yml b/.github/actions/management-login/action.yml
new file mode 100644
index 00000000000..0f3010d60ef
--- /dev/null
+++ b/.github/actions/management-login/action.yml
@@ -0,0 +1,50 @@
+name: "Management Login"
+description: "Fetches a Spice OAuth access token and expo... | 5 | 4 | 2 | [{"id": "G0", "claim": "Tests create apps and only clean up at the end, so if an intermediate assert panics the shared dev environment will accumulate orphaned apps/secrets/deployments; the tests should be restructured (e.g. a guard or catch_unwind pattern) to guarantee cleanup.", "category": "testing", "verdict": "unc... | null |
spidernet-io__egressgateway__686 | spidernet-io/egressgateway | 686 | defect | d262da393b0c4c1c26f40c56f27c146887a0fb7e | 5d95150baead9907415dbd775b052d23c76227f3 | the crd default value does not take effect | fix #657 | diff --git a/charts/crds/egressgateway.spidernet.io_egressclusterpolicies.yaml b/charts/crds/egressgateway.spidernet.io_egressclusterpolicies.yaml
index 9f3b2654c..6e3718d98 100644
--- a/charts/crds/egressgateway.spidernet.io_egressclusterpolicies.yaml
+++ b/charts/crds/egressgateway.spidernet.io_egressclusterpolicies.... | 3 | 3 | 1 | [{"id": "G0", "claim": "There is no E2E test to confirm all expected values of a CRD, such as the new default egressIP values this PR introduces.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added cluster-policy mutate hook is misspelled egr... | null |
spiffe__go-spiffe__100 | spiffe/go-spiffe | 100 | defect | c5e5002f574e39ca6f9562ee6f08b4ec2d6e87d4 | 80e1f6a0c02bf801c4692ced31ad3e3f33aee741 | Add unit tests for Federated Bundle Fetching | Signed-off-by: martincapello <m.a.capello@gmail.com> | diff --git a/v2/bundle/spiffebundle/bundle_test.go b/v2/bundle/spiffebundle/bundle_test.go
index 4275019ed..9edc12609 100644
--- a/v2/bundle/spiffebundle/bundle_test.go
+++ b/v2/bundle/spiffebundle/bundle_test.go
@@ -49,7 +49,7 @@ var (
filePath: "testdata/spiffebundle_missing_kid.json",
err: "spiffebundle... | 14 | 14 | 1 | [{"id": "G0", "claim": "FetchBundle should probably fail when WithWebPKIAuth is set along with WithSPIFFEAuth instead of one silently overriding the other.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The option should probably be named WithWebPKIRoots... | null |
spiffe__go-spiffe__108 | spiffe/go-spiffe | 108 | defect | e32b6d36f62702248a79493a44b50c165933bcee | 807079f8ae2f3438dd93f8c75ca1842ffae13bcc | Refactored WatchBundle tests to use the fake bundle endpoint. | Signed-off-by: martincapello <m.a.capello@gmail.com> | diff --git a/v2/federation/fetch_test.go b/v2/federation/fetch_test.go
index 3f2e3135a..121e60d68 100644
--- a/v2/federation/fetch_test.go
+++ b/v2/federation/fetch_test.go
@@ -20,7 +20,7 @@ func TestFetchBundle_WebPKIRoots(t *testing.T) {
ca := test.NewCA(t)
bundle := spiffebundle.FromX509Bundle(ca.Bundle(td))
-... | 4 | 4 | 1 | [{"id": "G0", "claim": "The test should set the refresh hint using the more idiomatic expression `time.Second` instead of `1000 * time.Millisecond`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should set the second refresh hint using... | null |
spiffe__go-spiffe__123 | spiffe/go-spiffe | 123 | defect | 38192b2823d8d83d26e5bfbe199141b92b7cd0c3 | 950b59cc3ba8d8a507b6ef6ea9350f68ae2bf3d5 | add tests for workload api client | Happy to be more exhaustive if necessary.
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com> | diff --git a/v2/internal/test/ca.go b/v2/internal/test/ca.go
index 911d5d813..8e466a5df 100644
--- a/v2/internal/test/ca.go
+++ b/v2/internal/test/ca.go
@@ -27,6 +27,8 @@ type CA struct {
parent *CA
cert *x509.Certificate
key crypto.Signer
+ jwtKey crypto.Signer
+ jwtKid string
}
type CertificateOption i... | 27 | 25 | 9 | [{"id": "G0", "claim": "The fake ValidateJWTSVID should use jwtsvid.ParseAndValidate instead of jwtsvid.ParseInsecure.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "makeX509SVIDs would be more ergonomic if it took the CA first and a variadic list o... | null |
spiffe__go-spiffe__131 | spiffe/go-spiffe | 131 | defect | 7072de6f1f772b4f08bc6afed53d1393c3d814ea | 202a0a4f724790b71f1e5f088e41fc252995e1b2 | Reject Workload API responses missing the bundle | The Workload API specification says that clients SHOULD reject messages that with unset fields in the SVID message. The bundle is part of that message. The current code allows an empty bundle field. In particular, this means that the FetchX509Context and FetchX509Bundles calls can return empty bundle contents.
Consi... | diff --git a/v2/workloadapi/client.go b/v2/workloadapi/client.go
index 32b3fa2a6..90b4f8e83 100644
--- a/v2/workloadapi/client.go
+++ b/v2/workloadapi/client.go
@@ -4,6 +4,7 @@ import (
"context"
"crypto/x509"
"errors"
+ "fmt"
"time"
"github.com/spiffe/go-spiffe/v2/bundle/jwtbundle"
@@ -73,16 +74,12 @@ func... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new test comments read \"Assert that the call\" and never say the call fails; they should be completed to say the call fails.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The require.EqualError calls pass td as msgAnd... | null |
spiffe__go-spiffe__15 | spiffe/go-spiffe | 15 | defect | c2a6010d0a446868425082ab4b070d09fd0c3c16 | e7bd62c7773f664a8a8ea04589151ceac0e50a73 | Add tls helpers | This PR:
* Adds TLS helpers for callback and mTLS config
* Moves OID-specific stuff to dedicated file in uri package
* Adds spiffe-specific helpers to validate chains and match spiffe ids
The exact validation methodology for SPIFFE is still in flux, so leaving a TODO there where we can hook it in once we're ready | diff --git a/spiffe/spiffe.go b/spiffe/spiffe.go
index 4e0ad3300..d87bb2b85 100644
--- a/spiffe/spiffe.go
+++ b/spiffe/spiffe.go
@@ -2,28 +2,37 @@ package spiffe
import (
"crypto/x509"
- "crypto/x509/pkix"
- "encoding/asn1"
-)
+ "fmt"
-var OidExtensionSubjectAltName = asn1.ObjectIdentifier{2, 5, 29, 17}
-var Oid... | 1 | 1 | 0 | [{"id": "G0", "claim": "The function comments should follow the Godoc convention, beginning with the name of the function they document.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spiffe__go-spiffe__150 | spiffe/go-spiffe | 150 | defect | 181b65666d8cfc1dbe4b235980e6f6189145e0ca | 49ae9f52e88685a61797e40a68ae86fcd655b5c5 | tlsconfig trace implementation | This is an implementation of TLSConfig hooks scoped just to `getTLSCertificate`.
cc https://github.com/spiffe/go-spiffe/issues/149 | diff --git a/v2/examples/spiffe-grpc/client/main.go b/v2/examples/spiffe-grpc/client/main.go
index 579455e26..5b8db2f8f 100644
--- a/v2/examples/spiffe-grpc/client/main.go
+++ b/v2/examples/spiffe-grpc/client/main.go
@@ -30,8 +30,17 @@ func main() {
// Allowed SPIFFE ID
serverID := spiffeid.Must("example.org", "ser... | 6 | 6 | 1 | [{"id": "G0", "claim": "The \"start\" trace event should be moved to the beginning of getTLSCertificate, otherwise the trace only measures the conversion of an x509svid.SVID into a tls.Certificate rather than the whole certificate fetch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
spiffe__go-spiffe__181 | spiffe/go-spiffe | 181 | defect | 40dfa55851fc03eff579775b9acfdece8823c27c | 3fd0c7a76162a3471a0f49b0d8d6244224a7140b | Provide logger to federation handler via options | Signed-off-by: Andrew Harding <aharding@vmware.com> | diff --git a/v2/federation/examples_test.go b/v2/federation/examples_test.go
index 494fc4e1d..08665493a 100644
--- a/v2/federation/examples_test.go
+++ b/v2/federation/examples_test.go
@@ -6,7 +6,6 @@ import (
"github.com/spiffe/go-spiffe/v2/bundle/spiffebundle"
"github.com/spiffe/go-spiffe/v2/federation"
- "gith... | 1 | 1 | 0 | [{"id": "G0", "claim": "The sentence in the NewHandler doc comment is not well constructed and should be fixed (e.g. missing comma or similar).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spiffe__go-spiffe__209 | spiffe/go-spiffe | 209 | defect | 40399ac778a6b5ec5fba34de6cd52e87f43d885c | 0bd051fc9d557c24353d483616694fbc1f8ff316 | Update to go1.17, and bring up linter, and deps | Resolves CVE-2022-41717 and CVE-2022-32149 and general housekeeping
Signed-off-by: Bryon Nevis <bryon.nevis@intel.com> | diff --git a/Makefile b/Makefile
index 788befe4b..ede1d4315 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ apiprotos := \
# Toolchain
#############################################################################
-go_version_full := 1.13.15
+go_version_full := 1.18.9
go_version := $(go_version_full:.0=)
go... | 4 | 4 | 4 | [{"id": "G0", "claim": "The GitHub Actions workflow runs go1.13.15 instead of the Go version specified in the Makefile, so CI fails to build the updated dependencies with \"package io/fs is not in GOROOT\".", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "clai... | null |
spiffe__go-spiffe__220 | spiffe/go-spiffe | 220 | defect | cbbc88f0a90c2f81bc037fb964cef49a49d1930a | 82e65fce78999ef45acba65b48a458589987c477 | Add SVID hints on workload api client | Add hint field to SVIDs retrieved by workload API client | diff --git a/v2/internal/test/ca.go b/v2/internal/test/ca.go
index 7e69bfe89..d242b994d 100644
--- a/v2/internal/test/ca.go
+++ b/v2/internal/test/ca.go
@@ -40,16 +40,6 @@ type CA struct {
jwtKid string
}
-type CertificateOption interface {
- apply(*x509.Certificate)
-}
-
-type certificateOption func(*x509.Certifi... | 3 | 3 | 2 | [{"id": "G0", "claim": "The SVIDOptionals embedded struct is over-engineering since more optional SVID fields are unlikely; the Hint field should be included directly in each of the SVID structs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Now that 2.... | null |
spiffe__go-spiffe__288 | spiffe/go-spiffe | 288 | defect | fb781b61bd389239d0970708ce76d2a271501ab3 | e84d8df8eab99ba0100bbb5f94eaa8c4e4641acd | Allow empty x509 bundles to be sent in responses | Otherwise federating with a trust domain that publishes an empty trust bundle at some point will cause your workloads to stop being able to fetch SVIDs. The only result of that should be the inability to verify SVIDs from the federated trust domain.
The [specifications](https://github.com/spiffe/spiffe/blob/main/sta... | diff --git a/v2/bundle/x509bundle/bundle.go b/v2/bundle/x509bundle/bundle.go
index ffe28561c..a70bb62fd 100644
--- a/v2/bundle/x509bundle/bundle.go
+++ b/v2/bundle/x509bundle/bundle.go
@@ -63,13 +63,14 @@ func Read(trustDomain spiffeid.TrustDomain, r io.Reader) (*Bundle, error) {
// blocks.
func Parse(trustDomain spi... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the test helper loadRawCertificates, the empty-file case should return nil instead of an empty non-nil byte slice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test comment should read 'empty federated bundle' in... | null |
spiffe__go-spiffe__3 | spiffe/go-spiffe | 3 | defect | ae3be81059c37e66134fce69376989fbec1be612 | 6338eed7ff2ab7ac5af8f8979709e50c79acaa00 | Added GetUrisInSubjectAltName function | - Added GetUrisInSubjectAltName function
- Added Makefile to run tests
- Added initial README content
- For now, this is SPIFFE specific. It's still to be determined how this will be divided between the generic lib and the SPIFFE specific
- Certificate data is now retrieved from certificate files
- Added license f... | diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..28d2f2a10
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2017 Scytale, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the Lic... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer wants tests reorganized to iterate over all files in a test-data directory, with separate directories per set of tests so new x.509 certs (including invalid/error cases) can be added just by dropping files.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": ... | null |
spiffe__go-spiffe__307 | spiffe/go-spiffe | 307 | defect | 87cfecf6c092ad3c94862bf21c34bf72074d118a | 3a658c85c8d09d406cac207b9db7aa9fa026f035 | chore: check for invalid 'typ' headers | fixes #158
simple check to see if the string != "JWT" or "JOSE"
is this sufficient? do we need to ToUpper on this?
| diff --git a/v2/svid/jwtsvid/svid.go b/v2/svid/jwtsvid/svid.go
index d46f80035..23430aff6 100644
--- a/v2/svid/jwtsvid/svid.go
+++ b/v2/svid/jwtsvid/svid.go
@@ -57,6 +57,11 @@ func ParseAndValidate(token string, bundles jwtbundle.Source, audience []string)
return nil, jwtsvidErr.New("token header missing key id")
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The typ-header check duplicated in the ParseAndValidate and ParseInsecure closures should be extracted into its own function for re-use (the maintainer later specified: moved into the shared parse function right after the token is parsed).", "category": "design", "verdict": "supported", "priorit... | null |
spiffe__go-spiffe__53 | spiffe/go-spiffe | 53 | defect | 4e401e3b85fe9ca182ffab9c353590edf24bfa16 | 16061481c09a065a7e6b8210e837a2fe32ced1f8 | V2 API scaffolding (TAKE 2) | This is an alternate take on #52.
Notably missing are the HTTP and gRPC helpers. I'm still working on those. | diff --git a/go.sum b/go.sum
index 147e4d7b0..c06b18e8d 100644
--- a/go.sum
+++ b/go.sum
@@ -19,6 +19,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn... | 38 | 29 | 0 | [{"id": "G0", "claim": "The X509Bundle/JWTBundle doc wording \"based on the contents of\" is vague and should be clarified (e.g. say whether it filters by trust domain).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The spiffebundle Bundle doc sh... | null |
spiffe__go-spiffe__74 | spiffe/go-spiffe | 74 | defect | 888a66fac4b6a4886f516f811ea89404aa092554 | b2a044b77dc698789ec7d3aa9af6f50eb4bc9dcb | Implement X.509 bundle type | This PR implements the X.509 bundle type of the v2 API
Fixes: #55
Signed-off-by: Marcos G. Yedro <marcosyedro@gmail.com> | diff --git a/v2/bundle/spiffebundle/bundle.go b/v2/bundle/spiffebundle/bundle.go
index 9ded40a47..52974be8f 100644
--- a/v2/bundle/spiffebundle/bundle.go
+++ b/v2/bundle/spiffebundle/bundle.go
@@ -69,6 +69,11 @@ func (b *Bundle) RemoveX509Root(*x509.Certificate) {
panic("not implemented")
}
+// HasX509Root checks ... | 13 | 13 | 1 | [{"id": "G0", "claim": "The trust domain never changes for the bundle, so the separate tdMtx mutex guarding it is not needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Mutex fields in structs that are used via references (i.e. *Bundle) should be val... | null |
spiffe__go-spiffe__75 | spiffe/go-spiffe | 75 | defect | 888a66fac4b6a4886f516f811ea89404aa092554 | 8486fe49d16e9ccec64091933bd18167f9673a59 | Updated spiffeid package scaffolding | Converted the TrustDomain type to a strongly validated struct type with forced
normalization. Provided methods to get a TrustDomain from string and
URI with "Require*" variants that panic instead of returning an error
for convenient use with verifiable constants.
Also renamed some of the ID methods to match trust... | diff --git a/v2/federation/example_test.go b/v2/federation/example_test.go
index 0dc335f56..5cbb6bf9f 100644
--- a/v2/federation/example_test.go
+++ b/v2/federation/example_test.go
@@ -13,7 +13,11 @@ import (
func ExampleFetchBundle_webPKI() {
endpointURL := "https://example.org:8443/bundle"
- trustDomain := spiff... | 6 | 6 | 1 | [{"id": "G0", "claim": "The Must doc comment misspells 'valid' as 'value' in 'the trust domain is not value'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Join doc comment says 'inside the given the trust domain', duplicating 'the'.", "categ... | null |
spiffe__go-spiffe__76 | spiffe/go-spiffe | 76 | defect | 27d6cd66f1452d4f4457818d906793791cc51f4b | ec05c8d0432c2bbbc6891daa3e113c409538088a | Implement jwtbundle.Bundle type | This PR implements the jwtbundle.Bundle type of the v2 API.
Fixes: #57 | diff --git a/v2/bundle/jwtbundle/bundle.go b/v2/bundle/jwtbundle/bundle.go
index f9b455a6b..b01fccf0f 100644
--- a/v2/bundle/jwtbundle/bundle.go
+++ b/v2/bundle/jwtbundle/bundle.go
@@ -1,73 +1,164 @@
package jwtbundle
import (
+ "bytes"
"crypto"
+ "encoding/json"
+ "errors"
+ "fmt"
"io"
+ "io/ioutil"
+ "sync"
... | 17 | 17 | 0 | [{"id": "G0", "claim": "The jwtSigningKeys field could be named `jwtKeys`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "There should be no blank line between the ReadFile error production and its handling in Load.", "category": "style", "verdi... | null |
spiffe__go-spiffe__77 | spiffe/go-spiffe | 77 | defect | 7b2489d9f400cb1711720d52bedcaf1c6f4bbf1d | 8eec70a91cb6068ecb0bf82ad1d29c48a4b3ad01 | Implement spiffeid package | Fixes #54 | diff --git a/v2/spiffeid/id.go b/v2/spiffeid/id.go
index b283ac18b..4f73ed3ee 100644
--- a/v2/spiffeid/id.go
+++ b/v2/spiffeid/id.go
@@ -1,78 +1,163 @@
package spiffeid
import (
+ "errors"
+ "fmt"
"net/url"
+ "strings"
)
// ID is a SPIFFE ID
type ID struct {
+ uri *url.URL
}
// New creates a new ID using... | 9 | 9 | 4 | [{"id": "G0", "claim": "Implementing ID with an embedded *url.URL does the wrong thing when ID is used as a map key, so the struct should hold a TrustDomain and a path string instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Errors coming out of th... | null |
spiffe__go-spiffe__81 | spiffe/go-spiffe | 81 | defect | afd8b8bf0c6c1c84f6d86f8c20a74945a8c7cdc4 | 749b7b9ef6848469e3ac3ebbace1f71b77383a48 | Add spiffeid package missing unit tests | This PR mainly adds the missing unit tests for spiffeid package. Additionally, it has a fix to spiffeid.NewID function, and the renaming of spiffeid.MatchIDs function. | diff --git a/v2/spiffeid/id.go b/v2/spiffeid/id.go
index 633284332..d56e37c0c 100644
--- a/v2/spiffeid/id.go
+++ b/v2/spiffeid/id.go
@@ -26,14 +26,9 @@ func New(trustDomain string, segments ...string) (ID, error) {
return ID{}, err
}
- path := path.Join(segments...)
- if len(path) > 0 && path[0] != '/' {
- path... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use assert.PanicsWithError instead of the manual defer/recover message check in TestRequireTrustDomainFromString and TestRequireTrustDomainFromURI (raised as two nits).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spiffe__go-spiffe__88 | spiffe/go-spiffe | 88 | defect | a0ac63497e334db4f13d4b5c25224345bc27f726 | 973ee84564699f2085fef9b21673cb5744653dbb | Add x509svid.Verify() unit test | This PR adds the missing unit test for x509svid.Verify() and x509svid.ParseAndVerify(). | diff --git a/v2/internal/test/ca.go b/v2/internal/test/ca.go
new file mode 100644
index 000000000..28782e914
--- /dev/null
+++ b/v2/internal/test/ca.go
@@ -0,0 +1,133 @@
+package test
+
+import (
+ "crypto"
+ "crypto/rand"
+ "crypto/x509"
+ "crypto/x509/pkix"
+ "fmt"
+ "math/big"
+ "net/url"
+ "testing"
+ "time"
+
+ "g... | 3 | 3 | 0 | [{"id": "G0", "claim": "Order the unexported chain() helper after the exported CA methods.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Set the SVID template's CommonName to \"X509-SVID %x\" instead of \"CA %x\".", "category": "correctness", "... | null |
spiffe__go-spiffe__96 | spiffe/go-spiffe | 96 | defect | fd0a78551c9485553505ac76ed8623d3b9cdd542 | a02492429655a308aca042c002a70f1fb22d4f54 | Implement Workload API Client | I'm a creating the PR for early review with some caveats.
- Testing is in progress
- Might refactor the watchers to make them more clear | diff --git a/v2/workloadapi/addr.go b/v2/workloadapi/addr.go
new file mode 100644
index 000000000..8a200f3ec
--- /dev/null
+++ b/v2/workloadapi/addr.go
@@ -0,0 +1,76 @@
+package workloadapi
+
+import (
+ "errors"
+ "net"
+ "net/url"
+ "os"
+)
+
+const (
+ // SocketEnv is the environment variable holding the default Wor... | 16 | 14 | 8 | [{"id": "G0", "claim": "Rename the `connection` field to `conn`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `copts` field to `opts` or `options`, since the client type already conveys the context.", "category": "maintainability", ... | null |
spiffe__spiffe-helper__124 | spiffe/spiffe-helper | 124 | defect | a9e974349940329d4a81e05c2608dd44ec7ec8d0 | e6ee051ada6470e01ca0da40795080c19d5e5bac | Add support for federated mode | As stated on [Issue 89](https://github.com/spiffe/spiffe-helper/issues/89) , SPIFFE Helper does not support federated mode, meaning that a trust bundle from a federated domain is not retrieved.
This pull request includes two configuration options to support fetching a federated domain trust bundle:
`include_feder... | diff --git a/README.md b/README.md
index 3d4f6cdc..d95584b2 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,9 @@ The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted f
| `jwt_audience` | JWT SVID audience. ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The configuration should support more than one federated trust domain instead of a single federated_trust_domain value.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There should be an option to add the federation bundle to the m... | null |
spiffe__spiffe-helper__126 | spiffe/spiffe-helper | 126 | defect | a9e974349940329d4a81e05c2608dd44ec7ec8d0 | d215134febd5bbab5daab938c17c07332cff9859 | Add exitOnWait flag | This enables the exitOnWait behavior from the commandline so most users don't need to define two different config files. | diff --git a/README.md b/README.md
index 3d4f6cdc..34f7d5dc 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,8 @@ The SPIFFE Helper is a simple utility for fetching X.509 SVID certificates from
If `-config` is not specified, the default value `helper.conf` is assumed.
+The flag `-exitWhenReady` is also support... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add a test case exercising the true value of the new exitWhenReady parameter (a true case) in the sidecar tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the approach of exposing config options as flags is pursued, the c... | null |
spiffe__spiffe-helper__138 | spiffe/spiffe-helper | 138 | defect | 903d35772b6fe991efcaacc27e59336bc120144d | a1bbc5972785a6f8f2c69e61ff1ad31fb2eed1d7 | Move disk related functions to pkg/disk | Refactor that consolidates all disk function in the pkg/ folder. | diff --git a/pkg/disk/json.go b/pkg/disk/json.go
new file mode 100644
index 00000000..a0fd2f36
--- /dev/null
+++ b/pkg/disk/json.go
@@ -0,0 +1,51 @@
+package disk
+
+import (
+ "encoding/base64"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "os"
+ "path"
+
+ "github.com/spiffe/go-spiffe/v2/bundle/jwtbundle"
+ "github.com/spif... | 8 | 8 | 1 | [{"id": "G0", "claim": "Error strings must not start with an uppercase letter per the Go style guide, as in \"Unable to marshal JWT bundle\" and \"Unable to write JSON file\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The writeJSON paramete... | null |
spiffe__spiffe-helper__14 | spiffe/spiffe-helper | 14 | defect | fe11aab9c82ab191db8b332b884e0bfdb2f68eef | 4f4bb55ca7ab132debf1d753e2420f8b0b046d24 | add retry connection logic after communication with agent fails | Every time connection fail with agent or there is no identity helper close itself without retrying connection, current change prevent it to happens retrying connections, for ever until it get something | diff --git a/.go-version b/.go-version
new file mode 100644
index 00000000..da38e07b
--- /dev/null
+++ b/.go-version
@@ -0,0 +1 @@
+1.13.1
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 91be5d8d..9eb4d9fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,6 @@ dist: trusty
language: go
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The .go-version file the pull request adds should end with a newline (reviewer marked it as a nit).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The DelayMin and DelayMax constants added in spiffe-helper.go need not be exported a... | null |
spiffe__spiffe-helper__146 | spiffe/spiffe-helper | 146 | defect | 95b0e538188b517382b77602120049e8564002bb | 94f290b3343dc80b02cdeef9af943393ec95e32a | Move HCL config to main | Decouples HCL config from the pkg that runs the daemon. This is how the main SPIRE repo is organized. | diff --git a/cmd/spiffe-helper/config.go b/cmd/spiffe-helper/config.go
new file mode 100644
index 00000000..589d2337
--- /dev/null
+++ b/cmd/spiffe-helper/config.go
@@ -0,0 +1,169 @@
+package main
+
+import (
+ "errors"
+ "os"
+
+ "github.com/hashicorp/hcl"
+ "github.com/sirupsen/logrus"
+)
+
+const (
+ defaultAgentAdd... | 3 | 3 | 1 | [{"id": "G0", "claim": "Update the deprecated config-name handling in this pull request now, as tracked in issue #90, rather than deferring it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the test fixture files into a folder inside the config pac... | null |
spiffe__spiffe-helper__15 | spiffe/spiffe-helper | 15 | defect | e11122b96bb931ad10c29c7185df348473317858 | 4d4d15a111fc92d7be8ad0fdd76e9ca0226dbb3a | Add examples mysql postgres | This PR adds spiffe-helper example configurations for MySQL and PostgreSQL certificate authentication.
Also, a minor modification was done in spiffe-helper arguments parsing logic. Now it is possible to parse
arguments which contains spaces between double quotes.
Signed-off-by: Marcos G. Yedro <marcosyedro@gmail... | diff --git a/examples/mysql/README.md b/examples/mysql/README.md
new file mode 100644
index 00000000..31c49f42
--- /dev/null
+++ b/examples/mysql/README.md
@@ -0,0 +1,97 @@
+# User authentication in MySQL using SVIDs with DNS names
+
+This is an example of how **spiffe-helper** can be used to authenticate users to a **... | 14 | 11 | 1 | [{"id": "G0", "claim": "The MySQL README should add links to the MySQL versions users must install so readers know which version to use.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The READMEs lack an example server/agent configuration, and M01... | null |
spiffe__spiffe-helper__161 | spiffe/spiffe-helper | 161 | defect | 1d4ec44804f7ac789f2749f2e965447afdf2758d | 2efffa9dd6e2faed4d8c2deb2f2e58ac76c87f4b | Add daemon mode flag | - Add a `daemon_mode` configurable to toggle running spiffe-helper as a daemon. When daemon mode is disabled x509 and/or jwts are downloaded and spiffe-helper exits.
- Add a `daemon-mode` cli flag to override config file setting and disable daemon mode. | diff --git a/README.md b/README.md
index ca3db016..6c675f3e 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted f
| `cmd` | The path to the process to launch. ... | 7 | 7 | 0 | [{"id": "G0", "claim": "The new CLI flag should be named to match the daemon_mode config key instead of the inverted disable_daemon_mode.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Flags should be parsed in main rather than in the config package, unl... | null |
spiffe__spiffe-helper__17 | spiffe/spiffe-helper | 17 | defect | e11122b96bb931ad10c29c7185df348473317858 | 58b7c26c651d334bcb76f722b55fe18ee3fd31a0 | Convert to package, add support for external process management | Full list of changes:
- Move spiffe-helper.go to pkg/ directory and make it part of spiffe package rather than main
- Move main.go and config.go to cmd/ directory
- Add ExternalProcess flag to signify process will be managed externally
- Add ProcessReloadFunc to specify external function that will be called to re... | diff --git a/Makefile b/Makefile
index cd1443aa..78cdd1e2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ export GO111MODULE=on
.PHONY: all build test clean distclean
build:
- go build
+ go build -o spiffe-helper cmd/spiffe-helper/*.go
all: build test
@@ -11,7 +11,7 @@ vendor:
go mod vendor
test:
- g... | 15 | 14 | 6 | [{"id": "G0", "claim": "ParseConfig should parse and decode the HCL config in a single hcl.Decode call, passing the already-pointer config directly, instead of hcl.Parse followed by hcl.DecodeObject with an extra address-of.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
spiffe__spiffe-helper__18 | spiffe/spiffe-helper | 18 | defect | 0ac7334eca81519d9709354248aa162b2dfa797b | 92c4872b40834b07468e20b8ce33fad1465f3b0d | Refactor makefile and travis to remove goreleaser | - Refactor makefile,
- Allow spiffe-helper to create artifacts and release
- Remove gorelase
- Add golangci-lint
- Add tidy-check | diff --git a/.gitignore b/.gitignore
index c73a9ffd..a169a2b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
vendor
-dist
-spiffe-helper
+/spiffe-helper
+/artifacts
+/releases
+/.build
diff --git a/.go-version b/.go-version
index b50dd27d..b0f139ea 100644
--- a/.go-version
+++ b/.go-version
@@ -1 +1 @@
-1.13... | 3 | 3 | 0 | [{"id": "G0", "claim": "The help text for the build target should drop the stray word \"all\" and read \"build SPIFFE Helper binary (default)\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The help text for the all target should drop the stray ... | null |
spiffe__spiffe-helper__184 | spiffe/spiffe-helper | 184 | defect | c717d04436103cdb8552f7b648734ad2330fe6d0 | 561b813ab6bf65aa72a35ce8f312b66ac549b041 | Add ability to configure file permissions of written files (closes #183) | fixes #183 | diff --git a/README.md b/README.md
index 6c675f3e..350cf2c4 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,10 @@ The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted f
| `jwt_svids` | An array with the audience and file name to store the JWT SVIDs. File is Base64-encod... | 9 | 7 | 0 | [{"id": "G0", "claim": "The reviewer asks for ideas/help to avoid having to disable the linter rule (//nolint:gosec,G115) on the os.FileMode conversion line.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the new file-m... | null |
spiffe__spiffe-helper__19 | spiffe/spiffe-helper | 19 | defect | 146193da2dfbcda9eb495c908555a88f188d33da | 1cb78ce4849728e5aad318866314aee7a2c6c502 | Add merge intermediate certificates mode | Create a mode that outputs the SVID and bundle in a form compatible with the MySQL client. | diff --git a/README.md b/README.md
index 9147d3a3..1bdcbbcb 100644
--- a/README.md
+++ b/README.md
@@ -13,15 +13,16 @@ If `-config` is not specified, the default value `helper.conf` is assumed.
The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted file that defines the following configurations... | 6 | 5 | 1 | [{"id": "G0", "claim": "The helper_mysql.conf example file is redundant now that the MySQL and PostgreSQL examples are merged, and it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add one more test case with no intermediate c... | null |
spiffe__spiffe-helper__200 | spiffe/spiffe-helper | 200 | defect | 1be3767a2191a927b22580de5c6f32fb426d165f | 7285b5b82a6b077dbffd2771664dbbde3f748ed2 | Check for unknown config | Checks for unknown config directives and errors out.
First PR to address https://github.com/spiffe/spiffe-helper/issues/104 (remove camel case config) so that there is an error when camel case config is present. | diff --git a/cmd/spiffe-helper/config/config.go b/cmd/spiffe-helper/config/config.go
index 2c190b48..965bddf0 100644
--- a/cmd/spiffe-helper/config/config.go
+++ b/cmd/spiffe-helper/config/config.go
@@ -3,10 +3,14 @@ package config
import (
"errors"
"flag"
+ "fmt"
"io/fs"
"os"
+ "slices"
+ "strings"
"githu... | 3 | 3 | 0 | [{"id": "G0", "claim": "The second jwt_svids test case is misnamed \"Unknown configuration in first jwt svid\" and should be renamed to say second.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method name is misspelled checkForUnknwonConfi... | null |
spiffe__spiffe-helper__214 | spiffe/spiffe-helper | 214 | defect | 2550ab0adda462604fd3dce2123bd6322b0fd506 | b1c9f0eacf7e417ad6b7cbf98ef7fed498f4a1aa | Add support for SPIFFE_ENDPOINT_SOCKET, deprecate SPIRE_AGENT_ADDRESS | fixes #90 | diff --git a/cmd/spiffe-helper/config/config.go b/cmd/spiffe-helper/config/config.go
index 16fd115e..f3eff107 100644
--- a/cmd/spiffe-helper/config/config.go
+++ b/cmd/spiffe-helper/config/config.go
@@ -87,7 +87,7 @@ func (c *Config) ParseConfigFlagOverrides(daemonModeFlag bool, daemonModeFlagNam
}
}
-func (c *Con... | 1 | 1 | 1 | [{"id": "G0", "claim": "When both SPIRE_AGENT_ADDRESS and SPIFFE_ENDPOINT_SOCKET are set, ValidateConfig should return an error instead of silently picking one of the two values.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spiffe__spiffe-helper__227 | spiffe/spiffe-helper | 227 | defect | 2f033c22ab1b986aa09e93519e3e7e4f8d4463a7 | d378b30156e8b69fd932fde9e076a62a90ffc805 | Add HTTP health server (closes #115) | fixes #115 | diff --git a/README.md b/README.md
index 9e10506a..2fca129f 100644
--- a/README.md
+++ b/README.md
@@ -18,25 +18,27 @@ The flag `-exitWhenReady` is also supported.
## Configuration
The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted file that defines the following configurations:
- | Conf... | 5 | 4 | 0 | [{"id": "G0", "claim": "The health check settings should be put into a separate config block like SPIRE server's health-check configuration.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The health server functionality should be moved out of main into a... | null |
spiffe__spiffe-helper__242 | spiffe/spiffe-helper | 242 | defect | 5a4e177bf389b231deced9129ac485e379380616 | 0c56b1d1e7128e312925d22d92a84372b378d472 | Add hint support | Fixes: https://github.com/spiffe/spiffe-helper/issues/113 | diff --git a/cmd/spiffe-helper/config/config.go b/cmd/spiffe-helper/config/config.go
index 784e455e..fe32877c 100644
--- a/cmd/spiffe-helper/config/config.go
+++ b/cmd/spiffe-helper/config/config.go
@@ -37,6 +37,7 @@ type Config struct {
IncludeFederatedDomains bool `hcl:"include_federated_domains"`
RenewSignal ... | 7 | 6 | 0 | [{"id": "G0", "claim": "The declared-but-elsewhere-unused variable `var jwtSVID *jwtsvid.SVID` should be moved inside the else branch where it is actually used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new parameter of WriteJWTSVID sho... | null |
spiffe__spiffe-helper__254 | spiffe/spiffe-helper | 254 | defect | 29323c86e2f2b64563d1cda135efd6de9631dd7c | 4e96a59b12ef104b4b3714ce83f656b228491467 | Warnings about ignored settings when daemon_mode=false | Presently `spiffe-helper` ignores the settings `cmd`, `pid_file_name` and `renew_signal` silently if `daemon_mode=false`.
This could lead to mis-configuration where the helper is not doing what the user expects. It also makes it more difficult to give these options a meaning in non-daemon (one-shot) mode in future, ... | diff --git a/cmd/spiffe-helper/config/config.go b/cmd/spiffe-helper/config/config.go
index 30a7bdf5..9a188c87 100644
--- a/cmd/spiffe-helper/config/config.go
+++ b/cmd/spiffe-helper/config/config.go
@@ -127,6 +127,21 @@ func (c *Config) ValidateConfig(log logrus.FieldLogger) error {
}
}
+ if c.DaemonMode != nil ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The cmd warning should say \"error in a future release\" instead of \"error in future\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The renew_signal warning should say \"error in a future release\" instead of \"error in... | null |
spiffe__spiffe-helper__257 | spiffe/spiffe-helper | 257 | defect | 8d77e4a5a16d623448cf8228b21e97c8defd8e26 | a4c21fd6ca1a04a95f4622b0e8087105aba8ebfe | Fixes to compile and run on Windows | Fix compilation on GOOS=windows for the main binary and tests, both of which were broken.
Fix a leaked open file handle which caused config_test.go to fail on windows with "Sharing violation" errors when cleaning up the tempdir.
Add a 'test-wine' Makefile target. Explain how to run the tests for windows via wine ... | diff --git a/.gitignore b/.gitignore
index e9c76f81..7a472f5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,9 @@ rpm/*.rpm
*.swp
*.swo
bootstrap.crt
+# for 'go test -c ./...' output
+*.test
+*.test.exe
# oci image builds
oci/
diff --git a/Makefile b/Makefile
index fe0e79a0..77e3f0fb 100644
--- a/Makefile
+... | 3 | 3 | 0 | [{"id": "G0", "claim": "Insert a blank line before the '# for 'go test -c ./...' output' comment in .gitignore, as requested by the suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Questions whether Wine is the main reason the te... | null |
spiffe__spiffe-helper__258 | spiffe/spiffe-helper | 258 | defect | 582e72d2de9c9c038217991cab1ddc816d480007 | c4a8ea933598e185ef9fc344a4fc31f7f1d7474c | Add a test suite for sidecar cmd and signals | Add test cover for:
* long-running and short-lived cmd and cmd_args invocations
* signalling via pid_file_name and renew_signal
* windows cmd and cmd_args execution
If rebased onto the 'fix-windows' branch for windows test fixes, these pass for windows test runs too.
To make these tests possible the followin... | diff --git a/Makefile b/Makefile
index 90709bee..1217c3c5 100644
--- a/Makefile
+++ b/Makefile
@@ -173,7 +173,10 @@ endif
lint: lint-code
lint-code: $(golangci_lint_bin) | go-check
- $(E)PATH="$(PATH):$(go_bin_dir)" $(golangci_lint_bin) run ./...
+ $(E)if PATH="$(PATH):$(go_bin_dir)" $(golangci_lint_bin) run ./...;... | 10 | 8 | 3 | [{"id": "G0", "claim": "The new TestSignalProcess test fails on Windows/wine after the rebase - touch does not exist there and checkProcessExit panics with a nil-pointer dereference - so make test-wine fails.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
spiffe__spiffe-helper__263 | spiffe/spiffe-helper | 263 | defect | 6a2734568f72b8c5f2a475f739755712531161b8 | 8282afb795671f6fe92900eddc4e2429f3fe85a5 | Fix health check fails when x509 files aren't configured | If you don't set one of `svid_file_name`, `svid_key_file_name`, or `svid_bundle_file_name`, the `x509_write_status` always stays `"unwritten"` and the health check fails.
Also, if you have a config that doesn't specify `jwt_bundle_file_name`, it adds an empty unwritten file to the status map.
```json
{
"statu... | diff --git a/pkg/sidecar/sidecar.go b/pkg/sidecar/sidecar.go
index 4f1b05a0..25477339 100644
--- a/pkg/sidecar/sidecar.go
+++ b/pkg/sidecar/sidecar.go
@@ -42,7 +42,7 @@ type Health struct {
}
type FileWriteStatuses struct {
- X509WriteStatus string `json:"x509_write_status"`
+ X509WriteStatus *string ... | 2 | 2 | 1 | [{"id": "G0", "claim": "If something (x509 SVIDs or the JWT bundle) is not configured, it should just be excluded from the health check output rather than reported with an \"unconfigured\" status.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With x509 ... | null |
spiffe__spiffe-helper__308 | spiffe/spiffe-helper | 308 | defect | c20eb22a42801bf256efda3a5989b11e9d9dec3f | eb9de396bf1e6808ab77eb840f787a8bb555d342 | Add `omit_expired` option to prune expired certs from chain | As an OpenSearch user, I want spiffe-helper to be able to omit expired certs from the CA bundle, so that it may be used with OpenSearch (w/ security plugin) without errors. This is also likely applicable to other Java applications that leverage X.509 certificates.
This change adds an `omit_expired` option to the con... | diff --git a/README.md b/README.md
index e907b737..f00343ca 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted f
| `jwt_bundle_file_mode` | The octal file mode to use when saving a JWT Bundle file. ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The README should document the new `omit_expired` config option.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The expiry check would be a little easier to read written as `omitExpired && time.Now().UTC().After(cert.NotAft... | null |
spiffe__spiffe-helper__333 | spiffe/spiffe-helper | 333 | defect | 46070867716658355ba104613529112f76f760ed | d0d7c35afe6e9efa52ed0fea038fcd4a3e201951 | Retry to signal pid file on error | Retry signalling pid file on error. Follow up of #252
fixes https://github.com/spiffe/spiffe-helper/issues/250
fixes https://github.com/spiffe/spiffe-helper/issues/251 | diff --git a/pkg/sidecar/sidecar.go b/pkg/sidecar/sidecar.go
index b6de88b8..8ee3ae59 100644
--- a/pkg/sidecar/sidecar.go
+++ b/pkg/sidecar/sidecar.go
@@ -22,6 +22,17 @@ import (
"github.com/spiffe/spiffe-helper/pkg/util"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
+ "k8s.io/apimachinery/pkg/ut... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment above signalPIDFileWithRetry should name the function (\"signalPIDFileWithRetry sends...\") instead of \"signalPID sends...\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The read error message should use %... | null |
spiffe__spiffe-helper__6 | spiffe/spiffe-helper | 6 | defect | cfefa2ad77ee94fd949ce4eea871fb32fe702965 | 65ca51d8e17f41670c035f55798434912ec34ce8 | Updating spiffe-helper to support the new version of Workload API | The spiffe-helper has been updated to work fetching the SVID from the new Workload API using streaming over gRPC. It uses the `workload.X509Client` to obtain the SVIDs and then stores the certificate, bundle and key to the configured certs folder.
Removed a test file that didn't follow the go testing conventions an... | diff --git a/config.go b/config.go
index c833705b..bceed53c 100644
--- a/config.go
+++ b/config.go
@@ -16,6 +16,7 @@ type SidecarConfig struct {
SvidKeyFileName string `hcl:"svidKeyFileName"`
SvidBundleFileName string `hcl:"svidBundleFileName"`
RenewSignal string `hcl:"renewSignal"`
+ Timeout ... | 18 | 18 | 6 | [{"id": "G0", "claim": "TestParseConfig should fail with assert.NoError (testify) instead of the manual t.Fatal block.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Why was the Sidecar interface introduced; also, RunDaemon does not have a matching sign... | null |
spiffe__spiffe-helper__77 | spiffe/spiffe-helper | 77 | defect | d8ca7f0e3cee245e6e61874fc9e359cdd3ebc13b | 9a17cfc881dcde4bf429faea3df63ddfaf25bbf8 | Update to snake case | # Changes proposal:
* Update the .conf files from camelCase to snake_case
* Generate tests to check if any field is duplicated.
* Generate tests to check the logs for deprecated fields. | diff --git a/pkg/sidecar/config.go b/pkg/sidecar/config.go
index 5444e48f..c5b3cba0 100644
--- a/pkg/sidecar/config.go
+++ b/pkg/sidecar/config.go
@@ -10,24 +10,46 @@ import (
// Config contains config variables when creating a SPIFFE Sidecar.
type Config struct {
- AgentAddress string `hcl:"agentAddress"`
- Cmd ... | 5 | 4 | 0 | [{"id": "G0", "claim": "The test fakes added to pkg/sidecar/config.go — the fakeLogger type and the ValidateConfig default that instantiates it — must go into the test file instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GetWarning h... | null |
spiffe__spiffe-helper__79 | spiffe/spiffe-helper | 79 | defect | 592e692234f923dfe7285bc6ded22d2a8da583a7 | e6e5fc510fe91e879aef7195611e0de2199f37ef | Switch to structured logging | # Change proposal:
* Switch from standard logger to sirupsen Logrus | diff --git a/cmd/spiffe-helper/main.go b/cmd/spiffe-helper/main.go
index 04c739b6..7e66d92b 100644
--- a/cmd/spiffe-helper/main.go
+++ b/cmd/spiffe-helper/main.go
@@ -7,7 +7,7 @@ import (
"os"
"os/signal"
- "github.com/spiffe/go-spiffe/v2/logger"
+ "github.com/sirupsen/logrus"
"github.com/spiffe/spiffe-helper/p... | 6 | 6 | 2 | [{"id": "G0", "claim": "Remove the stale \"TODO: logger will be replaced in a near future\" comment from main.go, which the pull request makes obsolete by doing the replacement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The log field name... | null |
spiffe__spiffe-helper__82 | spiffe/spiffe-helper | 82 | defect | 3012797b60d8916893d670d881a90fd70c1a671d | 5fc3c84affc94ecee22bcee046fc22bc31b89168 | Add default socket path | # Change proposal:
* AgentAddress set by defaultvalue if isn't set.
* AgentAddress can be set by ENV variable.
* Unit test for both cases.
* Example and readme files updated to snakeCase. | diff --git a/README.md b/README.md
index 6c0d5e22..28a1d1e9 100644
--- a/README.md
+++ b/README.md
@@ -18,32 +18,33 @@ The configuration file is an [HCL](https://github.com/hashicorp/hcl) formatted f
|Configuration | Description ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The README example value for `agent_address` should be `/tmp/spire-agent/public/api.sock` instead of `/tmp/agent.sock`.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case where the env var is set but the config fi... | null |
spiffe__spire-controller-manager__151 | spiffe/spire-controller-manager | 151 | defect | 8d1e01c7363c8cda3b09bd9df4b82aac13c8c024 | a22fa3ec24351d622392cee0f19fe86b30d17e01 | Upgrade controller runtime | Upgrade to latest controller runtime and refactor to no use deprecated structs and functions
#148 | diff --git a/api/v1alpha1/clusterfederatedtrustdomain_webhook.go b/api/v1alpha1/clusterfederatedtrustdomain_webhook.go
index e4b3ef4e..70e8c5d4 100644
--- a/api/v1alpha1/clusterfederatedtrustdomain_webhook.go
+++ b/api/v1alpha1/clusterfederatedtrustdomain_webhook.go
@@ -27,6 +27,7 @@ import (
ctrl "sigs.k8s.io/contro... | 3 | 2 | 0 | [{"id": "G0", "claim": "The commented-out debug line in loadFile should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty-path guard is probably redundant because os.ReadFile will fail anyway, so it should be dropped.", "categ... | null |
spiffe__spire-controller-manager__170 | spiffe/spire-controller-manager | 170 | defect | 2b0ff48b84150cb1451234af111a0a2676134b3d | e330c4d381f8899730d2dea6dcab47b9eed8c35a | ignoring namespaces by matching regex | - Created a new function to match regex with strings in a stringset
- Replaced uses of `In` function to match regex instead
fixes #161 and #175 | diff --git a/controllers/pod_controller.go b/controllers/pod_controller.go
index 26bab034..6dfbc2cb 100644
--- a/controllers/pod_controller.go
+++ b/controllers/pod_controller.go
@@ -46,7 +46,7 @@ type PodReconciler struct {
// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the cur... | 1 | 1 | 1 | [{"id": "G0", "claim": "The regex match error is discarded in stringset.MatchRegex; compile the configured ignore-namespace regexes once at boot (returning an error on a malformed pattern) and pass the compiled regexes to the reconcilers instead of the raw strings.", "category": "correctness", "verdict": "supported", "... | null |
spiffe__spire-controller-manager__185 | spiffe/spire-controller-manager | 185 | defect | b91482ca2fe26d9a931feba5fad87434d629c0a5 | f0cb0277e6a371e7692fb66f5382457b49080c3f | Filter unsupported fields | Get the list of unsupported fields from configured spire server evert 10 minutes
fixes #178 | diff --git a/pkg/spireapi/entryapi.go b/pkg/spireapi/entryapi.go
index 171a87f6..89992015 100644
--- a/pkg/spireapi/entryapi.go
+++ b/pkg/spireapi/entryapi.go
@@ -18,10 +18,24 @@ package spireapi
import (
"context"
+ "fmt"
entryv1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/entry/v1"
+ "github.com/... | 6 | 6 | 0 | [{"id": "G0", "claim": "Define a dedicated Field type (type Field string) and use it in GetUnsupportedFields and the other code instead of plain strings, for better compiler safety.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The probe entry'... | null |
spiffe__spire-controller-manager__189 | spiffe/spire-controller-manager | 189 | defect | 4ac93e619cb30007ca0b04d75745ea368001062f | 885c031f0ed556e7abef58c23ebb6b6a0b97c7d6 | adding support for JWT SVID TTL | - added `JWTTTL` to `ClusterSPIFFEIDSpec`
- added `JWTTTL` to `renderPodEntry` func
- added test to check if entry JWT TTL matches the passed in JWT TTL
- closes #65 | diff --git a/api/v1alpha1/clusterspiffeid_types.go b/api/v1alpha1/clusterspiffeid_types.go
index 3fb9bb34..61bd4aa7 100644
--- a/api/v1alpha1/clusterspiffeid_types.go
+++ b/api/v1alpha1/clusterspiffeid_types.go
@@ -32,10 +32,14 @@ type ClusterSPIFFEIDSpec struct {
// available to the template under .NodeSpec, .PodSpe... | 2 | 2 | 0 | [{"id": "G0", "claim": "The docs table row for jwtTtl is misaligned by one space relative to the other rows in docs/clusterspiffeid-crd.md.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The time import in pkg/spireentry/entries_test.go sits in it... | null |
spiffe__spire-controller-manager__230 | spiffe/spire-controller-manager | 230 | defect | 091d297fef6ab48cbaa1387a18e1bbc410157b24 | b3e46d5d552eb608fc83a4ea6b74603f6c30ae63 | Add support for multiple classes | fixes: https://github.com/spiffe/spire-controller-manager/issues/229 | diff --git a/api/v1alpha1/clusterfederatedtrustdomain_types.go b/api/v1alpha1/clusterfederatedtrustdomain_types.go
index 282f8459..c9cf6924 100644
--- a/api/v1alpha1/clusterfederatedtrustdomain_types.go
+++ b/api/v1alpha1/clusterfederatedtrustdomain_types.go
@@ -37,6 +37,10 @@ type ClusterFederatedTrustDomainSpec struc... | 4 | 3 | 0 | [{"id": "G0", "claim": "There is a potential for conflict when one controller has ClassName unset and another sets the watch-missing flag to true, causing both controllers to process the same CR.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reconci... | null |
spiffe__spire-controller-manager__256 | spiffe/spire-controller-manager | 256 | defect | efcb220c42ad3d04d41632c25e359ce39c1235c2 | 2edf03ecd9435ba280dd981d32775a89376fb72d | Add support for expandEnv | Mostly copied from SPIRE Repo
fixes #255 | diff --git a/api/v1alpha1/controllermanagerconfig_loader.go b/api/v1alpha1/controllermanagerconfig_loader.go
index 313efb78..96f77c4c 100644
--- a/api/v1alpha1/controllermanagerconfig_loader.go
+++ b/api/v1alpha1/controllermanagerconfig_loader.go
@@ -11,8 +11,8 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
)
-... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new flag should be named `expand-env` in kebab-case, matching the component's flag naming convention, instead of `expandEnv`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TestLoadOptionsFromFileExpandEnv the new test shou... | null |
spiffe__spire-controller-manager__306 | spiffe/spire-controller-manager | 306 | defect | 663637a69ef2a104e77cb95a00fbf6eaab154420 | f0531fe011d8c631183e2b77ceea30c1abb1d0eb | reconciler: don't delete join token based entries | Updates the reconciler to ignore the deletion of join token based entries since join tokens are created out-of-band and can be used in conjunction with the controller-manager.
Resolves #247 | diff --git a/pkg/spireentry/reconciler.go b/pkg/spireentry/reconciler.go
index a22d2146..e66c9ee1 100644
--- a/pkg/spireentry/reconciler.go
+++ b/pkg/spireentry/reconciler.go
@@ -44,6 +44,16 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log"
)
+const (
+ // joinTokenSpiffeSubstr is the substring that is the part... | 3 | 3 | 2 | [{"id": "G0", "claim": "The isJoinTokenEntry helper (and with it the joinTokenSelectorType definition) appears unused because filterJoinTokenEntries duplicates the join-token check inline instead of calling the helper, applying a weaker check than the documented criteria.", "category": "correctness", "verdict": "suppor... | null |
spiffe__spire-controller-manager__411 | spiffe/spire-controller-manager | 411 | defect | 3791df8ddfa4b4ee40c970f220b1777b6702ff6b | 12a69d68054fc2b26f45acb2fd952468f8092943 | Static Manifest Support | Enables watching a directory for CRs to configure SPIRE with rather then get them from Kubernetes. This allows for simple to configure stand alone SPIRE servers, easy integration with traditional configuration management systems, and/or easy syncing of config from git.
It supports:
* ClusterStaticEntries
* Clust... | diff --git a/api/v1alpha1/clusterfederatedtrustdomain_loader.go b/api/v1alpha1/clusterfederatedtrustdomain_loader.go
new file mode 100644
index 00000000..d8418a71
--- /dev/null
+++ b/api/v1alpha1/clusterfederatedtrustdomain_loader.go
@@ -0,0 +1,67 @@
+package v1alpha1
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "os... | 6 | 5 | 0 | [{"id": "G0", "claim": "cmd/main.go is admittedly very hacky, test-only code that still needs to be reworked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "LoadClusterFederatedTrustDomainFromFile is not intended for use outside this package — c... | null |
spiffe__spire-controller-manager__44 | spiffe/spire-controller-manager | 44 | defect | 44d149432422999895335acc36b51255c3865d61 | 78b5009fc168479193a0824d685b895180cfc5af | Support downstream entries/spiffeIds (closes #43) | I looked at all the places using `Admin` and used that to determine what I probably needed for adding `Downstream`. I haven't tested that this actually works though. | diff --git a/api/v1alpha1/clusterspiffeid_types.go b/api/v1alpha1/clusterspiffeid_types.go
index 03816628..1a1ba6d3 100644
--- a/api/v1alpha1/clusterspiffeid_types.go
+++ b/api/v1alpha1/clusterspiffeid_types.go
@@ -67,6 +67,12 @@ type ClusterSPIFFEIDSpec struct {
// administrative APIs. Extra care should be taken to ... | 7 | 5 | 3 | [{"id": "G0", "claim": "The pre-existing code hardcodes a k8s_psat parent ID and the CRD offers no way to specify a parent, so setups using other attestation methods (e.g. x509pop) cannot use this, which the author thought would need to be changed in this PR as well.", "category": "design", "verdict": "uncertain", "pri... | null |
spiffe__spire-controller-manager__72 | spiffe/spire-controller-manager | 72 | defect | 008272c71ec2868129514533f3eef25863b0b52e | 521d49b7b44114556d0432d6fadfa511297b93cf | Add 'make lint' target, add lint to pr build | Also fixes all the linter errors in the repo.
fixes https://github.com/spiffe/spire-controller-manager/issues/47 | diff --git a/.github/workflows/pr_build.yaml b/.github/workflows/pr_build.yaml
index 87cd2813..6425e001 100644
--- a/.github/workflows/pr_build.yaml
+++ b/.github/workflows/pr_build.yaml
@@ -6,6 +6,18 @@ env:
GO_VERSION: 1.19
jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ ... | 7 | 5 | 1 | [{"id": "G0", "claim": "The skip-files exemption for generated .pb.go files should be removed, since the reviewer questions whether there is any proto in the controller manager repo to need it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
spiffe__spire-controller-manager__85 | spiffe/spire-controller-manager | 85 | defect | e85ec02bb2914a2ab3bb226faf9516692722180e | 3d8fdb5ff8e435bfbfac0401463673b195bccb0a | Ensure all DNS Names for an entry are unique | - Reject duplicate DNS Name templates at the webhook with an error
- Strip out duplicate rendered DNS names
fixes https://github.com/spiffe/spire-controller-manager/issues/49 | diff --git a/api/v1alpha1/clusterspiffeid_webhook.go b/api/v1alpha1/clusterspiffeid_webhook.go
index 2aad0df5..9c00d02b 100644
--- a/api/v1alpha1/clusterspiffeid_webhook.go
+++ b/api/v1alpha1/clusterspiffeid_webhook.go
@@ -19,6 +19,7 @@ package v1alpha1
import (
"errors"
"fmt"
+ "strings"
"text/template"
"time... | 2 | 2 | 0 | [{"id": "G0", "claim": "The map tracking rendered DNS names would be better named something like `dnsNamesSet` instead of `dnsNamesUnique`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate-template validation adds little value becaus... | null |
spiffe__spire-controller-manager__90 | spiffe/spire-controller-manager | 90 | defect | b915468ab0a5d2ca503837fb5407b28178820fa0 | ddc6fe23dd6b766b03032ea60c3b5a54992598bd | Autodetect cluster domain | Does a cname request on `kubernetes.default.svc` and extracts the cluster domain from the result, ie the `cluster.local` bit. Its exposed as `{{ .ClusterDomain }}` to be used in templates.
Uses a new configurable `clusterDomain`. If the configurable is empty it auto detects. If its populated it used the specific val... | diff --git a/api/v1alpha1/controllermanagerconfig_types.go b/api/v1alpha1/controllermanagerconfig_types.go
index 49132ecd..717e22ef 100644
--- a/api/v1alpha1/controllermanagerconfig_types.go
+++ b/api/v1alpha1/controllermanagerconfig_types.go
@@ -35,6 +35,9 @@ type ControllerManagerConfig struct {
// ClusterName is t... | 6 | 6 | 3 | [{"id": "G0", "claim": "The parsing logic after the CNAME lookup in autoDetectClusterDomain should be split into a parseClusterDomainCNAME function, and unit tests should be added for it.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The len(ma... | null |
spiffe__spire__5892 | spiffe/spire | 5,892 | defect | 2ae3be687f5fb41eb8f15623c18b990c3f4cf617 | fc9b6320bf54206edfaa808ccbbdc1ef9e203c34 | Rebootstrap support - Phase 1 | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [ ] Proper tests/regressions included?
- [x] Documentation updated?
**Description of change**
Allows the spire-agent to rebootstrap itself if the server ca goes invalid.
There will be a configurable timeout between the first seen invali... | diff --git a/cmd/spire-agent/cli/run/run.go b/cmd/spire-agent/cli/run/run.go
index 8b789881f72..54244fc7072 100644
--- a/cmd/spire-agent/cli/run/run.go
+++ b/cmd/spire-agent/cli/run/run.go
@@ -2,13 +2,11 @@ package run
import (
"context"
- "crypto/x509"
"errors"
"flag"
"fmt"
"io"
"net"
- "net/http"
"ne... | 14 | 11 | 3 | [{"id": "G0", "claim": "Bootstrapping behaviour is controlled by too many flags, and the rebootstrap_delay setting should be avoided in favour of an inferred safe default, converging on a single automatic-rebootstrapping flag (with retry_bootstrap deprecated and later removed).", "category": "design", "verdict": "oppos... | null |
spiffe__spire__5969 | spiffe/spire | 5,969 | defect | 1a4f6f0146ff486ff7ebbf50a7dfddc2d4409f98 | 7a68e6b9a18685b532317faa623937fb1f03ac83 | EKS node membership validation in aws_iid |
<!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Requ... | diff --git a/go.mod b/go.mod
index 2153bc1a30a..c270d64eb81 100644
--- a/go.mod
+++ b/go.mod
@@ -25,7 +25,9 @@ require (
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.28
github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.5.1
github.com/aws/aws-sdk-go-v2/service/acmpca v1.39.0
+ github.com/aws/aws-sdk-go-v2/se... | 7 | 7 | 2 | [{"id": "G0", "claim": "The configuration should accept a list of EKS cluster names rather than a single one, so users are not restricted in how they map clusters to their SPIRE Server deployment; rturner3 also felt it would be worthwhile to emit the EKS cluster as a node selector for matching entries to specific clust... | null |
spiffe__spire__5970 | spiffe/spire | 5,970 | defect | 826a819422fc284340d0fa2bdc3dd1da51ecdd0e | bb29f9d668298b7a7c9db9ce52cfbe939bd7c2fb | Fetch updated cache entries in bulk | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/pkg/server/endpoints/authorized_entryfetcher.go b/pkg/server/endpoints/authorized_entryfetcher.go
index 7099561d54d..0a7b3c597ef 100644
--- a/pkg/server/endpoints/authorized_entryfetcher.go
+++ b/pkg/server/endpoints/authorized_entryfetcher.go
@@ -127,3 +127,12 @@ func buildCache(ctx context.Context, log l... | 3 | 3 | 1 | [{"id": "G0", "claim": "Replace the custom mapKeysToSlice helper with the standard library slices.Collect(maps.Keys(a.fetchEntries)) when building the id list for the bulk fetch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The number of entri... | null |
spiffe__spire__6025 | spiffe/spire | 6,025 | defect | 2bb123279851440ffbd8d7f3bd34df7827e5eabb | ac77d50ec003be99295d2eb2d6007458fb6d32ec | Add file mode to oidc-discovery-provider | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
**Affected functionality**
oidc discovery provider
**Description of change**
This enables the oidc-discovery-provider to read the trust bundle from a file.
**Which ... | diff --git a/support/oidc-discovery-provider/README.md b/support/oidc-discovery-provider/README.md
index 3e595408a6..0d9f2aad11 100644
--- a/support/oidc-discovery-provider/README.md
+++ b/support/oidc-discovery-provider/README.md
@@ -50,6 +50,7 @@ The configuration file is **required** by the provider. It contains
| ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The error returned when no source is configured is confusing because it does not make clear that one must be set; it should be reworded to \"exactly one of the server_api, workload_api, or file sections must be configured\".", "category": "documentation", "verdict": "supported", "priority": "P2"... | null |
spiffe__spire__6063 | spiffe/spire | 6,063 | defect | 4dd9a149ebc2b9b6a335039a6f115c3fdd66f077 | 3b6991ed0fb6f4324af0b025cbaa586566923a76 | Fix metrics/health checks when retry_bootstrap=true |
**Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [ ] ~~Documentation updated?~~
**Affected functionality**
When retry_bootstrap is true, during the startup/retrying, health checks / metrics are not started. This time is currently is capped at 5 ... | diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go
index 9b1f9e2857..5fc35b5725 100644
--- a/pkg/agent/agent.go
+++ b/pkg/agent/agent.go
@@ -45,7 +45,8 @@ const (
)
type Agent struct {
- c *Config
+ c *Config
+ started bool
}
// Run the agent
@@ -97,6 +98,15 @@ func (a *Agent) Run(ctx context.Context) e... | 4 | 2 | 1 | [{"id": "G0", "claim": "Asks the author to elaborate on why the undefined state is needed for the new Started field, which the change treats as started=true.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using a buffer size of just 1 for the error chann... | null |
spiffe__spire__6091 | spiffe/spire | 6,091 | defect | 3e7102304c807229f7d26540d7cf3d5dd2840144 | acd27ea2b26f02a5c7109450dc2322b18bdc41c5 | Forward original grpc authority host to downstream plugins | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/pkg/server/plugin/nodeattestor/v1.go b/pkg/server/plugin/nodeattestor/v1.go
index ff97f23c422..08abdaea4b7 100644
--- a/pkg/server/plugin/nodeattestor/v1.go
+++ b/pkg/server/plugin/nodeattestor/v1.go
@@ -4,14 +4,20 @@ import (
"context"
"errors"
"io"
+ "net"
nodeattestorv1 "github.com/spiffe/spir... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename X-Forwarded-Host to something like X-Unsafe-Forwarded-Host and add comments explaining that the client-controlled value must not be used for attestation security, so users are not misled.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
spiffe__spire__6139 | spiffe/spire | 6,139 | defect | 6185e7f0edddb9aeff354a45f293d52be184eb05 | 2c5f7711b83a7f07b9ca9a99d359b77fd7176d06 | Use k8s Apply operation in `k8s_configmap` BundlePublisher plugin instead of Get / Create / Update | Use k8s Apply operation in `k8s_configmap` BundlePublisher plugin instead of Get / Create / Update.
Closes #6136. | diff --git a/doc/plugin_server_bundlepublisher_k8s_configmap.md b/doc/plugin_server_bundlepublisher_k8s_configmap.md
index bb47956106..853ad18a29 100644
--- a/doc/plugin_server_bundlepublisher_k8s_configmap.md
+++ b/doc/plugin_server_bundlepublisher_k8s_configmap.md
@@ -45,17 +45,22 @@ To use this plugin, configure Kub... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc's new statement that the Service Account needs permission to use only the `patch` verb is incomplete because `create` is still needed for it to work when the ConfigMap doesn't exist.", "category": "documentation", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
spiffe__spire__6164 | spiffe/spire | 6,164 | defect | 28711a6d5db958f8e4d066cae2565bf703e6c376 | b88e1b4d4b8473c823d9adfeee279018b5c87111 | Fix metrics/health checks when retry_bootstrap=true | Re-submission of 6063 with fix.
**Affected functionality**
When retry_bootstrap is true, during the startup/retrying, health checks / metrics are not started. This time is currently is capped at 5 minutes, requiring fairly long health check delays on Kubernetes, and no ability to collect metrics on what its doing.
... | diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go
index 1d1f17d937..c0a7273fb9 100644
--- a/pkg/agent/agent.go
+++ b/pkg/agent/agent.go
@@ -46,7 +46,8 @@ const (
)
type Agent struct {
- c *Config
+ c *Config
+ started bool
}
// Run the agent
@@ -66,8 +67,8 @@ func (a *Agent) Run(ctx context.Context) er... | 2 | 2 | 2 | [{"id": "G0", "claim": "The 8-second time.Sleep in the health cache start should be replaced with a context-based delay with cancellation support leveraging the clk clock, because the sleep also delays tests.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim":... | null |
spiffe__spire__6176 | spiffe/spire | 6,176 | defect | ef0312a422f73c494df9605fef6262aef767accb | 6521905d5965bbf46f9885dd98562fc9d58c96cd | Reduce node fetch dependancy for RPCs | **Pull Request check list**
- [ ] Commit conforms to CONTRIBUTING.md?
- [ ] Proper tests/regressions included?
- [ ] Documentation updated?
**Affected functionality**
Verifying attested nodes
**Description of change**
This PR adds a cache of attested nodes, with short TTLs, to be used when validating nodes... | diff --git a/cmd/spire-server/cli/run/run.go b/cmd/spire-server/cli/run/run.go
index 63dc3299c6e..f64e206b2b3 100644
--- a/cmd/spire-server/cli/run/run.go
+++ b/cmd/spire-server/cli/run/run.go
@@ -90,6 +90,7 @@ type serverConfig struct {
RateLimit rateLimitConfig `hcl:"ratelimit"`
SocketPath ... | 6 | 6 | 2 | [{"id": "G0", "claim": "The documented description of max_attested_node_info_staleness misspells 'fetching' as 'fetchign'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Cache.RefreshAttestedNode the error branch acquires the write lock only af... | null |
spiffe__spire__6179 | spiffe/spire | 6,179 | defect | 6767a3c3c9863b7723a467eb1724eabd4ad17ff7 | 945e369da85ddae0b396a46f86d052b1f2f9747f | Include selectors in 'no identity issued' logs | **Pull Request check list**
- [ ] Commit conforms to CONTRIBUTING.md?
- [ ] Proper tests/regressions included?
- [ ] Documentation updated?
**Affected functionality**
Agent logging when no identity could be issued
**Description of change**
The agent will include the previously attested selectors for the wo... | diff --git a/pkg/agent/endpoints/workload/handler.go b/pkg/agent/endpoints/workload/handler.go
index 68cf81087a9..11a1b314cd4 100644
--- a/pkg/agent/endpoints/workload/handler.go
+++ b/pkg/agent/endpoints/workload/handler.go
@@ -103,7 +103,10 @@ func (h *Handler) FetchJWTSVID(ctx context.Context, req *workload.JWTSVIDR... | 4 | 2 | 1 | [{"id": "G0", "claim": "Add a test case that contains actual selectors, so the logged selector format is exercised and can be controlled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request introduces the previously-attested selectors into t... | null |
spiffe__spire__6294 | spiffe/spire | 6,294 | defect | c68c6a452d1fdb9e482eeaad56c1a61248609a3a | 17b7ccc0113e174ed0b46719b8ec76f3efd83bac | Configurable HashAlgorithm For Generating Subject Key Identifiers | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
**Affected functionality**
`./pkg/common/x509util/keyid.go`
`GetSubjectKeyID` now receives a parameter to decide whether it should use SHA-1 or SHA-256 to compute the sub... | diff --git a/cmd/spire-server/cli/run/run.go b/cmd/spire-server/cli/run/run.go
index 4ddd3533c5..78ffbf87fa 100644
--- a/cmd/spire-server/cli/run/run.go
+++ b/cmd/spire-server/cli/run/run.go
@@ -38,6 +38,7 @@ import (
"github.com/spiffe/spire/pkg/common/log"
"github.com/spiffe/spire/pkg/common/telemetry"
"github.... | 5 | 5 | 3 | [{"id": "G0", "claim": "Rename the `hash_algorithm` configuration option to something like `fips_compatibility_mode` for a clearer purpose and move it under the experimental section until the fips-compatible changes are done.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
spiffe__spire__6303 | spiffe/spire | 6,303 | defect | def42e5354ba8f14c625a4f33da65e0629cff408 | 1c5982d0048b8faf75d8930dbf1fcb8620f59298 | Add a variant of the X.509 CA metric with absolute expiration time, not TTL | - [✓] Commit conforms to CONTRIBUTING.md?
- [✓] Proper tests/regressions included?
- [✓] Documentation updated?
**Affected functionality**
Add a variant of the X.509 CA metric with absolute expiration time, not TTL
**Description of change**
- Add support for float64 gauge metrics (needed for a time_t-valued m... | diff --git a/doc/telemetry/telemetry.md b/doc/telemetry/telemetry.md
index 847e1d6e9d9..9c343cad04b 100644
--- a/doc/telemetry/telemetry.md
+++ b/doc/telemetry/telemetry.md
@@ -61,6 +61,7 @@ The following metrics are emitted:
| Gauge | `entry`, `entries_by_parentid_cache`, `count` | ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR's approach of publishing the X.509 CA TTL only once at activation leaves the metric stale, so the TTL should be republished periodically (e.g. every couple of minutes by a go-routine) and, separately, the prometheus sink should get a configurable metric-expiry option — though the sink cha... | null |
spiffe__spire__6315 | spiffe/spire | 6,315 | defect | 2a38ff929c5dbd4e43526777da97075f7e571ae3 | 0c92adbcf33e844460725c10f9f096d019785ee5 | Using fixed pruning job interval with jitter instead of expired for configuration | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/pkg/server/node/manager.go b/pkg/server/node/manager.go
index 4553de73ff..37a5893cc2 100644
--- a/pkg/server/node/manager.go
+++ b/pkg/server/node/manager.go
@@ -2,6 +2,7 @@ package node
import (
"context"
+ "math/rand"
"time"
"github.com/andres-erbsen/clock"
@@ -11,6 +12,11 @@ import (
"githu... | 2 | 1 | 0 | [{"id": "G0", "claim": "“Node manager” in the log message is redundant with the subsystem_name field and the message could say what is being pruned.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the log line runs once at startup rather th... | null |
spiffe__spire__6320 | spiffe/spire | 6,320 | defect | 2a38ff929c5dbd4e43526777da97075f7e571ae3 | ca37f87f3ee76b7163798474844eac8e7eb035ea | Add capability to filter on caller path in rego | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/doc/authorization_policy_engine.md b/doc/authorization_policy_engine.md
index 906aa464ec8..2a3d8fba8db 100644
--- a/doc/authorization_policy_engine.md
+++ b/doc/authorization_policy_engine.md
@@ -88,6 +88,7 @@ The inputs that are passed into the policy are:
| input field | Description ... | 4 | 4 | 0 | [{"id": "G0", "claim": "A blank line should separate the new CallerPath field from the comment that follows it in policy.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment '// ignore result if error occurs' is unclear because it does... | null |
spiffe__spire__6362 | spiffe/spire | 6,362 | defect | 81916a411a7985d077262fccaee6956bd513e3af | 677b8a60b4f744a5c94bc5be3feec5da498dfc9a | Upgrade to go 1.24.8 and release SPIRE 1.12.6 | Address a set of CVEs that have been fixed in [go 1.25.2](https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI?pli=1). | diff --git a/.go-version b/.go-version
index 7a429d68a36..61b813d5e63 100644
--- a/.go-version
+++ b/.go-version
@@ -1 +1 @@
-1.24.6
+1.25.2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c4ad7d96126..45290a06df1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,12 @@
# Changelog
-## [1.12.6] - 2025-08-18
+## ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The go.mod version should be updated to 1.24.8 rather than 1.25.2 so that a patch release does not jump to the next minor Go release.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spiffe__spire__6363 | spiffe/spire | 6,363 | defect | e5ff1066df5cfa4ece1eee2bd5a36d17893d04ab | 02be781df830c7a9e508c2f983f5484b37412038 | Upgrade to go 1.25.2 and release SPIRE 1.13.2 | Address a set of CVEs that have been fixed in [go 1.25.2](https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI?pli=1). | diff --git a/.go-version b/.go-version
index ad2191947f..61b813d5e6 100644
--- a/.go-version
+++ b/.go-version
@@ -1 +1 @@
-1.25.0
+1.25.2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cfc30e94bf..42da055d47 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## [1.13.2] - 2025-10-08
+
+### S... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CHANGELOG entry should explicitly enumerate the CVEs addressed by the Go 1.25.2 upgrade instead of saying 'various CVEs'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spiffe__spire__6392 | spiffe/spire | 6,392 | defect | d68279d639f639462a714cf7696ad49280f57833 | 7cc13145d5d126a9faa9e7c794353b2934b08452 | Add certificate_id field for for GCP CAS Enterprise tier | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/pkg/server/plugin/upstreamauthority/gcpcas/gcpcas.go b/pkg/server/plugin/upstreamauthority/gcpcas/gcpcas.go
index 5124ba9a265..47201148b1c 100644
--- a/pkg/server/plugin/upstreamauthority/gcpcas/gcpcas.go
+++ b/pkg/server/plugin/upstreamauthority/gcpcas/gcpcas.go
@@ -2,7 +2,9 @@ package gcpcas
import (
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The 'spiffe-' prefix on the certificate ID is unnecessary and the truncation should happen at the end (e.g. certificateID[:63] or base32) rather than cutting the hash at [:28].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fa... | null |
spiffe__spire__6397 | spiffe/spire | 6,397 | defect | 56f0954b85dbfd2699b0ccbd927bfae1a0e4e203 | 04d2d0402b01d2a4a10f4344b61223c58f736274 | Validate KeyManager directory on agent startup | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/pkg/agent/plugin/keymanager/disk/disk.go b/pkg/agent/plugin/keymanager/disk/disk.go
index 0db099cca9..0df1784e1c 100644
--- a/pkg/agent/plugin/keymanager/disk/disk.go
+++ b/pkg/agent/plugin/keymanager/disk/disk.go
@@ -72,6 +72,10 @@ func (m *KeyManager) Configure(_ context.Context, req *configv1.ConfigureR... | 2 | 2 | 0 | [{"id": "G0", "claim": "The FailedPrecondition status returned when verifyDirectory fails omits the underlying error, making it hard to debug; it should include the error, e.g. \"directory validation failed: %v\", err.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
spiffe__spire__6410 | spiffe/spire | 6,410 | defect | 9c5d16a98518f229b4403d695562d0e8382f0312 | bb1d88d1a165e9cddbf6f10cb367ac519a8f3d4d | Add KMS key tagging support to AWS KMS plugin (aws_kms) | **PR check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
All tests complete successfully.
The application builds correctly.
**Affected functionality**
"aws_kms" plugin (`pkg/server/plugin/keymanager/awskms`)
**Description of change... | diff --git a/doc/plugin_server_keymanager_aws_kms.md b/doc/plugin_server_keymanager_aws_kms.md
index b67f6986dc..aaf9a5fd68 100644
--- a/doc/plugin_server_keymanager_aws_kms.md
+++ b/doc/plugin_server_keymanager_aws_kms.md
@@ -40,6 +40,22 @@ The plugin attempts to detect and prune stale aliases. To facilitate stale ali... | 4 | 4 | 1 | [{"id": "G0", "claim": "Support for custom tags should reserve the `spire-` tag-key prefix so the plugin can safely use it for its own tags in the future.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Key tagging section of the plugin documentation ... | null |
spiffe__spire__6431 | spiffe/spire | 6,431 | defect | 53fd13ce9e459442f3f00e1bf10551304aafb9f0 | 60aef8b1e781c610632422f5408b75e54ba02311 | Remove 'retry_rebootstrap' agent config | This has been deprecated since 1.13 and scheduled to be removed in 1.14 | diff --git a/cmd/spire-agent/cli/run/run.go b/cmd/spire-agent/cli/run/run.go
index 315cd1f1e8..374c344adb 100644
--- a/cmd/spire-agent/cli/run/run.go
+++ b/cmd/spire-agent/cli/run/run.go
@@ -67,7 +67,6 @@ type agentConfig struct {
DataDir string `hcl:"data_dir"`
AdminSocketPath ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new log message should say \"Trust Bundle\" instead of the typo \"Trust Bandle\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new log message should say \"Trust Bundle\" instead of the typo \"Trust Bandle\".", ... | null |
spiffe__spire__6454 | spiffe/spire | 6,454 | defect | c09241014e2b21c59123f5fc541aa7fb65430355 | ae0cddcc8550471d2bc2efd0887da7e7e4c7f82a | fix: NewJWTSVID has shorter timeout when a cached JWT exists | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
**Affected functionality**
Cache behaviour for JWT-SVIDs on the Agent
**Description of change**
As described in https://github.com/spiffe/spire/issues/5994, the Ag... | diff --git a/pkg/agent/client/client.go b/pkg/agent/client/client.go
index afd5d2d279..3185c54129 100644
--- a/pkg/agent/client/client.go
+++ b/pkg/agent/client/client.go
@@ -43,7 +43,12 @@ var (
}
)
-const rpcTimeout = 30 * time.Second
+const (
+ rpcTimeout = 30 * time.Second
+ // We can be more aggressive with t... | 3 | 3 | 3 | [{"id": "G0", "claim": "The 1 second cache-hit timeout is too low to reliably get a JWT-SVID and should be raised to 5 seconds, or at most 3 seconds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The lower timeout should apply only when the cached ... | null |
spiffe__spire__6491 | spiffe/spire | 6,491 | defect | dbbe83adf45dc89e009a071d96a443373d8769e9 | a11fc244c6c5dee1bedff4646efafe60f439cde5 | fix: fetch federated trust bundles concurrently | SPIRE agent periodically syncs entries, federated bundles and SVIDs from
the SPIRE server. This happens every 5 seconds with a backoff. There is
a 30 second timeout for this process. If there are many federations for
the entries allowed for the agent, this timeout can be exceeded.
This change adds a concurrent fetch f... | diff --git a/pkg/agent/client/client.go b/pkg/agent/client/client.go
index afd5d2d2799..712dcb1ab5e 100644
--- a/pkg/agent/client/client.go
+++ b/pkg/agent/client/client.go
@@ -43,7 +43,12 @@ var (
}
)
-const rpcTimeout = 30 * time.Second
+const (
+ rpcTimeout = 30 * time.Second
+
+ // maxBundleWorkers is the maxi... | 4 | 4 | 2 | [{"id": "G0", "claim": "Rename the new bundle-fetching functions to include 'federated' in their names since they can only deal with federated bundles (fetchBundle to fetchFederatedBundle, fetchBundlesConcurrently to fetchFederatedBundlesConcurrently).", "category": "maintainability", "verdict": "supported", "priority"... | null |
spiffe__spire__6501 | spiffe/spire | 6,501 | defect | c71d6f5e1e9617db51dc5ab471ce0f2677d2d73a | d25fdfa3ce48e97f96a5e7bc76912532f65908fc | Use returned SPIFFE ID returned with JWT-SVID for caching | We use our cached entry for requesting a new svid which may be different from the one that the server has. It may happen that entry gets updated around the same time that a cached SVID is renewed, including changing the SPIFFE ID. In this case the SPIFFE ID of the returned SVID may be different from the one of the entr... | diff --git a/pkg/agent/client/client.go b/pkg/agent/client/client.go
index afd5d2d279..8eeb91aa69 100644
--- a/pkg/agent/client/client.go
+++ b/pkg/agent/client/client.go
@@ -77,7 +77,7 @@ type Client interface {
SyncUpdates(ctx context.Context, cachedEntries map[string]*common.RegistrationEntry, cachedBundles map[st... | 4 | 3 | 0 | [{"id": "G0", "claim": "Consider returning spiffeid.ID directly instead of a string from NewJWTSVID to avoid the double parsing and improve type safety.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Overwriting the spiffeID variable with the server's SP... | null |
spiffe__spire__6645 | spiffe/spire | 6,645 | defect | e0624df4104ab83ce6a18bcf098d8829d9d1ad9a | 7720fde733a247ca523e06cdaf2b25a347ed3d9a | Improve entry lookup with events based cache | The performance of looking up registration entries with the events based cache seem to be significantly lower than the full-sync one. There are some things that we can do to improve things:
* For looking up specific entries we can stop searching when we found all entries. This imporves the BenchmarkEntryLookup test ... | diff --git a/pkg/server/authorizedentries/cache.go b/pkg/server/authorizedentries/cache.go
index acd5ca3e0c9..ccc339111e9 100644
--- a/pkg/server/authorizedentries/cache.go
+++ b/pkg/server/authorizedentries/cache.go
@@ -1,7 +1,6 @@
package authorizedentries
import (
- "fmt"
"sync"
"time"
@@ -22,7 +21,6 @@ co... | 6 | 5 | 0 | [{"id": "G0", "claim": "The EntriesByParentID stat should be removed, since it should always be equal to EntriesByEntryID and is arguably not important.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In updateEntry, c.entriesByEntryID[entry.Id] ... | null |
spiffe__spire__6661 | spiffe/spire | 6,661 | defect | 5a0ff3ac562a44376c2b4f6dea1609e11aee0ce4 | 4b6106c2cd7c405eff6b7fca1c5ee03227fddbc4 | Make the periodic cache rebuild happen periodically | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated? (n/a)
**Affected functionality**
Node cache introduced in https://github.com/spiffe/spire/pull/6176.
**Description of change**
Previously the periodic cache rebuild wo... | diff --git a/pkg/server/cache/nodecache/cache.go b/pkg/server/cache/nodecache/cache.go
index b7ca23ac417..8ba2b42764e 100644
--- a/pkg/server/cache/nodecache/cache.go
+++ b/pkg/server/cache/nodecache/cache.go
@@ -133,14 +133,14 @@ func (c *Cache) RemoveAttestedNode(spiffeId string) {
}
func (c *Cache) PeriodicRebui... | 1 | 1 | 1 | [{"id": "G1", "claim": "The test should wait for the mock clock's Ticker() to be called (e.g. clk.WaitForTicker) before performing the rest of the checks, otherwise the mock clock is a source of flakiness.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spiffe__spire__6718 | spiffe/spire | 6,718 | defect | 46b66b1f2d6b75c11ce87fbd43449e6cadbffd94 | 0a042da15ad08e63ee915bbe9e7e6641001546c5 | implementing optional tls config for prometheus scraping | <!--
1. If this is your first PR, please read our contributor guidelines
https://github.com/spiffe/spiffe/blob/master/CONTRIBUTING.md
https://github.com/spiffe/spire/blob/main/CONTRIBUTING.md
2. Please remember to include a DCO on every commit (`git commit -s`)
https://github.com/apps/dco
-->
**Pull Request ... | diff --git a/conf/agent/agent_full.conf b/conf/agent/agent_full.conf
index b7e0d3f52cb..52e0c69760c 100644
--- a/conf/agent/agent_full.conf
+++ b/conf/agent/agent_full.conf
@@ -523,6 +523,13 @@ plugins {
# # port: Prometheus exporter listen port.
# port = 9988
+
+# # optional TLS configurati... | 2 | 2 | 0 | [{"id": "G0", "claim": "The error-case tests should include the actual error encountered (the underlying cause) in their assertions, as is done in similar tests elsewhere.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the TLSConfig field CAFile ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.