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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spiffe__spire__6732 | spiffe/spire | 6,732 | defect | 46b66b1f2d6b75c11ce87fbd43449e6cadbffd94 | d5707c0c2beda6ead81bb5dee06f9728ba67f566 | Remove selectors from agent logs | The selectors can contain all sorts of information, it's probably best to never log the full set of discovered selectors from plugins. There is still one more place which logs it at debug level, which should be ok since they are useful for debugging. | diff --git a/pkg/agent/attestor/workload/workload.go b/pkg/agent/attestor/workload/workload.go
index 1ff65b42c54..a2e64fa1aa0 100644
--- a/pkg/agent/attestor/workload/workload.go
+++ b/pkg/agent/attestor/workload/workload.go
@@ -76,7 +76,7 @@ func (wla *attestor) Attest(ctx context.Context, pid int) ([]*common.Selector... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment above the changed logging call still says the partial set of selectors is logged for debugging, which the PR removes, so it should be updated or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spiffe__spire__6751 | spiffe/spire | 6,751 | defect | 05bb68e756be07aedc94f472bfcb939e5b021726 | c5416526b76267ee5b7780483dea012a7b4c9a63 | Server: Allow Azure Managed HSM to be used in the azurekeyvault key manager plugin | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [ ] Documentation updated?
**Affected functionality**
The azure keyvault key manager plugin does not work with Azure Managed HSM.
**Description of change**
* Updated `keyTypeFromKeySpec` to allo... | diff --git a/pkg/server/plugin/keymanager/azurekeyvault/azure_key_vault.go b/pkg/server/plugin/keymanager/azurekeyvault/azure_key_vault.go
index aa6cc4d122e..67012def381 100644
--- a/pkg/server/plugin/keymanager/azurekeyvault/azure_key_vault.go
+++ b/pkg/server/plugin/keymanager/azurekeyvault/azure_key_vault.go
@@ -541... | 1 | 1 | 1 | [{"id": "G0", "claim": "The key-type normalization should explicitly check for the RSA-HSM and EC-HSM key types rather than stripping any '-HSM' suffix, in case Azure adds other key types that could cause issues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spiffe__spire__6763 | spiffe/spire | 6,763 | defect | 9385a1ffa92360f9e43d00f14ad9af8d86ba4630 | e53f3f7df404016f7a536ec92ece7dec0db22bf2 | Don't overwrite agent version on re-attestation | **Pull Request check list**
- [ ] Commit conforms to CONTRIBUTING.md?
- [ ] Proper tests/regressions included?
- [ ] Documentation updated?
**Affected functionality**
Reported agent version after re-attestation.
**Description of change**
Once the agent re-attests we update the node in the datastore using a... | diff --git a/pkg/server/api/agent/v1/service.go b/pkg/server/api/agent/v1/service.go
index a91f460753..200811fbba 100644
--- a/pkg/server/api/agent/v1/service.go
+++ b/pkg/server/api/agent/v1/service.go
@@ -387,7 +387,14 @@ func (s *Service) AttestAgent(stream agentv1.Agent_AttestAgentServer) error {
CertSerialNumb... | 2 | 2 | 0 | [{"id": "G0", "claim": "Extract the AttestedNodeMask into a shared package-level variable or small helper so the two identical definitions (in service.go and the endpoints middleware) cannot diverge when AttestedNode gains new fields.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "... | null |
spiffe__spire__6798 | spiffe/spire | 6,798 | defect | db8dcd90a20046267ca9ae205e8a8133e0c5a2cc | c0a77865aee1d2e1ed2ba8673e99be4686693d4f | agent/workloadattestor/docker: add rootless Podman support | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
**Affected functionality**
Agent `WorkloadAttestor "docker"` on Unix systems, specifically runtime socket selection for Podman workloads (including rootless Podman).
... | diff --git a/doc/plugin_agent_workloadattestor_docker.md b/doc/plugin_agent_workloadattestor_docker.md
index 3a178d997f..8a007acd57 100644
--- a/doc/plugin_agent_workloadattestor_docker.md
+++ b/doc/plugin_agent_workloadattestor_docker.md
@@ -1,12 +1,14 @@
# Agent plugin: WorkloadAttestor "docker"
-The `docker` plug... | 3 | 3 | 0 | [{"id": "G0", "claim": "A warning should be logged when strconv.ParseUint fails on a matched user-slice UID, because the code would otherwise silently fall through to the rootful Podman socket despite the workload being rootless.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
spiffe__spire__6819 | spiffe/spire | 6,819 | defect | 9cc19c35ea73af227cddd0b4423198a0b25453fd | 32bcd1731005fda27b38ea4fe402fe04c6e1732c | Add PROXY protocol support for rate limiting behind load balancers | ## Summary
When SPIRE server sits behind a load balancer that doesn't preserve client IPs, per-IP rate limiting treats all agents as one client (the LB IP). This adds opt-in PROXY protocol support so the server can extract real client IPs from the PROXY protocol header.
- Adds `listen_proxy_protocol` config option (d... | diff --git a/cmd/spire-server/cli/run/run.go b/cmd/spire-server/cli/run/run.go
index f56677565d4..d3bb445290a 100644
--- a/cmd/spire-server/cli/run/run.go
+++ b/cmd/spire-server/cli/run/run.go
@@ -88,6 +88,7 @@ type serverConfig struct {
LogSourceLocation bool `hcl:"log_source_location"`
Pr... | 2 | 2 | 1 | [{"id": "G0", "claim": "Without a ConnPolicy the proxyproto library accepts PROXY protocol headers from any connection, so a client reaching the SPIRE Server port directly could forge an arbitrary source IP and evade rate limiting; the boolean opt-in should be replaced with a proxy_protocol_trusted_cidrs list so the fe... | null |
spiffe__spire__6878 | spiffe/spire | 6,878 | defect | 6f49f25988c6b5a8ddcb89e4d5edbecd6722227e | 93b5a4345ae202bcc5d7c2f8faa72a0ed0930c0c | Handle Debug service in agent connection metrics middleware | **Pull Request check list**
- [x] Commit conforms to CONTRIBUTING.md?
- [x] Proper tests/regressions included?
- [x] Documentation updated?
**Affected functionality**
Agent metrics middleware (`pkg/agent/endpoints/metrics.go`), service name constants (`pkg/common/api/middleware/names.go`), and Debug API tele... | diff --git a/pkg/agent/endpoints/metrics.go b/pkg/agent/endpoints/metrics.go
index b8627e562d5..a3fbf2fffbf 100644
--- a/pkg/agent/endpoints/metrics.go
+++ b/pkg/agent/endpoints/metrics.go
@@ -37,8 +37,8 @@ func (m *connectionMetrics) Preprocess(ctx context.Context, _ string, _ any) (co
case middleware.DelegatedIden... | 2 | 2 | 0 | [{"id": "G0", "claim": "Request to also emit the two metrics emitted for the other services (connection counter and connection gauge) for the Debug service, instead of leaving it in the intentionally-not-emitting case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
spiffe__spire__6906 | spiffe/spire | 6,906 | defect | 81cb7d970c55444e984d8069aa0e213d43895808 | f5ad05258d9f0357e6b85b298a3d93176b1a5307 | Reject stale experimental sigstore config on upgrade | The k8s workload attestor previously decoded its HCL config without an `unusedKeyPositions` map, so unknown top-level keys were silently accepted. This adds `UnusedKeyPositions` to `HCLConfig` and reports an `unknown configurations detected: ...` error when any are found, matching the behavior of the docker workload at... | diff --git a/doc/plugin_agent_workloadattestor_docker.md b/doc/plugin_agent_workloadattestor_docker.md
index 6858c8f99d..e614554a4f 100644
--- a/doc/plugin_agent_workloadattestor_docker.md
+++ b/doc/plugin_agent_workloadattestor_docker.md
@@ -12,6 +12,7 @@ then querying the container runtime API (Docker by default, or ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new unused-key reporting could also affect users with extra keys in the non-experimental configuration, so it might be good to remember to point this out in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinel-coop__rv__265 | spinel-coop/rv | 265 | defect | 9de1297eeb87e178c0cba6c42e8ec21029a0933c | f152e9de679e79e4cfe153ea9abf3a6af629008e | Use standard XDG_DATA_HOME default directory (`~/.local/share`) | In https://github.com/spinel-coop/rv/pull/84, we were meant to start installing `XDG_DATA_HOME` or to the standard default directory for it, which is `~/.local/share`. See https://specifications.freedesktop.org/basedir/0.8.
But for some reason, we ended up using `~/.data` which as far as I can see is completely non ... | diff --git a/README.md b/README.md
index 74f593391..8ee6d451a 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ We happen to be using `rbenv` here, but `chruby`, `mise` and other tools all use
```bash
time rv ruby install 3.4.7
Downloaded https://github.com/spinel-coop/rv-ruby/releases/latest/download/ruby-3.... | 1 | 1 | 1 | [{"id": "G0", "claim": "When the user supplies a directory (e.g. via XDG_DATA_HOME), the code should not enforce UTF-8 on the directory's path, since a non-UTF-8 string is valid user input; to_string_lossy should be used only when displaying the path later.", "category": "correctness", "verdict": "supported", "priority... | null |
spinel-coop__rv__333 | spinel-coop/rv | 333 | defect | 9738ddf91e4c975a726c881d217fa5af10f72c32 | ac496da5cb72181c4c89064e78a22451917d513b | Prefer managed rubies when both managed and non managed rubies are installed for the same version | In #332, it was reported that if you have the latest ruby installed by both homebrew and rv, `rv ruby uninstall` will delete the homebrew one.
Furthermore, as you can see in `rv ruby list` output, `rv` prefers to use homebrew version over its own version (see the `*`):
```
% rv ruby list
ruby-3.2.9 [availabl... | diff --git a/crates/rv-ruby/src/lib.rs b/crates/rv-ruby/src/lib.rs
index b760944fc..a22b07854 100644
--- a/crates/rv-ruby/src/lib.rs
+++ b/crates/rv-ruby/src/lib.rs
@@ -41,6 +41,9 @@ pub struct Ruby {
/// Path to the Ruby installation directory
pub path: Utf8PathBuf,
+ /// Wheter this is a rv-managed ver... | 5 | 3 | 1 | [{"id": "G0", "claim": "The to_path_buf() calls on both sides of the managed-dir comparison are unnecessary and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "default_ruby_dirs should not unwrap() on strip_prefix(\"/\"), since... | null |
spinel-coop__rv__356 | spinel-coop/rv | 356 | defect | 1ddc267bec020697a40447e596a5920109f1540c | a98b51233de52b8d3d317446793bb0d770879027 | Discover only rubies matching the requested version | Possible fix for the remaining part of #353.
These are the tracing results (with some sleeps added to make `rv` slow so that the discovery logging is clearly visible):
#### Before (all rubies scanned, even for a `rv ci` command with a specific version pinned)
]
pub fn rubies(&self) -> Vec<Ruby> {
- self.discover_... | 3 | 2 | 0 | [{"id": "G0", "claim": "Rename discover_all_rubies to discover_installed_rubies, since \"all\" makes it sound like remote rubies are included too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Split the is_dir check out of the filter and pass t... | null |
spinel-coop__rv__390 | spinel-coop/rv | 390 | defect | 55e2367189a39efd3fe324a5be6b1cb452390b03 | 7ce97430162399188c13b384db35016db5f78ecc | Fix version-platform parsing | It was actually including part of the platform string as part of the version in some cases.
Follow up to #381. | diff --git a/crates/rv-gem-types/src/platform.rs b/crates/rv-gem-types/src/platform.rs
index aa1325f1a..3e0a2ebbd 100644
--- a/crates/rv-gem-types/src/platform.rs
+++ b/crates/rv-gem-types/src/platform.rs
@@ -276,17 +276,13 @@ impl FromStr for Platform {
/// into its version and platform components.
pub fn version_pl... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `version_platform_split` implementation could be simplified using `split_once` and cascading with `?` (`.ok()?`) instead of collecting the split parts and joining them back together.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinel-coop__rv__468 | spinel-coop/rv | 468 | defect | 9bcf0b1f6aa269166a817f1c5519ec78cd3de380 | f7924a57ce3881a801471ab8bf8019535b7a2431 | Allow `rv ci` to work without a Gemfile | There were two problems:
* Some code assumed an implicit `Gemfile` would always exist, like using `canonicalize_utf8` on it.
* We also shelled out to Bundler.bundle_path, which needs a `Gemfile` to find the project root.
The first problem is fixed by handling the implicit Gemfile case separately without assuming... | diff --git a/crates/rv/src/commands/clean_install.rs b/crates/rv/src/commands/clean_install.rs
index 18e6bd463..78b392049 100644
--- a/crates/rv/src/commands/clean_install.rs
+++ b/crates/rv/src/commands/clean_install.rs
@@ -121,8 +121,6 @@ pub enum Error {
UnknownExtension { filename: String, gemname: String },
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment beneath find_install_path, which mentions `Uses Bundler's `bundle_path``, should be updated too, since the code now uses Bundler's configured_bundle_path.path.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinel-coop__rv__495 | spinel-coop/rv | 495 | defect | 653a5e51c974939ade35c01121b21fb65b95d546 | d6a58f09a74b405b5aaeacdb63b69dfbc909baa1 | Fix default gem home | RubyGems sets the default gem path in user home to a directory that can be reused across abi-compatible rubies. We should do the same. | diff --git a/crates/rv-ruby/src/lib.rs b/crates/rv-ruby/src/lib.rs
index ebe58c973..95a37aeee 100644
--- a/crates/rv-ruby/src/lib.rs
+++ b/crates/rv-ruby/src/lib.rs
@@ -137,10 +137,7 @@ impl Ruby {
pub fn gem_home(&self) -> Utf8PathBuf {
let home = rv_dirs::home_dir();
- let legacy_path = home
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The forward slash used in gem_scope()'s format!(\"{}/{}\") may not work on Windows, and a path-composition helper from rv_dirs might be needed instead.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on abi() m... | null |
spinel-coop__rv__590 | spinel-coop/rv | 590 | defect | 7c4ddb2580a3c8e38cdfe29cf765a852cd035188 | aac741ea20d7de84077df21a56da98d99e76521d | Config file | Ok, I have been working on it trying to follow the description of the issue. (Fallback order, first configs and file format).
I will be honest with you, I disagree with the use of kdl over any of the well-know file formats for configuration. But I can live with that. (Don't hate me for say it haha)
I try to use t... | diff --git a/Cargo.lock b/Cargo.lock
index a44164f76..7ec35c61c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -164,6 +164,17 @@ dependencies = [
"tempfile",
]
+[[package]]
+name = "async-trait"
+version = "0.1.89"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9035ad2d096bed7955a320ee... | 11 | 10 | 7 | [{"id": "G0", "claim": "Leave the `ruby` setting out of this PR because its semantics are undefined and the issue it was proposed to work around was already fixed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `gem_home` setting should default to `N... | null |
spinframework__containerd-shim-spin__134 | spinframework/containerd-shim-spin | 134 | defect | ec4ad5c96f66addbbae116328987e932c0e213ee | 9744ac0392492f4e66149889366e3f12f6c380c5 | Conformance Testing Setup for Shim | Spin has created a set of conformance test to ensure all Spin runtimes conform to baseline requirements/expectations
Status: runs conformance test to successful termination 🎉
This is very draft:
- We need to decide how to push and pull the images to/from a registry for the tests. We may wish to push the images t... | diff --git a/Cargo.lock b/Cargo.lock
index 83c4fe40..8be7288e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,6 +23,18 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
+[[package]]
+name = "aes"
+versi... | 4 | 3 | 1 | [{"id": "G0", "claim": "The README prerequisites should point to the containerd install docs (a link) instead of the bare `containerd` and `ctr` bullets.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded Spin binary path `/home/kagold/... | null |
spinframework__spin-test__92 | spinframework/spin-test | 92 | defect | 37466bbebf42cd64aaac12b5ab9315345b8d13fb | 8535238d8061ae981642e25fae629e297116e026 | Add binary app for running conformance tests | This PR consumes the test from https://github.com/fermyon/conformance-tests and runs Spin test against it. This ensures that `spin-test` has the same observable behavior as other Spin runtimes that are run against these conformance tests (for now this is just Spin CLI, but it will grow to other runtimes in the future).... | diff --git a/Cargo.lock b/Cargo.lock
index 022e50d..fda1fa2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -169,6 +169,18 @@ version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+[[package]]
+name = "base64"
+v... | 2 | 1 | 0 | [{"id": "G0", "claim": "main in conformance-tests/src/main.rs should return anyhow::Result instead of panicking on unwraps.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing the default scheme fallback from Https to Http in calculate_defau... | null |
spinframework__spin__1115 | spinframework/spin | 1,115 | defect | d2665782075e7a9f9b2da4d13f1ffa492f797d2e | 7fd4fcfc0c6199692e203949a8476ab50719ceca | ref(*): make log output to stdout by default | + adds --silent flag to silence logs if needed
+ resolves #928
Signed-off-by: Michelle Dhanani <michelle@fermyon.com> | diff --git a/crates/trigger/src/cli.rs b/crates/trigger/src/cli.rs
index b619c4a788..10f9d6efd8 100644
--- a/crates/trigger/src/cli.rs
+++ b/crates/trigger/src/cli.rs
@@ -64,12 +64,12 @@ where
)]
pub follow_components: Vec<String>,
- /// Print all component output to stdout/stderr
+ /// Silence al... | 3 | 3 | 1 | [{"id": "G0", "claim": "The PR's reformatting of the spin-timer readme's list markers (asterisks to dashes) looks like unintended linter churn and is questioned as an unmotivated change.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep the re... | null |
spinframework__spin__1169 | spinframework/spin | 1,169 | defect | ca0b046487b19d3f39f757145bb417cf071ba8dc | b953210ae7ff0ec92cbcfb4c776d7253df05d373 | Rename `spin_version` to `spin_manifest_version` in Spin.toml | Ensures backwards compatibility.
Required bringing in `spin-app` crate to `build` and `loader` crates to access `LockedVersion` type.
fixes #1069
Thank you @lann for suggested implementation and @fibonacci1729 for pairing! | diff --git a/Cargo.lock b/Cargo.lock
index ae4839c871..628a70ed1a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4153,6 +4153,7 @@ dependencies = [
"anyhow",
"futures",
"serde",
+ "spin-app",
"spin-loader",
"subprocess",
"tokio",
@@ -4334,6 +4335,7 @@ dependencies = [
"serde",
"serde_json",
"sha2 0.10.6... | 6 | 5 | 2 | [{"id": "G0", "claim": "The manifest version enums derive Serialize while only Deserialize is customised, so serialising would emit the version as an int rather than the string form, and Serialize should simply be dropped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
spinframework__spin__1235 | spinframework/spin | 1,235 | defect | 98e198ed9360bbc98800ea52fb37bb158efeaeb7 | 21ae050f57c7115d0108b976a8a85d0083a84ce3 | Validate allowed key-value stores | Fixes #1232.
```
$ spin up
Error: Invalid key-value store 'hello'. This version of Spin supports only the 'default' store.
$ spin deploy
Error: Invalid key-value store 'hello'. This version of Spin supports only the 'default' store.
Learn more at https://developer.fermyon.com/cloud/faq
```
Unlike `allow... | diff --git a/crates/loader/src/lib.rs b/crates/loader/src/lib.rs
index 0eb307f33c..7ce84abf43 100644
--- a/crates/loader/src/lib.rs
+++ b/crates/loader/src/lib.rs
@@ -16,6 +16,7 @@ pub mod cache;
mod common;
pub mod digest;
pub mod local;
+mod validation;
/// Load a Spin application configuration from a spin.toml... | 3 | 3 | 0 | [{"id": "G0", "claim": "Taking out the integration test check that opening a permitted-but-non-existent store produces a distinctive guest error might leave a gap in the test regime, and the author asks for ideas around it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
spinframework__spin__2651 | spinframework/spin | 2,651 | defect | 112c4e4033cfdf888d46c589d5e17524c4563e23 | 32cfd963c3d206eeced508dc3fb58fa88e89d8c3 | Abstract pg client | Closes #2649 | diff --git a/crates/factor-outbound-pg/src/client.rs b/crates/factor-outbound-pg/src/client.rs
new file mode 100644
index 0000000000..fb43d474ad
--- /dev/null
+++ b/crates/factor-outbound-pg/src/client.rs
@@ -0,0 +1,75 @@
+use native_tls::TlsConnector;
+use postgres_native_tls::MakeTlsConnector;
+use spin_world::async_... | 9 | 8 | 1 | [{"id": "G0", "claim": "Rename the tokio_postgres::Client alias from PgClient to TokioClient in crates/factor-outbound-pg/src/client.rs, since presumably all clients are pg clients.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In build_client,... | null |
spinframework__spin__2780 | spinframework/spin | 2,780 | defect | d156648a2cac0609c28757fd4edadc42c427b876 | 0708080e032d9bd90044646c530c98a6af30e259 | Run sqlite statements | This works, but I don't love how it turned out. `ResolvedRuntimeConfig` knows nothing about the underlying runtime config type that is parsed from the runtime config source. This means that only the caller knows that the parsed runtime config has access to sqlite specific runtime config (and thus the list of labels -> ... | diff --git a/build.rs b/build.rs
index 3246e3ec7d..4f8a401003 100644
--- a/build.rs
+++ b/build.rs
@@ -68,16 +68,6 @@ error: the `wasm32-wasi` target is not installed
std::fs::create_dir_all("target/test-programs").unwrap();
build_wasm_test_program("core-wasi-test.wasm", "crates/core/tests/core-wasi-test");... | 3 | 3 | 1 | [{"id": "G0", "claim": "Running the sqlite statements could be done in `ExecutorHooks::configure_app`, which has access to `AppState`, instead of the current approach.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "`ExecutorHooks` is sync while the sqlite-s... | null |
spinframework__spin__2808 | spinframework/spin | 2,808 | defect | ee08554a49a94a1298973c0f673c337f0b4ce8d0 | f493669d574c51f9f3e7ee13a5426605e8b59ba5 | Give outbound http ability to ban private ips | We still allow private IPs in Spin CLI, but we might add the ability in the future to turn this off. Other runtimes might also want to take advantage of this feature. | diff --git a/Cargo.lock b/Cargo.lock
index a4ceb7fd44..42be97e2fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3632,6 +3632,12 @@ version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a611371471e98973dbcab4e0ec66c31a10bc356eeb4d54a0e05eac8158fe38c"
+[[package]]
+name = "ip_... | 2 | 2 | 1 | [{"id": "G0", "claim": "Now that the authority is resolved explicitly, the pre-existing string-matching hack (`.starts_with(\"failed to lookup address information\")`) in the connect error handling could be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"i... | null |
spinframework__spin__2826 | spinframework/spin | 2,826 | defect | 8de5926b396ab25ba89b7852bdf8d23aae1bab87 | c8dc850c3b711dd987f954dcbcf139dcfeddace1 | Add experimental `spin up --component` flag to run a subset of app components | fixes #2820
Say I have an app with 4 components but only want to run 2, I can do the equivalent of `spin up --component-id "foo" --component-id "bar"`
Approach: Modifies the locked app to remove undesired components and triggers before the locked app is loaded. Takes somewhat hacky approach of creating a tempora... | diff --git a/Cargo.lock b/Cargo.lock
index 6deab91851..231da6ebf2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7101,6 +7101,7 @@ dependencies = [
"futures",
"glob",
"hex",
+ "http 1.1.0",
"http-body-util",
"hyper 1.4.1",
"hyper-util",
@@ -7127,6 +7128,7 @@ dependencies = [
"spin-common",
"spin-doctor",
... | 28 | 21 | 2 | [{"id": "G0", "claim": "The component-scrubbing helpers should be considered for a move to a crate that other runtimes can consume.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trigger commands should not be computed twice: move the first call insi... | null |
spinframework__spin__2839 | spinframework/spin | 2,839 | defect | 49694dd03b99d41133d4ae5255df440ca60c3391 | b2692def9f322f33b24c56aa3f9b6cc969ba29e8 | Pass loader into TriggerAppBuilder | This allows users of the `TriggerAppBuilder` (like the containerd-shim) to pass in whatever loader they want. | diff --git a/crates/componentize/src/lib.rs b/crates/componentize/src/lib.rs
index e78269c256..7e43389e6e 100644
--- a/crates/componentize/src/lib.rs
+++ b/crates/componentize/src/lib.rs
@@ -466,7 +466,7 @@ mod tests {
let out_dir = PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
let mut cmd = pr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The CLI should not enable AOT component loading based solely on the unsafe-aot-compilation feature, since that is not how it has worked previously.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spinframework__spin__2869 | spinframework/spin | 2,869 | defect | 967fdf368612478cef176bccc491faffad680050 | 60e2a0d0cd121fad186caf89d293a053f1178b17 | Implement wasi-config | Fixes #2868.
This has the same considerations as our wasi-observe and wasi-keyvalue implementations in terms of versioning the Spin worlds - I mashed it into the existing Spin 2 worlds for development and testing but know that is not sustainable. (At this point, I'm assuming all this lot will be punted into a new S... | diff --git a/Cargo.lock b/Cargo.lock
index bb84e5a0d9..a2c11acfbb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7103,6 +7103,7 @@ version = "2.8.0-pre0"
dependencies = [
"anyhow",
"async-trait",
+ "futures",
"serde 1.0.210",
"spin-locked-app",
"thiserror",
diff --git a/crates/expressions/Cargo.toml b/crates/e... | 7 | 5 | 1 | [{"id": "G0", "claim": "All runtimes using VariablesFactor are forced to link the wasi-config interface; the reviewers want linking to be configurable by embedders of the factor (e.g. a crate feature flag or a dynamic check passed when the factor is constructed).", "category": "design", "verdict": "uncertain", "priorit... | null |
spinframework__spin__2887 | spinframework/spin | 2,887 | defect | ed8ab6f47632c27fbe4c634b37a1101e8c927743 | 927b2c41dd7ccff3ae4064a23cef3763edd73dc6 | Spin 3 world | This is based on conversations with @tschneidereit and @alexcrichton. It's broken into two commits so we can look at (some) different approaches.
> ~Note: this includes the wasi-config PR because I wanted to validate the requirement of "something that is in the Spin 3 world but not in Spin 2." In reality the wasi-... | diff --git a/crates/world/src/lib.rs b/crates/world/src/lib.rs
index d7adeb19f0..0ecb57ee1d 100644
--- a/crates/world/src/lib.rs
+++ b/crates/world/src/lib.rs
@@ -8,6 +8,7 @@ wasmtime::component::bindgen!({
world host {
include fermyon:spin/host;
include fermyon:spin/platform@2.0.0;
+ incl... | 2 | 2 | 1 | [{"id": "G0", "claim": "The empty top-level package (a package declaration with no worlds) breaks the way test bindings are generated.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new spin@3.0.0 platform world could drop its re-listed imports ... | null |
spinframework__spin__2892 | spinframework/spin | 2,892 | defect | 2a9bf7c57eda9aa42152f016373d3105170b164b | a071b6da8d9b35b01a0b9f570322dae0039c5be4 | fix: move component filtering methods to crates | Moves all the component filtering helpers to crates that are accessible to other runtime implementors to prevent code duplication. Also, enables runtimes to pass in extra validating functions.
Thank you @itowlson for pairing on this!
Most of the code is the same. I did change the error message on `validate_servi... | diff --git a/Cargo.lock b/Cargo.lock
index dcb490ed1f..1540148dd6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6877,9 +6877,14 @@ dependencies = [
name = "spin-app"
version = "2.8.0-pre0"
dependencies = [
+ "anyhow",
"serde 1.0.210",
"serde_json",
+ "spin-factors-test",
"spin-locked-app",
+ "tempfile",
+ "toki... | 6 | 3 | 0 | [{"id": "G0", "claim": "Since the ValidatorFn type alias is used in a public interface, it needs to be public and/or carry a doc comment.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be desirable to give validate_service_chaining_for_component... | null |
spinframework__spin__2996 | spinframework/spin | 2,996 | defect | 29ba553bab783ff7e4f974d9e9cccfc27df03361 | 06b25ee65bd9bc5163e0c791eece949a1cb8c77c | feat(push): allow pushing composed components to registry | ~WIP for now to flesh out the concept.~
Implements #2988
~Still working to add a test but the meat-and-potatoes is ready to serve.~ | diff --git a/Cargo.lock b/Cargo.lock
index 318106c7eb..1d4da00a9f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8226,6 +8226,7 @@ dependencies = [
"anyhow",
"async-compression",
"async-tar",
+ "async-trait",
"base64 0.22.1",
"chrono",
"dirs 5.0.1",
@@ -8238,6 +8239,8 @@ dependencies = [
"serde",
"serde_j... | 6 | 4 | 0 | [{"id": "G0", "claim": "Support toggling the new --skip-compose flag with an environment variable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It feels awkward for the assemble_layers function in the OCI client to contain composition logic; the review... | null |
spinframework__spin__3043 | spinframework/spin | 3,043 | defect | c1011ac8963625546964437cc7025b6e70eccc2e | edc36ebcecae8001c6d3b2b3ce0a44e82057e6b0 | Pool Postgres connections | Fixes #3030.
~Draft for now. Needs more testing and some tidying but I want to see if tests pass, and to verify with factors experts if I have the pools in the right place (AppState).~ | diff --git a/Cargo.lock b/Cargo.lock
index f979c8d7b1..76fb2d7374 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2173,6 +2173,40 @@ dependencies = [
"sha2",
]
+[[package]]
+name = "deadpool"
+version = "0.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ed5957ff93768adf7a65ab167a... | 7 | 7 | 1 | [{"id": "G0", "claim": "The generic bounds should be tidied: add `+ 'static` to the `ClientFactory` trait (and move the constraints onto `Client`) so the redundant `Send + Sync + 'static` constraints on impls elsewhere (e.g. host.rs) can be dropped.", "category": "maintainability", "verdict": "supported", "priority": "... | null |
spinframework__spin__3107 | spinframework/spin | 3,107 | defect | aab45e92597a50d1e47947181ae5fece075836e2 | 55f6934340524c043d255ba73bc373eed7853606 | Less allocations in router | This trades a bit of code complexity for less allocations in routing. Given routing can be quite performance sensitive, in my opinion this tradeoff is worth it.
On every request we no longer:
* Clone a `RouteHandler` (3-4 `String`s)
* Clone the `trailing_wildcard` `String`
In service chaining we also no longer... | diff --git a/crates/http/src/routes.rs b/crates/http/src/routes.rs
index f470c64040..f40d0c12e4 100644
--- a/crates/http/src/routes.rs
+++ b/crates/http/src/routes.rs
@@ -4,7 +4,7 @@
use anyhow::{anyhow, Result};
use indexmap::IndexMap;
-use std::{collections::HashMap, fmt};
+use std::{borrow::Cow, collections::Has... | 3 | 3 | 1 | [{"id": "G0", "claim": "The (path, best_match) tuple stored in RouteMatch should be replaced with a struct, or its doc comment should say what the tuple elements are, so the code is more self-documenting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
spinframework__spin__3246 | spinframework/spin | 3,246 | defect | f51829ee24fa7eb43c201a7a9599d94f61415168 | ea595fcfd5df993eb55155409fb56eaf37f4d715 | Build profiles | Incomplete draft for discussion. This diverges from [Till's draft SIP](https://github.com/spinframework/spin/pull/3075) in some ways, mostly cosmetic and open to change; but also somewhat in preferring to constrain variation between profiles.
Example:
```toml
[component.build-profile-test]
source = "target/was... | diff --git a/crates/build/src/lib.rs b/crates/build/src/lib.rs
index 8ad3be2907..f57380c239 100644
--- a/crates/build/src/lib.rs
+++ b/crates/build/src/lib.rs
@@ -15,14 +15,18 @@ use subprocess::{Exec, Redirection};
use crate::manifest::component_build_configs;
+const LAST_BUILD_PROFILE_FILE: &str = "last-build.tx... | 5 | 2 | 0 | [{"id": "G0", "claim": "Would it be reasonable to handle profiles in a new normalize_manifest pass (i.e. normalize_manifest(manifest, profile)) so most of the profile logic is hidden from downstream code, rather than as accessor methods on the schema types?", "category": "design", "verdict": "supported", "priority": "P... | null |
spinframework__spin__3250 | spinframework/spin | 3,250 | defect | 996d50ac6a9289cc1819a47bcd88b0da33c568c0 | 06a815f49d46449cce3205dcd653ed7eadb7fb82 | Static HTTP responses | Fixes #3242. Example `spin.toml` fragment:
```toml
[[trigger.http]]
route = "/test"
static_response = { body = "hello!\n\nand more hello!\n" }
[[trigger.http]]
route = "/fermyon-me-up"
static_response = { status_code = 302, headers = { location = "https://www.fermyon.com" } }
```
This is, in some ways, ... | diff --git a/crates/http/src/config.rs b/crates/http/src/config.rs
index 552780b775..a21ed8c7c4 100644
--- a/crates/http/src/config.rs
+++ b/crates/http/src/config.rs
@@ -2,16 +2,39 @@ use serde::{Deserialize, Serialize};
use spin_http_routes::HttpTriggerRouteConfig;
/// Configuration for the HTTP trigger
-#[derive... | 1 | 1 | 1 | [{"id": "G0", "claim": "Serde does not reliably support combining deny_unknown_fields with flatten, so the HttpTriggerConfig/HttpTriggerHandler design should be replaced with one of the suggested alternatives.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
spinframework__spin__3265 | spinframework/spin | 3,265 | defect | d1eb9acd42addcb4782afd0a1f1fbe0654063cb4 | 32944e7a23afb1da34167091e4e69cc75332091b | Spin up checks required variables for some `Providers` | New logic only allows no default variable before runtime if the Provider is of a Dynamic type.
Closes #3115, including tests
The PR checks if the variable default isn't provided when required. A new hook handles the check: VariablesValidatorHook.
Inspired by @itowlson's https://github.com/spinframework/spin/is... | diff --git a/Cargo.lock b/Cargo.lock
index 07c1e43171..cf8512ea57 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8444,6 +8444,7 @@ dependencies = [
"anyhow",
"async-trait",
"futures",
+ "serde",
"spin-locked-app",
"thiserror 2.0.12",
"tokio",
@@ -9158,6 +9159,7 @@ dependencies = [
"spin-core",
"spin-facto... | 9 | 6 | 3 | [{"id": "G0", "claim": "The new startup existence-check logic is wrong: it returns as soon as the first static provider lacks the variable and fails the check even when a dynamic provider is in play, so variables that a dynamic or a later static provider could satisfy are reported missing (which is why the vault integr... | null |
spinframework__spin__3282 | spinframework/spin | 3,282 | defect | 1525f7b2c84fee3180c89608c26afdcbcc390f16 | c9abacff58f5941dd1b1a062fdcfe52bf6a44ffc | variables: Refactor Provider::kind into ::may_resolve | I'd like to avoid the implicit calls to `get` required by the current implementation. I'm not attached to specifics here otherwise. | diff --git a/crates/expressions/src/lib.rs b/crates/expressions/src/lib.rs
index 30eb200003..ac9600952c 100644
--- a/crates/expressions/src/lib.rs
+++ b/crates/expressions/src/lib.rs
@@ -11,8 +11,6 @@ pub use provider::Provider;
use template::Part;
pub use template::Template;
-use crate::provider::ProviderVariableK... | 1 | 1 | 0 | [{"id": "G0", "claim": "The function might no longer need to be async now that the pull request's rewrite removed every await from its body.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinframework__spin__3290 | spinframework/spin | 3,290 | defect | e4a160066d43f88023466f3940dbc9f31bb5dc94 | 6cda0d07798c6552d6d7c87dfc4ebfa10632df45 | Dependencies by component ID reference | Draft for discussion of the approach.
The idea here is to allow dependencies of the form:
```
[component.the-main-course.dependencies]
"useless:feature@0.0.1" = { component_id = "yet-another-example-dep" }
```
where `yet-another-example-dep` is another component in the manifest (typically, one not attached ... | diff --git a/crates/build/src/manifest.rs b/crates/build/src/manifest.rs
index db570e4145..a27b067dde 100644
--- a/crates/build/src/manifest.rs
+++ b/crates/build/src/manifest.rs
@@ -70,7 +70,7 @@ pub async fn component_build_configs(manifest_file: impl AsRef<Path>) -> Result<
let manifest = spin_manifest::manifes... | 4 | 3 | 1 | [{"id": "G0", "claim": "It would be possible to also support the table form of a dependency entry (e.g. [component.the-main-course.dependencies.\"useless:feature@0.0.1\"] with component_id = \"yet-another-example-dep\") instead of only inline tables.", "category": "design", "verdict": "supported", "priority": "P2", "sc... | null |
spinframework__spin__3361 | spinframework/spin | 3,361 | defect | 0ec6bc47426d2f80a376c07a22d08af73082bff2 | 651813b47a7545bf0706cd78462d9dd8fe4fdf7d | Enable running `wkg oci` packages as bare Wasm | Fixes #3360.
I tested this against `wkg oci push`:
```
$ wkg oci push ghcr.io/itowlson/v3vanilla40:1 ./target/wasm32-wasip2/release/v3vanilla40.wasm
$ spin up -f ghcr.io/itowlson/v3vanilla40:1
```
Note that I've only tested to the "hello world" level: if we believe we need to try this on a wider range of bi... | diff --git a/crates/oci/src/client.rs b/crates/oci/src/client.rs
index c4ff7c67ba..9b08ad5e37 100644
--- a/crates/oci/src/client.rs
+++ b/crates/oci/src/client.rs
@@ -35,6 +35,8 @@ pub const DATA_MEDIATYPE: &str = "application/vnd.wasm.content.layer.v1+data";
pub const ARCHIVE_MEDIATYPE: &str = "application/vnd.wasm.c... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new type and its usages should be spelled `artifact` (as in the OCI spec's `artifactType`) instead of `artefact`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It may be worth having the loader check that the loaded ... | null |
spinframework__spin__3429 | spinframework/spin | 3,429 | defect | 9f6df5f0b33c56a38ce0ad9c1e17830fb0ba298c | ba0c3d816bda85a1e8e1aad87900cc85da722485 | Add `--format json` option for HTTP trigger route output | Resolve #949
I am a beginner for Rust, so do let me know if there is any better approach in the code I may take.
## Summary
- Add a `--format` CLI flag to the HTTP trigger that supports `plain` (default) and `json` output formats
- When `--format json` is specified, route and listener information is printed to s... | diff --git a/crates/runtime-config/src/lib.rs b/crates/runtime-config/src/lib.rs
index fedd1b1512..b9b3448be7 100644
--- a/crates/runtime-config/src/lib.rs
+++ b/crates/runtime-config/src/lib.rs
@@ -84,7 +84,7 @@ impl<T> ResolvedRuntimeConfig<T> {
let from_path = runtime_config_path
.map(|... | 7 | 5 | 2 | [{"id": "G0", "claim": "The PR description and test plan say the JSON output should include listener information, but the emitted JSON (and the test's assertions) cover only base_url and routes, so either listener details should be added to the JSON schema or the description/tests should be adjusted to match the actual... | null |
spinframework__spin__645 | spinframework/spin | 645 | defect | d1126cc23ef5238fd284ca09601d1bbc3d19c12b | 598e533825632503a537099f2cbf11eee771f5c6 | feat: add exclude-files | resolves #554 | diff --git a/crates/loader/src/local/assets.rs b/crates/loader/src/local/assets.rs
index 538a1293ed..16c9dabb09 100644
--- a/crates/loader/src/local/assets.rs
+++ b/crates/loader/src/local/assets.rs
@@ -6,7 +6,10 @@ use crate::assets::{
use anyhow::{anyhow, bail, ensure, Context, Result};
use futures::{future, stream... | 7 | 6 | 0 | [{"id": "G0", "claim": "The PR replaces the original iterator-chain implementations in collect_pattern and collect_placement with handcrafted loops; the original iterator expressions should be kept (adding the exclusion check as a filter clause) rather than handcrafting mutation loops.", "category": "maintainability", ... | null |
spinframework__spin__828 | spinframework/spin | 828 | defect | 4aed184d1bed465b6c39289cb91b840248f122db | f59eb4551786a2300e05ff7a436a4126eed68c1b | feat(outbound-redis): Add DEL command | Closes #801.
Also:
- adds basic integration test for outbound-redis crate
- adds `incr`/`del` support into go sdk
PR into https://github.com/fermyon/spin-language-support-matrix/pull/1
Not included into the default test suite because redis container has to be set up on CI first. | diff --git a/Cargo.toml b/Cargo.toml
index e7f0ac4d5a..e9242691c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -74,6 +74,7 @@ vergen = { version = "7", default-features = false, features = [ "build", "git"
[features]
default = []
e2e-tests = []
+outbound-redis-tests = []
[workspace]
members = [
diff --git a/Makef... | 2 | 2 | 0 | [{"id": "G0", "claim": "Replace the awkward `&b\"Eureka!\"[..]` slice expression with the simpler `b\"Eureka!\"` in the integration test's initial redis::set call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the awkward `&b\"0\"[..]` ... | null |
spinframework__spin__890 | spinframework/spin | 890 | defect | 7ee0b1ced63673920eda02f187e81f1b1a6e138e | 2ff682cf4ee44715437fcd6c5105004367c358a4 | Get Wasm modules from Web URLs | Fixes #393.
Currently a proof of concept, needs tidying, testing and error handling, plus re-assessing against the requirements in #610 (e.g. should support SHA512, redirects, caching, `file:` URL support, making the digest optional).
Also note this uses a `url/digest` object instead of overloading the string for... | diff --git a/crates/loader/src/assets.rs b/crates/loader/src/assets.rs
index c8f708e54b..45f226b192 100644
--- a/crates/loader/src/assets.rs
+++ b/crates/loader/src/assets.rs
@@ -90,6 +90,15 @@ pub fn file_sha256_digest_string(path: impl AsRef<Path>) -> std::io::Result<Stri
Ok(digest_string)
}
+/// Return the h... | 4 | 3 | 0 | [{"id": "G0", "claim": "sha256_digest_string should be written as the one-liner format!(\"{:x}\", Sha256::digest(data)), since the longer new/update/finalize form is no clearer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Digest logic is dupl... | null |
spinframework__spin__934 | spinframework/spin | 934 | defect | c368fce72261339b6de908e22b81cf21217a8181 | 4502cc89b8296650c760296089a359bfe6e278db | Fix `spin up --help` omitting many options if app is not ready to lock | Partially fixes #932.
There remains an outstanding issue where `spin up --help` will skip "trigger" arguments if the app contains no components. This happens because the serialisation objects make `component` a mandatory field, so we cannot even load the file in this case. This could be addressed by making `compon... | diff --git a/src/commands/up.rs b/src/commands/up.rs
index 958a59ccd2..db41368401 100644
--- a/src/commands/up.rs
+++ b/src/commands/up.rs
@@ -148,32 +148,21 @@ impl UpCommand {
ApplicationTrigger::Redis(_) => "redis",
};
- // Build and write app lock file
- let locked_app = spin_t... | 3 | 2 | 0 | [{"id": "G0", "claim": "The help-args handling can be simplified to a single `cmd.arg(\"--help-args-only\")` call, since it no longer has to match the type of `trigger_args`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new helper should b... | null |
spinnaker__kleat__129 | spinnaker/kleat | 129 | defect | 1d42fc37545346fb0f26b63c532c203540531e49 | 1e7b11bde8b770cf635a3d251b16ee56f015313b | refactor(proto): exclude "mine canary" feature flag from Deck's protos | Related to: https://github.com/spinnaker/spinnaker/issues/5939
Upon further investigation, the "mine canary" feature flag should only be gating the pre-Kayenta legacy canary stages, which we suspect is currently only used by opsmx's custom build. To avoid confusing OSS users, do not permit configuration of this flag... | diff --git a/api/client/features.pb.go b/api/client/features.pb.go
index 963936a9..6953e585 100644
--- a/api/client/features.pb.go
+++ b/api/client/features.pb.go
@@ -34,8 +34,6 @@ type Features struct {
// Enable pipeline template support. Read more at https://github.com/spinnaker/dcd-spec.
PipelineTemplates *wr... | 3 | 2 | 1 | [{"id": "G0", "claim": "The way the removed mineCanary field is handled in the proto should be settled — deprecated annotation (1), remove-and-reserve (2), or delete-and-renumber (3) — with deleting the field and renumbering (3) preferred so kleat makes no implied backwards-compatibility guarantee.", "category": "desig... | null |
spinnaker__kleat__161 | spinnaker/kleat | 161 | defect | 12514674bdf8b88f8015efbe48215103169aaa95 | 782036bf0d6112130893a7fec0aa5e9bbab1aa65 | Plugin compatibility validation command | This PR is about include a new command in kleat named `kleat plugins validate`.
This command will validate if the plugins configured in a halconfig has compatibility issues with the Spinnaker version in the halconfig and output any issue found.
`kleat plugins validate` uses the interfaces defined here: https://gi... | diff --git a/api/client/config/halconfig.pb.go b/api/client/config/halconfig.pb.go
index abf53b12..5da31f7d 100644
--- a/api/client/config/halconfig.pb.go
+++ b/api/client/config/halconfig.pb.go
@@ -18,6 +18,7 @@ import (
pubsub "github.com/spinnaker/kleat/api/client/pubsub"
repository "github.com/spinnaker/kleat/a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The generated field-description tables for Plugin and Repository in docs/docs.md are empty; field descriptions should be included, sourced from the comments in the .proto files.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
spinnaker__kleat__29 | spinnaker/kleat | 29 | defect | 2b87e71f1d07ad1d2efc08f088c9e4c751802361 | 6934862be52ef9f132c29ddda30389faf756ce67 | feat(echo): Add notification config | * refactor(core): Use sigs.k8s.io/yaml instead of ghodss/yaml
There has not been a release of ghodss/yaml in more than 3 years; it looks like kubernetes has started maintaining a fork of it with more recent releases, so let's use that.
The motivation for this is that I want to use UnmarshalStrict in tests so ... | diff --git a/README.md b/README.md
index e965036d..8a1273b3 100644
--- a/README.md
+++ b/README.md
@@ -18,19 +18,22 @@ be used as input to Kleat.
#### Required Changes
- A Halyard-generated halconfig contains two top-level fields:
-`deploymentConfigurations` (a list of `HalConfig`s) and `currentDeployment`,
-(the n... | 4 | 4 | 0 | [{"id": "G0", "claim": "The Slack webhook comment should capitalize \"Slack\" (\"Force usage of incoming webhooks endpoint for Slack. Optional, only set if\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Twilio `from` comment should use \"e... | null |
spinnaker__kleat__32 | spinnaker/kleat | 32 | defect | 897832a5aa489303476c82c625f44500b54cd623 | 33cef4101fa48b1dcb23a80041009780bf96d58c | feat(echo): Add GCB account and stats | * feat(echo): Add GCB account
Echo requires GCB accounts to be in its config file, as it listens to their configured Pub/Sub topics to respond to changes in build status.
This commit adds top-level CI field to the hal config, and implements support for GCB accounts. Support for other CI accounts will be done ... | diff --git a/api/client/echo.pb.go b/api/client/echo.pb.go
index 84b896cf..33178254 100644
--- a/api/client/echo.pb.go
+++ b/api/client/echo.pb.go
@@ -35,6 +35,7 @@ type EchoConfig struct {
GithubStatus *GithubStatusNotification `protobuf:"bytes,3,opt,name=githubStatus,proto3" json:"githubStatus,omitempty"`
Artifac... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a top-level documentation comment to the new gcb_ci_provider.proto file for consistency with the rest of the protos.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinnaker__kleat__40 | spinnaker/kleat | 40 | defect | 411141ac794a22177f98bca354a43cad75cbf572 | 6df0e2187c72f47639b8703f79cf172a51427b16 | feat(proto): Use protojson to unmarshal protos | * feat(proto): Use protojson to unmarshal protos
Instead of relying on the struct tags that are added by protoc-gen-go, use protojson to marshal/unmarshal objects that implement the proto.Message interface. This has the advantage of correctly marshaling/unmarshaling enums, as well as getting us compatibility with ... | diff --git a/internal/protoyaml/proto_yaml.go b/internal/protoyaml/proto_yaml.go
new file mode 100644
index 00000000..cef67e18
--- /dev/null
+++ b/internal/protoyaml/proto_yaml.go
@@ -0,0 +1,49 @@
+/*
+ * Copyright The Spinnaker Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove `providerVersion` from test/data/halconfig.yml since Clouddriver will now default it to V2 (the reviewer notes this is not directly related to this change).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
spinnaker__kleat__48 | spinnaker/kleat | 48 | defect | cbf0dce16ce44babe9d5660fb29c83de9ded6926 | 5596319c08a1a5d5321adf0ef1f9197066200cd2 | test(front50): Add unit tests on front50 config generation | * test(front50): Add unit tests on front50 config generation
* test(front50): Add end-to-end test of YAML generation for front50 | diff --git a/pkg/parse_hal/hal_to_clouddriver_test.go b/pkg/parse_hal/hal_to_clouddriver_test.go
index 1147765d..1fb3bc3b 100644
--- a/pkg/parse_hal/hal_to_clouddriver_test.go
+++ b/pkg/parse_hal/hal_to_clouddriver_test.go
@@ -148,7 +148,7 @@ func TestHalToClouddriver(t *testing.T) {
t.Run(tt.n, func(t *testing.T) {... | 2 | 2 | 0 | [{"id": "G0", "claim": "Adding the test name (tt.n) to the t.Errorf message may be redundant and less readable, since t.Run already prints the test name right above each error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename gotC (and want... | null |
spinnaker__kleat__63 | spinnaker/kleat | 63 | defect | d38970df4fcf5c7ee75a020f846a6ba99be5c8d0 | cda12fc009cd5db39714a49043add1335303cb35 | test(gate): Add unit tests for gate config generation | This commit adds unit tests to the config generation for gate. It also updates the readme to specify the changes users will need to make to their halconfig to account for differences in how the gate config is generated between Halyard and kleat. | diff --git a/README.md b/README.md
index 0298a751..5596a1c8 100644
--- a/README.md
+++ b/README.md
@@ -34,12 +34,35 @@ be used as input to Kleat.
instead requires that the flag `enabled: true` be set on the persistent store
that should be used.
- Halyard specified `canary.serviceIntegrations` as a list, with eac... | 4 | 4 | 0 | [{"id": "G0", "claim": "The README line ending the SAML bullet should read `halconfig:` (or end with a period) instead of the bare word `halconfig`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README misspells \"metadata\" as \"medatadata\"... | null |
spinnaker__kleat__79 | spinnaker/kleat | 79 | defect | 92b0c06163727362944deb1b7cc815d27233019d | dd4a0ecf19de79c98cc6d56440bdfa67240a4e19 | fix(deck): Use override URL for gate if specified | If an override URL for gate is specified, it should be used in the deck config.
Also, I updated the default URL to be localhost; as this is used to set a client-side URL it will be accessed from outside the cluster where the cluster-local address likely won't be routable. Setting this to localhost allows you to port... | diff --git a/internal/write/write_configs.go b/internal/write/write_configs.go
index 88796d5c..7a222e57 100644
--- a/internal/write/write_configs.go
+++ b/internal/write/write_configs.go
@@ -67,6 +67,9 @@ func WriteConfigs(halPath string, dir string) error {
if err := write(services.GetRosco(), filepath.Join(dir, "ro... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added write of deck.yml in WriteConfigs looks unnecessary and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinnaker__kleat__84 | spinnaker/kleat | 84 | defect | 89611c99cfc1d9667b0f82635afaf119e617f3bc | 4cd04a6e626fb7c19700c03e17aa710ac12174f2 | refactor(core): Move config generation to core | * refactor(core): Move config generation to core
Until we find a valid use case for clients needing to individually generate service configs, let's move the code to generate the individual configs to the internal/ folder, and only expose the top-level functions for generating all configs.
Let's also shorten t... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index cb9489ed..764c99b0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -49,7 +49,7 @@ to document each new message and field. Ensure the field is included in the
[hal config](/api/proto/config/halconfig.proto) and each
consuming service's config.
-2. **Translat... | 1 | 1 | 0 | [{"id": "G0", "claim": "Complete the truncated SettingsJs doc comment (\"...outputting a\" followed by a dangling \"// .\") to say it serializes a proto.Message by outputting a JavaScript file to be consumed by Deck.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinnaker__kleat__97 | spinnaker/kleat | 97 | defect | f274236837817812a1bafeafbd974235eb249269 | a30734223f847b65fde30c08eff4ef6776811ab5 | feat(proto): Wrap string and int32 fields where necessary | * feat(kubernetes): Add missing Kubernetes fields
A few fields were missing from KubernetesAccount. Add these.
* feat(proto): Wrap string and int32 fields where necessary
This commit goes through all string and int32 fields, wrapping them where necessary. The only changes necessary were a few string fields... | diff --git a/api/client/cloudprovider/kubernetes.pb.go b/api/client/cloudprovider/kubernetes.pb.go
index d3aaebbf..5121ae12 100644
--- a/api/client/cloudprovider/kubernetes.pb.go
+++ b/api/client/cloudprovider/kubernetes.pb.go
@@ -149,6 +149,42 @@ type KubernetesAccount struct {
// (Deprecated): List of required Fiat... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment added for checkPermissionsOnStartup misspells the product name and should read 'any Kubernetes objects that' instead of 'any kubernetes objects that'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment a... | null |
spinnaker__spinnaker__7246 | spinnaker/spinnaker | 7,246 | defect | d7d654043f344a2235a2657355320ecbddca2e73 | d2f2eb61e83e4d88ef44d99f855c402ffdf00a16 | fix(OAuth2, NPE): Map.copyOf is strict about nulls so use Collections.unmodifiableMap instead | Spinnaker 2025.2.0 release with GitHub OAuth2 provider user is seeing the below error while logging in.
```
{"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":"No message available","status":500,"timestamp":"2025-09-13T05:15:45.359+00:00"}
```
Stacktrace from gate logs:
... | diff --git a/gate/gate-oauth2/src/main/java/com/netflix/spinnaker/gate/security/oauth2/OAuthUserInfoServiceHelper.java b/gate/gate-oauth2/src/main/java/com/netflix/spinnaker/gate/security/oauth2/OAuthUserInfoServiceHelper.java
index a1d099d6b27..904eb686285 100644
--- a/gate/gate-oauth2/src/main/java/com/netflix/spinna... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add @VisibleForTesting to getUserInfo and ResolvedUserInfo, whose visibility this pull request widened from private to package-private for testing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spinnaker__spinnaker__7262 | spinnaker/spinnaker | 7,262 | defect | 54d246cbc2120dba3781e850183571469bc0d09c | a20238fc4bb78c53dabd6a11227593d4b26dfa98 | fix(clouddriver/cloudformation): fix an API failure caused by encoded colon char post retrofit2 upgrade | - This PR fixes the issue of orca not able to receive aws cloud formation stack for the supplied stackId.
- The root cause of the issue is that when retrofit is upgraded, all the special characters including colon(`:`) are encoded and cloud formation api expects the stackId to be decoded in the request URI itself whi... | diff --git a/clouddriver/clouddriver-aws/src/main/java/com/netflix/spinnaker/clouddriver/aws/controllers/CloudFormationController.java b/clouddriver/clouddriver-aws/src/main/java/com/netflix/spinnaker/clouddriver/aws/controllers/CloudFormationController.java
index 1f11cba6169..4cabba68847 100644
--- a/clouddriver/cloud... | 2 | 2 | 1 | [{"id": "G0", "claim": "Encoding the whole stack ARN except the slashes is problematic and goofy; the Orca API should be redone (e.g. as a query parameter instead of a path variable) for cleaner handling.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Si... | null |
spinnaker__spinnaker__7272 | spinnaker/spinnaker | 7,272 | defect | c79666126ee96f04eb7a1ad79d9898d12d96a9fe | ef28a23f800869c7154f567a009e445a32ac81a7 | fix(orca-applications): Retrofit calls on Front50 projects tasks | The Project Controller related calls to Front50 where not executed due to the Retrofit changes. This PR fixes the issue by adding the `Retrofit2SyncCall.executeCall()` to the related places | diff --git a/orca/orca-applications/src/main/groovy/com/netflix/spinnaker/orca/applications/pipelines/UpsertProjectStage.groovy b/orca/orca-applications/src/main/groovy/com/netflix/spinnaker/orca/applications/pipelines/UpsertProjectStage.groovy
index ea61f77f1eb..7a8929c35bd 100644
--- a/orca/orca-applications/src/main... | 4 | 4 | 2 | [{"id": "G0", "claim": "Add a test that demonstrates the busted behavior — that without Retrofit2SyncCall.executeCall the Front50 call is never actually executed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Seven more places call front50 APIs without... | null |
spinnaker__spinnaker__7301 | spinnaker/spinnaker | 7,301 | defect | d219882d5420354e34ac7c7de768a8f1b169d792 | e3ae260f5228fbe09ffb6f5578e18397949c2d92 | feat(clouddriver-artifacts/aws): upgrade classes related to S3 artifacts to aws sdk v2 | AWS SDK for Java v1.x will reach end-of-support on December 31, 2025. So spinnaker needs to be upgraded to AWS SDK v2 at the earliest.
This PR upgrades S3 portion of clouddriver-artifacts module to AWS SDK v2 and removes all the references to AWS SDK v1 libraries. | diff --git a/clouddriver/clouddriver-artifacts/clouddriver-artifacts.gradle b/clouddriver/clouddriver-artifacts/clouddriver-artifacts.gradle
index 0458fe11b89..05173b1814b 100644
--- a/clouddriver/clouddriver-artifacts/clouddriver-artifacts.gradle
+++ b/clouddriver/clouddriver-artifacts/clouddriver-artifacts.gradle
@@ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The rewritten credentials test could assert on more of the new SDK v2 metrics, such as the timers and their tags, similar to what was asserted before.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The breaking change to the S3Ar... | null |
spinnaker__spinnaker__7302 | spinnaker/spinnaker | 7,302 | defect | 9de5a1dc69ba10b90380aaaab8e3887eb606b2fd | d2a7f35b505df8b478f3368501c542f86b806674 | perf(orca): query for individual pipelines from front50 | This cleans up some places in orca that query front50 for all pipelines in an application, only to use one of them. | diff --git a/orca/orca-clouddriver/src/main/java/com/netflix/spinnaker/orca/clouddriver/tasks/pipeline/GetPipelinesFromArtifactTask.java b/orca/orca-clouddriver/src/main/java/com/netflix/spinnaker/orca/clouddriver/tasks/pipeline/GetPipelinesFromArtifactTask.java
index 16ae236a751..271441ba2d8 100644
--- a/orca/orca-clo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should prefer .equals over the == operator when comparing the pipeline name returned by front50 against the requested pipelineName.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
spinnaker__spinnaker__7308 | spinnaker/spinnaker | 7,308 | defect | 8ba587d275f212564565b12b00f5c06477811d48 | 0979d2f59d50baa016bc840f47f03ff97b806fec | feat(clouddriver-lambda): Add configuration for tcpKeepAlive on the AWS Lambda client | For long running lambdas there is a network condition that mades clouddriver to lost the TCP connection after 350 seconds when invoking the function as explained on this blog post
https://aws.amazon.com/blogs/networking-and-content-delivery/implementing-long-running-tcp-connections-within-vpc-networking/
There are 2 ... | diff --git a/clouddriver/clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/LambdaClientProvider.java b/clouddriver/clouddriver-lambda/src/main/java/com/netflix/spinnaker/clouddriver/lambda/deploy/ops/LambdaClientProvider.java
index 7600ab1b366..eb45eb4a242 100644
--- a/clouddriver/clo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new AwsLambdaClientConfigurationTest tests nothing beyond the AWS SDK's ClientConfiguration object — the props are not used or tested through it — so the test should instead verify that the provider generation sets the client configuration, or at least that the configuration is parsed and ap... | null |
spinnaker__spinnaker__7363 | spinnaker/spinnaker | 7,363 | defect | f9794bebc46027539da0698bab011e26bbfc8c5c | f2e426747f522a67d9ce3871d2a53a62f37e3a6f | fix(clouddriver-artifacts): fix multiple okhttpclients issue | This PR fixes the following error in clouddriver, introduced by https://github.com/spinnaker/spinnaker/pull/7356.
```
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.netflix.spinnaker.config.okhttp3.DefaultOkHttpClientBuilder... | diff --git a/clouddriver/clouddriver-artifacts/clouddriver-artifacts-bitbucket/src/main/java/com/netflix/spinnaker/clouddriver/artifacts/bitbucket/BitbucketArtifactConfiguration.java b/clouddriver/clouddriver-artifacts/clouddriver-artifacts-bitbucket/src/main/java/com/netflix/spinnaker/clouddriver/artifacts/bitbucket/B... | 4 | 3 | 0 | [{"id": "G0", "claim": "The pre-existing clouddriver integration test MySqlContainerTest did not fail in the #7356 build even though clouddriver was broken, because the optional artifact types are not enabled by default and the test does not enable them.", "category": "testing", "verdict": "supported", "priority": "P1"... | null |
spinnaker__spinnaker__7392 | spinnaker/spinnaker | 7,392 | defect | 4790896f658a8fec16a39773bdc19f4de66f6e70 | 77b2292b6a2e7e175c1f4c0894841491a7ed6b67 | fix(oauth2): re-implement ExternalAuthTokenFilter to fix spin-cli login | https://github.com/spinnaker/spinnaker/pull/7052 removed `ExternalAuthTokenFilter`, which allowed an arbitrary Bearer token to be provided and exchanged for a valid OAuth session. This functionality is [used](https://github.com/spinnaker/spinnaker/blob/4790896f658a8fec16a39773bdc19f4de66f6e70/spin/cmd/gateclient/client... | diff --git a/gate/gate-oauth2/src/main/java/com/netflix/spinnaker/gate/security/oauth2/ExternalAuthTokenFilter.java b/gate/gate-oauth2/src/main/java/com/netflix/spinnaker/gate/security/oauth2/ExternalAuthTokenFilter.java
new file mode 100644
index 00000000000..d2fa676b631
--- /dev/null
+++ b/gate/gate-oauth2/src/main/j... | 3 | 2 | 0 | [{"id": "G0", "claim": "Add javadoc to the new methods here and elsewhere in the pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `spring.security.oauth2.external-auth-token-filter.*` setting is not actually a Spring property, so n... | null |
spinnaker__spinnaker__7504 | spinnaker/spinnaker | 7,504 | defect | e0c3c24febf246a2d0c408625a1b87bba9d18193 | 18c27e41d8c16217a6b6628476fdb069a067fd67 | feat(ci/gcb): Add region in gcb account def for regional endpoints | My last PR for privatePool https://github.com/spinnaker/igor/commit/9dbe94dae8a4e63bca33fc9ed9e9aede805406b8 (reverted in this PR ) only supports starting a gcb build and it only works if its the default region ( us-central1 ) for gcp. GCP uses regional endpoints for non default pools, so we need regional endpoints to... | diff --git a/igor/igor-web/src/main/java/com/netflix/spinnaker/igor/config/GoogleCloudBuildProperties.java b/igor/igor-web/src/main/java/com/netflix/spinnaker/igor/config/GoogleCloudBuildProperties.java
index d29fd21fd15..0bcf1710cf6 100644
--- a/igor/igor-web/src/main/java/com/netflix/spinnaker/igor/config/GoogleCloud... | 3 | 1 | 0 | [{"id": "G0", "claim": "The PR duplicates method bodies - the two getCloudBuild overloads in CloudBuildFactory and the two create overloads in GoogleCloudBuildClient.Factory - and the reviewer would prefer collapsing them into a single method with the factory determining which type of cloudbuild to use.", "category": "... | null |
spinnaker__spinnaker__7511 | spinnaker/spinnaker | 7,511 | defect | f5fde96e9dad0d489bf3a243fe43506c49dc75c2 | fca36a948e34ace34a757690a77bc0fa313c29e5 | fix(gate/web): remove BakeController.handleBakeOptionsException | The catch-all @ExceptionHandler in BakeController masks all exceptions as HTTP 404 with a generic error message. This hides real errors (including 500s from downstream services) and makes debugging difficult.
Remove it so exceptions are handled by kork's GenericExceptionHandlers, which maps exceptions to appropriate... | diff --git a/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/BakeController.groovy b/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/BakeController.groovy
deleted file mode 100644
index 3da46d0c89e..00000000000
--- a/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/cont... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would improve type safety to declare stronger return types on the bakeOptions controller methods — List<BakeOptions> instead of raw List for the grouped endpoint and BakeOptions instead of Object for the per-provider endpoint.", "category": "design", "verdict": "supported", "priority": "P2", ... | null |
spinnaker__spinnaker__7538 | spinnaker/spinnaker | 7,538 | defect | 7a624c52c416732d9a564c0e745ba2867b32e830 | 7a80ebcd5ecac8e7e126783b34f058a934d1b69a | fix(security): restore AnonymousConfig after Spring Boot 3 / Security6 upgrade |
User Impact:
After upgrading to Spring Boot 3.0 / Spring Security 6 (Spinnaker 2025.4.0), Kubernetes accounts were not visible in Deck UI. All accounts were marked `authorized: false`.
Root Cause:
Spring Security 6 removes WebSecurityConfigurerAdapter and requires SecurityFilterChain beans. During migration, mul... | diff --git a/gate/gate-core/src/main/java/com/netflix/spinnaker/gate/security/anonymous/AnonymousConfig.java b/gate/gate-core/src/main/java/com/netflix/spinnaker/gate/security/anonymous/AnonymousConfig.java
index a9c417ffb0f..162efc18c7c 100644
--- a/gate/gate-core/src/main/java/com/netflix/spinnaker/gate/security/anon... | 2 | 1 | 1 | [{"id": "G0", "claim": "The change of @Order(Ordered.LOWEST_PRECEDENCE) to @Order() on AnonymousConfig looks unrelated and should be reverted to keep the explicit lowest precedence rather than depend on the default.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
spinnaker__spinnaker__7539 | spinnaker/spinnaker | 7,539 | defect | 9582901029fccee22686b475f50b400291b6bdc2 | 66ed7c2ecfeac57240a4cf578ebb101baa022acd | fix(gate): rename x509 SecurityFilterChain bean to prevent SAML override when both are enabled | ## Summary
- Fixes a bean name collision between SAML and x509 authentication in Gate when both are enabled.
- Renames x509's `SecurityFilterChain` bean so Spring no longer overrides the SAML chain.
- Moves x509 to `@Order(3)` so SAML's port-based chain runs before x509's catch-all matcher.
## Context
Issue #751... | diff --git a/gate/gate-x509/src/main/java/com/netflix/spinnaker/gate/security/x509/X509Config.java b/gate/gate-x509/src/main/java/com/netflix/spinnaker/gate/security/x509/X509Config.java
index 94eb1733fea..1e96fb21b2c 100644
--- a/gate/gate-x509/src/main/java/com/netflix/spinnaker/gate/security/x509/X509Config.java
+++... | 3 | 2 | 1 | [{"id": "G0", "claim": "The comment added above the X509 filter chain bean (\"have more priority in case of they are enabled\") is grammatically unclear and should be rephrased, e.g. to \"have higher priority when enabled\", to avoid ambiguity for future maintainers.", "category": "documentation", "verdict": "supported... | null |
spirit-labs__tektite__231 | spirit-labs/tektite | 231 | defect | 44ff84b85c9d68700bbb14467d8114cf457a092e | 842b9905343d428ac5b77a88e2a229284185e474 | feat: implement deletion of prepared query | - fixes #4
- Discussion thread: https://github.com/spirit-labs/tektite/discussions/226
- Local testing
- Created a prepared query `my_query`

- Tried deleting prepared query `my-query` (hypen instead of underscore). As ... | diff --git a/asl/api/api_test.go b/asl/api/api_test.go
index 48ee6c47..239f058e 100644
--- a/asl/api/api_test.go
+++ b/asl/api/api_test.go
@@ -7,6 +7,13 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
+ "io"
+ "net/http"
+ "os"
+ "strings"
+ "sync"
+ "testing"
+
"github.com/apache/arrow/go/v11/arrow/decimal... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request is missing tests covering the deletequery change: a test case in asl/api/api_test.go, one in asl/cli/cli_test.go, a parser test, and an ast test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The pull request is... | null |
spirit-labs__tektite__243 | spirit-labs/tektite | 243 | defect | ccbfd045e53abcc16da888db636bee1925574583 | 8b5c3006a3253d81b9fba4ebaefd43c3df8d0eac | Implement cluster group membership | Implements group membership on top of the new distributed state machine. Nodes update their membership periodically by updating an entry for themselves in the shared state along with an updated time. When nodes update they also check the updated time for other nodes, and if the entry is stale the other node's entry is ... | diff --git a/asl/cmd/tektited/runner_test.go b/asl/cmd/tektited/runner_test.go
index 195bd101..04d2d57d 100644
--- a/asl/cmd/tektited/runner_test.go
+++ b/asl/cmd/tektited/runner_test.go
@@ -177,6 +177,7 @@ func createConfigWithAllFields() conf.Config {
SequencesRetryDelay: 300 * time.Millisecond,
DevObjectStor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `addresss` parameter of NewMembership in cluster/membership.go looks like a typo and maybe should be spelled `address`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
spirit-labs__tektite__247 | spirit-labs/tektite | 247 | defect | b7f6c2827129df7f54fcc16107816ebca6eb111f | ba55599c5570d51179a064085b1428724e4eaa94 | Implement ClusteredData for ownership and updates of large data. | This PR includes a few things.
* Implements a new struct called ClusteredData which allows a member of the cluster to take safely take ownership of a potentially large piece of data, update it and store it without fear of concurrent updates from another member overwriting changes. It will be used by the controller to ... | diff --git a/cluster/clustered_data.go b/cluster/clustered_data.go
new file mode 100644
index 00000000..9612a117
--- /dev/null
+++ b/cluster/clustered_data.go
@@ -0,0 +1,199 @@
+package cluster
+
+import (
+ "encoding/binary"
+ "fmt"
+ "github.com/pkg/errors"
+ "github.com/spirit-labs/tektite/common"
+ log "github.com/... | 17 | 8 | 0 | [{"id": "G0", "claim": "The `3 * 8` in Stats.SerializedSize should be extracted into a LevelStats method so it is clearer to update if the format changes.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Evolving these hand-rolled serialized struc... | null |
spirit-labs__tektite__248 | spirit-labs/tektite | 248 | defect | 95c14a4c79d485ae87f13e70219c50ce21f7b426 | bec5b3c58cd7ab2b0905528446575ae0999757e6 | Implement a new lightweight RPC mechanism. | This implements a new lightweight RPC mechanism.
* Provides a local transport
* Provides a socket based transport that can optionally use TLS (including mutual TLS)
* Replacement for the old remoting
* The socket server is based on the socket server in the kafkaserver package which will get retired at some point | diff --git a/transport/local_transport.go b/transport/local_transport.go
new file mode 100644
index 00000000..784cb8a0
--- /dev/null
+++ b/transport/local_transport.go
@@ -0,0 +1,130 @@
+package transport
+
+import (
+ "github.com/pkg/errors"
+ "github.com/spirit-labs/tektite/asl/errwrap"
+ "github.com/spirit-labs/tekt... | 7 | 4 | 0 | [{"id": "G0", "claim": "The commented-out setup code at the bottom of socket_transport_test.go appears to be dead and should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The server-start log line should be at info level rather than... | null |
spirosmaggioros__AlgoPlus__58 | spirosmaggioros/AlgoPlus | 58 | defect | c9601d7459a8813a5059eb0c9010c029b6ea15fe | a691b157244bafc22e79c5b05eddab652625e564 | Added lower_bound & upper_bound functions in binary search | Added
- lower_bound
- upper_bound
In binary search files, with respective test cases.
Btw Question: do we really need to follow the signature of passing left and right in binary search, wanted to know reasoning behind it.
Looks like OPs reddit post did make an impact. xD
| diff --git a/src/algorithms/searching/binary_search.h b/src/algorithms/searching/binary_search.h
index 8910b42b..0fddedee 100644
--- a/src/algorithms/searching/binary_search.h
+++ b/src/algorithms/searching/binary_search.h
@@ -34,4 +34,62 @@ int64_t bin_search(std::vector<T> arr, int64_t left, int64_t right, T x) {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "upper_bound() must return the size of the vector (v.size()) instead of the index of the element when called for the greatest element (100), since it should return the first index greater than x.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
spirosmaggioros__AlgoPlus__89 | spirosmaggioros/AlgoPlus | 89 | defect | 0969166518efbaec5541f14de47e98c832af7035 | 4a95dd83b5a0414e4799532afdc1e021e0c6aaf7 | Fixed issue #88 | ### Bug in search method
This was caused by searching till tail but now it's fixed to search until nullptr and eventually checking in the end
### Bug in push_front method
Now here, tail must be equal to the new pointer if it doesn't exist.
### Bug in erase method
Can't see anything wrong with the function af... | diff --git a/src/classes/list/doubly_linked_list.h b/src/classes/list/doubly_linked_list.h
index b59e6c64..70ee29cd 100644
--- a/src/classes/list/doubly_linked_list.h
+++ b/src/classes/list/doubly_linked_list.h
@@ -164,27 +164,24 @@ template <typename T> bool doubly_linked_list<T>::search(T key) {
return false;
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `if (root->val == key) { root = root->next; }` block in `erase` can be removed, since the rest of the code handles erasing the root as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
splunk__kafka-connect-splunk__13 | splunk/kafka-connect-splunk | 13 | defect | fd59b0b17315171e85d915af793a6ed29c7bf80c | 61ea638289feefdceebc8f3b3db30f8e487d9c1f | Configure testing | Added junit to Maven.
Wrote first few test cases. | diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml
index 10712330..780051ae 100644
--- a/dependency-reduced-pom.xml
+++ b/dependency-reduced-pom.xml
@@ -41,12 +41,34 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artif... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PR should explain or reconsider its reliance on the Maven wrapper, asking whether the wrapper scripts are supported in IntelliJ or by some plugin.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer would prefer the pu... | null |
splunk__kafka-connect-splunk__143 | splunk/kafka-connect-splunk | 143 | defect | c236d478b10fc93afc5eb6919ca25d609234b199 | feef9ca76d2ead07dd25db18f4141682d37ae03c | Issue 142/improve empty message logging | - Improved Exception logging and added Javadocs for Event classes | diff --git a/src/main/java/com/splunk/hecclient/Event.java b/src/main/java/com/splunk/hecclient/Event.java
index 1150c60c..1221b9e3 100644
--- a/src/main/java/com/splunk/hecclient/Event.java
+++ b/src/main/java/com/splunk/hecclient/Event.java
@@ -24,6 +24,17 @@
import java.io.*;
import java.util.Map;
+/**
+ * Event... | 3 | 2 | 0 | [{"id": "G0", "claim": "The null/empty-event error messages should be generic and not mention Kafka, since the client library has nothing to do with Kafka.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Formatting should be consistent: either us... | null |
splunk__kafka-connect-splunk__283 | splunk/kafka-connect-splunk | 283 | defect | 92ef8baf577bac2eb4fb611e313e4458f28d9905 | 93a0abf15b95e80f6f901ff15b86c522ad933b29 | Update SplunkSinkConnectorConfig.java | Enable topics.regex to be used to declare topic subscriptions as name patterns, instead of specifying each topic in a list | diff --git a/src/main/java/com/splunk/kafka/connect/SplunkSinkConnectorConfig.java b/src/main/java/com/splunk/kafka/connect/SplunkSinkConnectorConfig.java
index 6f8c924f..33717c7d 100644
--- a/src/main/java/com/splunk/kafka/connect/SplunkSinkConnectorConfig.java
+++ b/src/main/java/com/splunk/kafka/connect/SplunkSinkCo... | 2 | 2 | 2 | [{"id": "G0", "claim": "The dummy-topic approach is unnecessary and the metaMap is not useful for topics.regex: when topics.regex is used the splunk.indexes/splunk.sourcetypes/splunk.sources parameters should simply be omitted, but passing multiple values for them currently raises a ConfigException; wrapping the metada... | null |
splunk__kafka-connect-splunk__377 | splunk/kafka-connect-splunk | 377 | defect | 63c3545adb840f89c3ad072c2eacb1a5b00d5014 | 052d00cd5d3f14ca1c4ad1cce95b4865d692988e | Add a new config parameter for disabling splunk validations | Add a new config parameter `splunk.validation.disable` for disabling splunk validations
| diff --git a/src/main/java/com/splunk/kafka/connect/SplunkSinkConnector.java b/src/main/java/com/splunk/kafka/connect/SplunkSinkConnector.java
index 10d8831a..9b4fdcbc 100644
--- a/src/main/java/com/splunk/kafka/connect/SplunkSinkConnector.java
+++ b/src/main/java/com/splunk/kafka/connect/SplunkSinkConnector.java
@@ -1... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new configuration parameter introduced by this pull request should also be documented in the README.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
splunk__kafka-connect-splunk__403 | splunk/kafka-connect-splunk | 403 | defect | 2cbcbf8c9e21aed0ff0e6bc4c1c076cb840b2807 | e9d1ad22e0319fd1d8bf846ab70cdc477c9c9116 | added a timestamp.timezone configuration in SplunkSinkConnectorConfig | I have the same issue "Add support for timezone override https://github.com/splunk/kafka-connect-splunk/issues/398", so I added a timestamp.timezone.
as a default it's the UTC, but in my case I needed to change UTC to Asia/Seoul. | diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml
index 9c8f0d30..6a6e7beb 100644
--- a/dependency-reduced-pom.xml
+++ b/dependency-reduced-pom.xml
@@ -204,4 +204,3 @@
<junit.platform.version>1.3.2</junit.platform.version>
</properties>
</project>
-
diff --git a/src/main/java/com/splunk/... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks why the SimpleDateFormat was given Locale.ENGLISH (questioning the need for the locale change).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out TIMESTAMP_TIMEZONE_CONF line in the test can be ... | null |
splunk__qbec__184 | splunk/qbec | 184 | defect | 3ef9f8e13d4fc8cd5ec9f102f67c06a3c5540f77 | 65caeeacff5836c2c3132319f0f3bcde22dbb69a | Respect files specified for format explicitly even when | the type is not specified.
fmt -t json file.yaml should now format file.yaml as well in addition to json files
Addresses 4 in #137 | diff --git a/internal/commands/fmt.go b/internal/commands/fmt.go
index 6e4e1503..f10d89b7 100644
--- a/internal/commands/fmt.go
+++ b/internal/commands/fmt.go
@@ -60,7 +60,7 @@ func doFmt(args []string, config *fmtCommandConfig) error {
return err
}
default:
- if shouldFormat(config, dir) {
+ if shouldF... | 1 | 1 | 1 | [{"id": "G0", "claim": "There should be an assertion that os.Stat reports the path as a file rather than a directory, so that `qbec alpha fmt dir.json` (where dir.json is a directory) is not treated as a JSON file.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
splunk__qbec__219 | splunk/qbec | 219 | defect | ceea5f0117c0e9524c6e67689f47e938f2f51c91 | d70960e137c044220355460240d095aed3fe65dc | Add support for glob env files | Glob patterns can be supplied for envFiles in qbec.yaml as well as from the command-line. The pattern must match at-least a file on disk. http env files are not evaluated for glob patterns.
Closes #214 | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 580788fc..c85bbc34 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
- go-version: 1.15
+ go-version: 1.16
id: go... | 2 | 2 | 1 | [{"id": "G0", "claim": "The matched file list needs to be sorted because filepath.Glob does not guarantee order and callers always need a predictable order.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Match function comment should be updated ... | null |
splunk__qbec__231 | splunk/qbec | 231 | defect | d1fe0f4938d87bd4a03f3c2648fe6ac58dd17d7f | cc79a3e04ef48f31dc9c716cc90cfa402c01f5a9 | Add support for env inheritance | Commands executed during computed var evaluation can now inherit env
from the qbec process if inhertEnv is set to true.
Closes #230 | diff --git a/internal/datasource/exec/exec.go b/internal/datasource/exec/exec.go
index 912aa3c3..03614b1f 100644
--- a/internal/datasource/exec/exec.go
+++ b/internal/datasource/exec/exec.go
@@ -37,12 +37,14 @@ const (
// Config is the configuration of the data source.
type Config struct {
- Command string ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The documentation statement that commands do not inherit the OS environment needs to be qualified with `unless inheritEnv is set to true`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should add a `defer os.Unset... | null |
splunk__qbec__71 | splunk/qbec | 71 | defect | 627976653172a6a568cc8248cd35ddcb10addc48 | c97dfc2239bde3376e14de569fa411cbd70c54b8 | Handle non-interactive terminal interactions Resolves #70. | Add QBEC_DISABLE_PROMPTS option to disable prompts globally.
Update documentation. | diff --git a/internal/commands/config.go b/internal/commands/config.go
index 1184d9d1..8c6ccf5c 100644
--- a/internal/commands/config.go
+++ b/internal/commands/config.go
@@ -94,7 +94,7 @@ type ConfigFactory struct {
StrictVars bool // strict mode for variable evaluation
}
-func (cp ConfigFactory) intern... | 5 | 4 | 0 | [{"id": "G0", "claim": "Instead of threading a skipPrompts variable through Config/internalConfig, the default for the --yes flag in setup.go should be fixed based on the environment variable (skipPrompts()) so the variable stays in the background.", "category": "design", "verdict": "supported", "priority": "P2", "scop... | null |
splunk__splunk-cloud-sdk-go__111 | splunk/splunk-cloud-sdk-go | 111 | defect | 4555259c2587f34157332d5aafba5417468fa0d2 | 8c3c185d64029c4d7e678f9ea0ea5367403b3415 | fix bugs in ParseHTTPStatusCodeInResponse and ParseResponse | In ParseResponse: Skip decoding when 204 No content. Otherwise, decode throws EOF error
In ParseHTTPStatusCodeInResponse: Check for response.Body before read. | diff --git a/util/errors.go b/util/errors.go
index df08d678..78916886 100644
--- a/util/errors.go
+++ b/util/errors.go
@@ -21,15 +21,19 @@ func (he *HTTPError) Error() string {
// ParseHTTPStatusCodeInResponse creates a HTTPError from http status code and message
func ParseHTTPStatusCodeInResponse(response *http.Re... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new check treats 3xx responses (301/302 redirects) as errors; the threshold should be `response.StatusCode >= 400` since generally < 400 is OK and >= 400 is bad.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ParseHTTPSta... | null |
splunk__splunk-cloud-sdk-go__116 | splunk/splunk-cloud-sdk-go | 116 | defect | 25e22e84cde985046e19c4021fe81268d4c9a7da | 77bae11c29863d252addf45252d33165f90324c1 | Fix batch sender | - remove Flush()
- refactor some of the logic
- update multi threads test | diff --git a/service/batch_events_sender.go b/service/batch_events_sender.go
index 4c7944ca..826c1b72 100644
--- a/service/batch_events_sender.go
+++ b/service/batch_events_sender.go
@@ -19,8 +19,11 @@ type BatchEventsSender struct {
ErrorChan chan string
ErrorMsg string
IsRunning bool
+ mux sy... | 3 | 1 | 1 | [{"id": "G0", "claim": "Do we not need to support a public Flush() call anymore (https://jira.splunk.com/browse/APPLAT-1242)?", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Pull the magic number 3 in addEventBatch out as a variable.", "category": "maintain... | null |
splunk__splunk-cloud-sdk-go__158 | splunk/splunk-cloud-sdk-go | 158 | defect | 0042443d5f515843b42d7bf23e38bf66331e2031 | 7fce1d72611e993ef0c85ebeda36662dafc41471 | APPLAT-1962 PKCE flow support and authentication flow refactor | Also included a utility struct `Credential` which simply outputs `XXXXX` when converted to a string (e.g. while being logged) requiring you to explicitly call `ClearText()` to get the value when you actually want to use it. This seemed like a good thing now that we're storing credentials in structs within our Go code. | diff --git a/Makefile b/Makefile
index 0b340e1e..ae266423 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@
.DEFAULT_GOAL := noop
GO_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/)
+GO_NON_TEST_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/ | grep -v test)
GIT_COMMIT_TAG := $... | 8 | 3 | 1 | [{"id": "G0", "claim": "The Scope field on the authn response handlers would be nicer as an enum type if the number of scope permutations is small.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The timeValue := float64(1529945001) literal in the integra... | null |
splunk__splunk-cloud-sdk-go__161 | splunk/splunk-cloud-sdk-go | 161 | defect | 3924ed13e77c69f609766653bf472dbee3aeeeef | 98495061baec2d5ff910d410741a5a744ec685e3 | APPLAT-2046-Fix Codecov Test Output | Separate the okta token retrieval steps into discrete steps for easier debugging
Change the testing commands to correctly run code coverage
Delete `runtests` scripts that are not used in the codebase
Change `ci/Dockerfile` to target go-lang alpine v1.9.4 docker image
Change the `go test` command to include packages... | diff --git a/Makefile b/Makefile
index 0b340e1e..4815edf9 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@
.DEFAULT_GOAL := noop
GO_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/)
+GO_NON_TEST_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/ | grep -v test)
GIT_COMMIT_TAG := $... | 6 | 4 | 2 | [{"id": "G0", "claim": "The vendor filtering step in COMMA_SEPARATED_FULLY_QUALIFIED_PACKAGES is redundant because the simpler pipeline without it yields the same package list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GO_NON_TEST_NON_V... | null |
splunk__splunk-cloud-sdk-go__192 | splunk/splunk-cloud-sdk-go | 192 | defect | a449c7f3ad6dd15059e733d333f2f941c5b227c0 | dcbb9c7ed0d2ce275e097f2faa709745afb22f39 | Story/ingest v2 | - Removed `CreateEvent`
- Removed `CreateMetricEvent`
- Updated `Event` model
- Fixed integ tests | diff --git a/model/ingest.go b/model/ingest.go
index 87f5c554..6d5e363e 100644
--- a/model/ingest.go
+++ b/model/ingest.go
@@ -5,15 +5,26 @@
package model
-// Event contains metadata about the event
+// Event defines raw event send to event endpoint
type Event struct {
- Host string `json:"host,o... | 2 | 2 | 0 | [{"id": "G0", "claim": "The debug statement printing parsed values should be removed from TestParseUrlParams in util/parsing_unit_test.go.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fmt import added to util/parsing_unit_test.go should be removed... | null |
splunk__splunk-cloud-sdk-go__198 | splunk/splunk-cloud-sdk-go | 198 | defect | 7458f19bba334283833e26e820c09976d076844e | 67aa7d2843ab4f48462c6d9e2feaf33c0d9355ed | Proposed changes for search v2 | This is a WIP PR and needs Brad's review first.
It addressed below feedback from Brad.
```
Naming updates:
- [x] SearchJob.DispatchState should be SearchJob.State
- [x] Change GetJobs to ListJobs
- [x] Change type Search to SearchJob
- [x] SearchJob.Sid should be SearchJob.Id
- [x] search.go contains both ... | diff --git a/model/search_v2.go b/model/search_v2.go
new file mode 100644
index 00000000..4c7b05b7
--- /dev/null
+++ b/model/search_v2.go
@@ -0,0 +1,113 @@
+package model
+
+// SearchJobBase defines properties allowed (and possibly required) in fully constructed Searchjobs in POST payloads and responses
+type SearchJob... | 12 | 11 | 2 | [{"id": "G0", "claim": "The final logic for GetJobResults is undecided: it should distinguish responses with ResultsAvailable set to 0 from responses that actually specify a nextLink, e.g. by explicitly checking for the nextLink field using a string pointer.", "category": "design", "verdict": "supported", "priority": "... | null |
splunk__splunk-cloud-sdk-go__208 | splunk/splunk-cloud-sdk-go | 208 | defect | c60da346aef092b0fbde12e113a2aee959617017 | 429d38dd729cecbbf71553eedbbe9537ac07598f | BREAKING: Make Tenant, Timeout, Host, Scheme all optional params | Also:
* [BREAKING] - Rename config.TenantID to config.Tenant (per Brad) | diff --git a/examples/ingestSearch.go b/examples/ingestSearch.go
index c2990403..38c365db 100644
--- a/examples/ingestSearch.go
+++ b/examples/ingestSearch.go
@@ -58,13 +58,12 @@ func exitOnError(err error) {
}
func getClient() *service.Client {
- var url = testutils.TestURLProtocol + "://" + testutils.TestSplunkCl... | 2 | 2 | 0 | [{"id": "G0", "claim": "The getClient helper added in test/playground_integration/client_integration_test.go should use the renamed constant testutils.TestTenant instead of testutils.TestTenantID.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
splunk__splunk-cloud-sdk-go__213 | splunk/splunk-cloud-sdk-go | 213 | defect | d0b190fe4bea2f1ecfb6a6a58c522d4532709943 | 7980adaf4bfdc1edc277720ffbe2c4fb8b723262 | Applat 2340 catalog | - add new catalog endpoints support (fields and rule actions) | diff --git a/model/catalog.go b/model/catalog.go
index 73f10a17..e4269d2d 100644
--- a/model/catalog.go
+++ b/model/catalog.go
@@ -60,7 +60,7 @@ type DatasetCreationPayload struct {
ExternalKind string `json:"externalKind,omitempty"`
ExternalName string `json:"externalName,omitempty"`
- CaseSensitiveM... | 11 | 9 | 0 | [{"id": "G0", "claim": "The reviewer asks why the pull request removed the AutoMode enum, questioning the removal.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The binding tags on CatalogActionCreationPayload fields are not needed and should be removed... | null |
splunk__splunk-cloud-sdk-go__220 | splunk/splunk-cloud-sdk-go | 220 | defect | 1d2e0ca34ac842b74f29acd1d516b6785b609c6e | 7ff123fd1737cfd38758a4e8f727ee7f72720ce7 | Remove stubby proxy function tests and add coverage | These will stay for now:
https://github.com/splunk/splunk-cloud-sdk-go/blob/master/test/stubby_integration/client_integration_test.go
https://github.com/splunk/splunk-cloud-sdk-go/blob/master/test/stubby_integration/environment_integration_test.go | diff --git a/examples/ingestSearch.go b/examples/ingestSearch.go
deleted file mode 100644
index 7497a14d..00000000
--- a/examples/ingestSearch.go
+++ /dev/null
@@ -1,196 +0,0 @@
-// Copyright © 2018 Splunk Inc.
-// SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or in part
-// without a valid written ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not delete the examples/ingestSearch.go example.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
splunk__splunk-cloud-sdk-go__23 | splunk/splunk-cloud-sdk-go | 23 | defect | f3e327d37c2da9f5e76c010d8cef3195d5786ca8 | 78326cf338626f0046cff47e7a85366e7cfdec55 | add tenant id | I was based on some other branch so I didn't see I already did the constant thing in previous prs lol so no need to do it again. | diff --git a/service/catalog.go b/service/catalog.go
index 2a8b68dd..6713bb6d 100644
--- a/service/catalog.go
+++ b/service/catalog.go
@@ -14,7 +14,7 @@ type CatalogService service
// GetDatasets returns all Datasets
func (c *CatalogService) GetDatasets() ([]model.Dataset, error) {
- var url = c.client.BuildURL(cat... | 2 | 1 | 1 | [{"id": "G0", "claim": "The search (and catalog) URLs keep the version segment (searchServiceVersion \"v1\") that no longer exists in the live API paths, which are now 'api/<tenantid>/search/jobs', so the SDK builds URLs that don't match the environment.", "category": "correctness", "verdict": "supported", "priority": ... | null |
splunk__splunk-cloud-sdk-go__240 | splunk/splunk-cloud-sdk-go | 240 | defect | 5d75a9b07bf018cd763c108b3fe200b675e35b48 | 8760a1807d69010cd0d4a35547c2817653e65a54 | fix update rule actions | fix update ruleaction endpoints and small clean up on creation | diff --git a/model/catalog.go b/model/catalog.go
index db39b9bf..f7828dea 100644
--- a/model/catalog.go
+++ b/model/catalog.go
@@ -205,7 +205,7 @@ type CatalogAction struct {
Mode string `json:"mode,omitempty"`
Expression string `json:"expression,omitempty"`
Pattern string ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Kind field of CatalogAction should also be made omitempty, because kind is always serialized and currently prevents update from being called.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The Update*Action constructors s... | null |
splunk__splunk-cloud-sdk-go__250 | splunk/splunk-cloud-sdk-go | 250 | defect | e130bed2967199b88f867742252de5ef3401e91c | 5ba44d5c7a4fd8704ab6ddca62c85fce3ea40236 | Cleanup CI related information | Deleted `ci/shared/env.encryped` as it's no longer needed because of artifactory
Renamed TEST_TENANT_ID environment varialbe to TENANT_ID to align repository testing.
Renamed TEST_SPLUNK_CLOUD_HOST environment varialbe to SPLUNK_CLOUD_HOST to align repository testing.
Renamed TEST_URL_PROTOCOL environment varialbe t... | diff --git a/Makefile b/Makefile
index bd3bc113..90ea1d24 100644
--- a/Makefile
+++ b/Makefile
@@ -11,15 +11,15 @@ GO_NON_TEST_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/ | gr
GIT_COMMIT_TAG := $(shell git rev-parse --verify HEAD)
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
-LOCAL_TES... | 2 | 1 | 1 | [{"id": "G0", "claim": "The rename should go the other way, such that the JS repo adds the TEST_ prefix, because that is the context in which these variables are being used.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Any protocol variables should be ... | null |
splunk__splunk-cloud-sdk-go__26 | splunk/splunk-cloud-sdk-go | 26 | defect | a9e41aeaffc3a5ae0419174757a9b1b43123f285 | 9c9a6c286a2b9dc3de50a7b2e0273e2456fba27e | Applat 755/add step to ci pipeline for go sdk run tests against | All tests (minus integration tests) are run with the `test` codeship step.
The `integration` codeship step only runs the integration tests.
Integration tests are defined by the `// +build !integration` comment on the first line of `service/search_integ_test.go`.
Follow up:
* Refactor test suite so all tests are r... | diff --git a/Makefile b/Makefile
index 3435f512..b6059243 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,10 @@ encrypt:
jet encrypt deploy/shared/secret.env deploy/shared/env.encrypted && \
printf "Encrypted deploy/shared/secret.env to deploy/shared/env.encrypted\n"; \
fi;
+ @if [ -f deploy/integration/secre... | 5 | 3 | 2 | [{"id": "G0", "claim": "The import block in the new service/search_integ_test.go is not goimports-formatted (standard-library and external imports are mixed together).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fixed 1000 ms sleep before... | null |
splunk__splunk-cloud-sdk-go__265 | splunk/splunk-cloud-sdk-go | 265 | defect | 7196d03c7bc3352db753f4d27f50c3780cc884cd | 261ea10a68403eb26f755e2bed701f0a36ee3699 | Applat 3148 roundtripper | implement roundtripper and example to show the usage | diff --git a/services/client.go b/services/client.go
index 35bf1cbb..4e814270 100644
--- a/services/client.go
+++ b/services/client.go
@@ -16,6 +16,7 @@ import (
"fmt"
"io"
"net/http"
+ "net/http/httputil"
"net/url"
"path"
"time"
@@ -53,6 +54,11 @@ type Request struct {
NumErrorsByType map[string]uint
}
... | 3 | 2 | 2 | [{"id": "G0", "claim": "The Logger interface and SdkTransport logging code should not live in services/client.go - the RoundTripper interface alone already lets end users do whatever logging they want, and if the logging transport is kept at all it should live in another package like logging or util, not services.", "c... | null |
splunk__splunk-cloud-sdk-go__271 | splunk/splunk-cloud-sdk-go | 271 | defect | 888a18bdfe481860310895a31e289cc63c237f25 | 2a2694b0f8c0e6f69fb9aa72d0118963543fc2d8 | Implement example using standard log library. | Followup to @ljiang1's RoundTripper and Logger work. | diff --git a/ci/integration/runexamples.sh b/ci/integration/runexamples.sh
index 8387c352..4a84ee90 100755
--- a/ci/integration/runexamples.sh
+++ b/ci/integration/runexamples.sh
@@ -23,10 +23,21 @@ COMMA_SEPARATED_FULLY_QUALIFIED_PACKAGES=$(go list ./... | grep -v test | awk -v
if [ "$allow_failures" -eq "1" ]; the... | 2 | 2 | 0 | [{"id": "G0", "claim": "The package comment should be reworded to say the example demonstrates setting up logging of requests/responses with the sdk using the standard Go \"log\" library.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The logger-s... | null |
splunk__splunk-cloud-sdk-go__274 | splunk/splunk-cloud-sdk-go | 274 | defect | e130bed2967199b88f867742252de5ef3401e91c | be3352cc90438f1b5bc1e6ed58122e30cf0bfdd2 | Update tenant to staging, fix for flaky identity tests on staging | With the update to staging, the identity tests became flaky with unpredictable failures with every run mostly around not able to get the resource that was added in the test such as member, role, group. Added a sleep between every create and get, seems to have fixed the issue. Will follow up to see if this lag is expect... | diff --git a/ci/env.encrypted b/ci/env.encrypted
index 7e8758d9..b9632c18 100644
--- a/ci/env.encrypted
+++ b/ci/env.encrypted
@@ -1,2 +1,2 @@
codeship:v2
-KvI1qyVH5KYNGw+fA0jcvkOn8ps3Wm9N7lOBxKKG7IzIcMDpCQMfsS484x1DFXcZbhh+x8bZ+HGUM9+ivura2s6peboXKAk0Q1SAfoy6/cl5fSMKaE7tLouInClrTV6dJtmlOezc+Hhuq9W8XqJiEXLjoOFsY+XMSVL... | 1 | 1 | 1 | [{"id": "G0", "claim": "The integration tests use hard-coded member emails (e.g. sbijam@splunk.com) that refer to users which don't exist in the staging tenant, so the identity integration tests fail on staging; a test user should be created in staging for the purpose of these tests.", "category": "correctness", "verdi... | null |
splunk__splunk-cloud-sdk-go__31 | splunk/splunk-cloud-sdk-go | 31 | defect | 1d72700cb925e18967f7d4f9a5c57e78d72ffc73 | 69c6e27946c5bdc0f69d38c8d7f4b4730be0ecdd | Implement CreateEvents method | This allows users to send multiple events in one payload | diff --git a/model/hec.go b/model/hec.go
index 5efd3c34..94ec63c1 100644
--- a/model/hec.go
+++ b/model/hec.go
@@ -10,3 +10,8 @@ type HecEvent struct {
Event interface{} `json:"event"`
Fields map[string]string `json:"fields,omitempty"`
}
+
+// HecEvents contains multiple events
+type HecEvents struc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The HecEvents wrapper type is unnecessary; the code should use []HecEvent everywhere instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new buildMultiEventsPayload (and related) functions should have unit tests; reviewer ... | null |
splunk__splunk-cloud-sdk-go__331 | splunk/splunk-cloud-sdk-go | 331 | defect | fa650888c5be1fb8bdf230479da4daa81e44600a | d0715a80f85f595b7c83e9abb9d9ede7ef190c68 | Allow custom host for service url | This change adds the field `URLs` to `Config` struct and pass it down to client to enable custom host for clusters. Changes are also made to make `URLs` superior to `Host` when constructing urls for api requests. | diff --git a/examples/ingestSearch/ingestSearch.go b/examples/ingestSearch/ingestSearch.go
index fca6110a..1c8f7ba5 100644
--- a/examples/ingestSearch/ingestSearch.go
+++ b/examples/ingestSearch/ingestSearch.go
@@ -66,6 +66,7 @@ func getClient() *sdk.Client {
Token: testutils.TestAuthenticationToken,
Host: tes... | 2 | 2 | 1 | [{"id": "G0", "claim": "NewClient should return an error when a config supplies both Host and URLs (or at least document which takes precedence), and tests should cover supplying just Host, just URLs, and both.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
splunk__splunk-cloud-sdk-go__340 | splunk/splunk-cloud-sdk-go | 340 | defect | 363191d9e3a147b68cf035d0f11ecb10c6b8adf9 | 78cca18f1cc05e5907864d797065f26ac0278c87 | Remove Config.URLs but allow override of host used by client | * reverted https://github.com/splunk/splunk-cloud-sdk-go/pull/331
* renamed `client.host` to `client.rootDomain` internally to better capture what it really represents
* added `client.SetOverrideHost()` to short circuit host formation using service clusters | diff --git a/examples/ingestSearch/ingestSearch.go b/examples/ingestSearch/ingestSearch.go
index 1feecf75..fca6110a 100644
--- a/examples/ingestSearch/ingestSearch.go
+++ b/examples/ingestSearch/ingestSearch.go
@@ -64,7 +64,7 @@ func exitOnError(err error) {
func getClient() *sdk.Client {
client, err := sdk.NewClien... | 3 | 3 | 2 | [{"id": "G0", "claim": "NewClient must set overrideHost from config (e.g. overrideHost: config.Host) in the BaseClient initialization, otherwise the c.overrideHost check in BuildHost never fires and clients pointed at a custom host (like scloud against a dev cluster) still form URLs as api.<domain> and fail DNS lookup.... | null |
splunk__splunk-cloud-sdk-go__56 | splunk/splunk-cloud-sdk-go | 56 | defect | 3cd67a4c0faa710f309cfaebecb0edc9678c0745 | ab57ab360945bba5ecdbffa7931d0c5593833f5a | Change testing to use environment variables and to provide granular selection of tests | Added 'run_unit_tests' in Makefile
Added variables for testing the local stubby via Makefile
Added 'run_local_stubby_tests' for testing a local stubby instance from Makefile
Added variables for testing the docker stubby via Makefile
Added 'run_docker_stubby_tests' for testing a local stubby instance from Makefile
... | diff --git a/Makefile b/Makefile
index 821cd196..25634be5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,21 +2,27 @@
.DEFAULT_GOAL := noop
-GO_SOURCES := $(shell find . -name '*.go')
GO_NON_VENDOR_PACKAGES := $(shell go list ./... | grep -v /vendor/)
GIT_COMMIT_TAG := $(shell git rev-parse --verify HEAD)
GIT_BRAN... | 4 | 2 | 0 | [{"id": "G0", "claim": "The Makefile comment '# This is broken' is unexplained and should be removed if it is useless, and the new way to run stubby locally should be clarified.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wording of the new... | null |
splunk__splunk-cloud-sdk-go__64 | splunk/splunk-cloud-sdk-go | 64 | defect | b07ed2c228a6ea8d9698ad10fdbe59d0859a7535 | f6c401f543f57283900ef004e735172bbb998510 | Refresh expired bearer token with a refresh token | Added these to our encrypted variables:
REFRESH_TOKEN=
REFRESH_TOKEN_ENDPOINT=splunk-ciam.okta.com/oauth2/default/v1/token
CLIENT_ID=0oa12zcrqk8jXGIDZ2p7
EXPIRED_BEARER_TOKEN=
(CI is failing, but getting the PR a look meanwhile)
| diff --git a/ci/env.encrypted b/ci/env.encrypted
index da7c3edd..e7cd5948 100644
--- a/ci/env.encrypted
+++ b/ci/env.encrypted
@@ -1 +1 @@
-xAu208GzXvzbQRcMbAQDs1H01BNn8lwJVCLamFKChOLTpOZkaJ/w47Jc9g2bO041reXNvVRvPIW4MXxb24/5/jc2/ZN49Ms2avx8e4fgCqJJDGZ3xtHmdpuMGQUTyVkna1lnBWPerjK7tlnGVmuF5lwRAioefBuCV3bGFr39ri824kAF4f/A... | 15 | 11 | 2 | [{"id": "G0", "claim": "The refresh-and-retry logic in Do should be broken out into its own function so that multiple IDPs can be supported easily in the future.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The refresh logic should be separated into it... | null |
splunk__splunk-library-javalogging__174 | splunk/splunk-library-javalogging | 174 | defect | f027edacab1dabb506ef4321efd7887979158cca | d665ef3d1c14bad6a93e0bfbe076922ecf48c46d | Move CI to GitHub Actions, set up automated deploy | New GitHub Actions configs that matrix test unit tests against osx/windows/linux and java 8/11, tests acceptance tests on Linux against Splunk 7.x and 8.x, adds built jars to GH releases, and should publish jars to artifactory when a release is published. | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..feedf43d
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,33 @@
+on:
+ release:
+ types: [published]
+
+name: Create Release
+
+jobs:
+ build:
+ name: Create Release
+ runs-on: ubuntu-l... | 1 | 1 | 0 | [{"id": "G0", "claim": "Updating the files that need changes on each release (CHANGELOG, pom.xml, README) could be automated, e.g. via a pre-release step that bumps them from the release tag, and that could be a follow-up to this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existi... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.