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
appvia__tako__566
appvia/tako
566
defect
c298a2cad0608ee237c401ac1de1b13296fe9d35
7f660112d3e5ca44aa8811512345c60d4f94132f
Add storage resource params
Resolves: #564 This PR adds the additional configuration parameters around workload resource requests/limits. Specifically for ephemeral storage that workload can reserve and its upper limit: ```yaml x-k8s: workload: resource: storage: 1G maxStorage: 2G ``` You can express storage as a...
diff --git a/pkg/kev/config/svcext.go b/pkg/kev/config/svcext.go index abbb1930..caf18883 100644 --- a/pkg/kev/config/svcext.go +++ b/pkg/kev/config/svcext.go @@ -429,10 +429,12 @@ type Workload struct { } type Resource struct { - Memory string `yaml:"memory,omitempty"` - MaxMemory string `yaml:"maxMemory,omitem...
2
2
0
[{"id": "G0", "claim": "The function doc comments should read \"can be set via a docker compose\" instead of the ungrammatical \"can set via docker compose\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The \"storage can't be ... docker compose...
null
appvia__tako__568
appvia/tako
568
defect
4aeaf441a5fbaa25d4c81b3ae902f64e8808b1ce
f8ee9c5eb994d69025b74f2c881f9f2dd5d8f90f
Added workload pod annotations to rendered manifests.
Resolves #562 - Adds annotations to rendered manifests as per configured workload annotations. - Updates the documentation to include annotations config. Example rendered deployment: ```yaml apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: service: wordpress name:...
diff --git a/pkg/kev/config/svcext.go b/pkg/kev/config/svcext.go index caf188836..7b5142aa7 100644 --- a/pkg/kev/config/svcext.go +++ b/pkg/kev/config/svcext.go @@ -415,17 +415,18 @@ func validateDNSSubdomainNameIfAny(fl validator.FieldLevel) bool { // Workload holds all the workload-related k8s configurations. typ...
1
1
0
[{"id": "G0", "claim": "The reference documentation needs to be updated (for the new workload annotations) before the pull request is good to go.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appvia__tako__585
appvia/tako
585
defect
13d0e4a144b87c9411f69179427e6dad744ba635
8ad95cbd7b037f2b283e8771ba94ad076d3edee9
Add command config param
Resolves #582 This PR adds the following: * adds `workload.command` & `workload.commandArgs` config options * updates config reference doc Now it's possible to override a command / args in compose config extension.
diff --git a/docs/reference/config-example.md b/docs/reference/config-example.md index c232993d..f4ffea55 100644 --- a/docs/reference/config-example.md +++ b/docs/reference/config-example.md @@ -19,7 +19,12 @@ services: # compose services sect domain: ...
8
8
0
[{"id": "G0", "claim": "Fix the typo in the docs line for workload.command, changing \"presedence\" to \"precedence\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the docs line for workload.commandArgs, changing \"presedence\" t...
null
appvia__tako__586
appvia/tako
586
defect
13d0e4a144b87c9411f69179427e6dad744ba635
99e69476d7a695eaa369615cde71d0a3c00a5ce5
Generate ServiceAccount manifest for eligible objects if service account name specified
Resolves: #583 When workload's k8s configuration specifies a service account name other than `default` it'll result in ServiceAccount manifest being generated when `render` command is executed. It's a NOOP for `default` service account name.
diff --git a/pkg/kev/converter/kubernetes/transform.go b/pkg/kev/converter/kubernetes/transform.go index cd5a29aa5..1e3d82433 100644 --- a/pkg/kev/converter/kubernetes/transform.go +++ b/pkg/kev/converter/kubernetes/transform.go @@ -684,7 +684,7 @@ func (k *Kubernetes) initIngress(projectService ProjectService, port in...
1
1
0
[{"id": "G0", "claim": "The new helper `initSa` should be named `initServiceAccount` because it is more explicit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appvia__tako__588
appvia/tako
588
defect
5a345804198b483200824da00019975ee9bb824c
6882cc989b4bacd114bda2acb854ac6911d7993c
Rename application-generated filenames
Addresses #584. Modifies generation of environment override filenames by providing a dedicated infix constant (rather than deriving the infix portion of the generated `docker-compose` filenames from the app manifest name, which is now going to deviate anyway). Specifically, now generates `docker-compose.env.[enviro...
diff --git a/docs/tutorials/getting-started-with-kev.md b/docs/tutorials/getting-started-with-kev.md index 2239d867..ce0876e9 100644 --- a/docs/tutorials/getting-started-with-kev.md +++ b/docs/tutorials/getting-started-with-kev.md @@ -108,9 +108,9 @@ Detecting secrets in: docker-compose.yaml ✓ None detected in servi...
1
1
0
[{"id": "G0", "claim": "The const dockerComposeInfix should be renamed to envOverrideFileInfix since it is only ever used in the environment override files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appvia__tako__618
appvia/tako
618
defect
754177d8b550c1333c0573874e4c0413c6eb40aa
dc44ca830028d0785d6bfadd8d628a243341ce45
Allow image name overrides in environment override files
Allow users to override the images in the environment override files, and persist these in the generated k8s manifests. This allows users to specify different images for different environments. This change adds a new `Image` field to the `ServiceConfig` struct, and modifies the post-reconciliation merging to copy ov...
diff --git a/pkg/kev/kev_reconcile_test.go b/pkg/kev/kev_reconcile_test.go index f007c2ca..35fd82af 100644 --- a/pkg/kev/kev_reconcile_test.go +++ b/pkg/kev/kev_reconcile_test.go @@ -512,6 +512,48 @@ var _ = Describe("Reconcile", func() { }) }) + Context("when compose image name is overridden in an environmen...
1
1
1
[{"id": "G0", "claim": "The image-name condition would be better written to trim whitespace and check for length instead of comparing the raw override.Image string to \"\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
appvision-gmbh__json2typescript__121
appvision-gmbh/json2typescript
121
defect
ab750a0815c5f0e3792d0d823287826aa0b889e8
b0aa0e5038b01b336b435ba2d8103e8f316ba676
Fixed property mapping to be inheritance-based
Modified getClassPropertyMappingOptions() to step through the prototpe chain to find the appropriate property mapping rather than just searching by property name. That way properties with the same name on different classes won't conflict. Also added new test classes and updated unit/integration tests.
diff --git a/src/json2typescript/json-convert.ts b/src/json2typescript/json-convert.ts index 8dd871d..9afdad7 100644 --- a/src/json2typescript/json-convert.ts +++ b/src/json2typescript/json-convert.ts @@ -695,16 +695,18 @@ export class JsonConvert { // Check if mapping is defined if (typeof (mappings)...
3
1
0
[{"id": "G0", "claim": "If two same-named mapped properties have compatible types, the mapping definition may still be taken from the wrong class, though the reviewer notes this currently has no effect.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
aptible__supercronic__172
aptible/supercronic
172
defect
bfb0d97ba6ae094ca227fbd67e212581aef456a3
73130a08e4c85a4d4b30bab51b770c4198456d68
refactor: reap zombie process and opt-out with no-reap flag
fix: https://github.com/aptible/supercronic/issues/171 close: https://github.com/aptible/supercronic/pull/136
diff --git a/cron/cron_test.go b/cron/cron_test.go index ca1a67c..966a31b 100644 --- a/cron/cron_test.go +++ b/cron/cron_test.go @@ -3,7 +3,7 @@ package cron import ( "context" "fmt" - "io/ioutil" + "io" "regexp" "strings" "sync" @@ -41,7 +41,7 @@ func (hook *testHook) Levels() []logrus.Level { func newTe...
5
5
1
[{"id": "G0", "claim": "Reaping should be enabled by default with a -no-reap opt-out flag, and the process should log a warning when reaping is configured but not possible because it is not PID 1.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The zombie...
null
aptible__supercronic__18
aptible/supercronic
18
defect
b440b0225c77fe004f8a575c9676d98fde98f686
cca55fb75cf3d47ac0a239a42048eb35a8be5cfd
Add overlapping flag
This PR adds `-overlapping` flag (default false) which allows running overlapped jobs. Other changes: - Modify `.travis.yml` to allow forks testing - Switch from `glide` to `dep` as it will become official vendoring tool - Upgrade from go 1.8 to 1.9
diff --git a/.travis.yml b/.travis.yml index 79cc483..f977f87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,14 +3,14 @@ dist: trusty language: go -go: "1.8" +go: "1.9" -addons: - apt: - sources: - - sourceline: 'ppa:masterminds/glide' - packages: - - glide +before_install: + - mkdir -p $HOME...
4
3
1
[{"id": "G0", "claim": "The feature changes and the maintenance changes should be split into separate commits/PRs rather than combined in a single mixed change.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add unit test...
null
aptible__supercronic__199
aptible/supercronic
199
defect
8fd022b282f790a6c06a50a52c8f86508fec57d4
abd539c714af4053396bbdd5fc1114b5b19ee88b
fix(reaper): forkExec error no such file or directory & prometheus exit error
This is the fix described in https://github.com/aptible/supercronic/pull/178 but with minimal changes applied, since @UserNotFound and I are trying to get things fixed while limiting the scope of changes of an individual PR.
diff --git a/reaper.go b/reaper.go index a271bbd..3d7b6d5 100644 --- a/reaper.go +++ b/reaper.go @@ -17,6 +17,12 @@ func forkExec() { return } + exe, err := os.Executable() + if err != nil { + logrus.Fatalf("Failed to get executable %s", err.Error()) + return + } + pattrs := &syscall.ProcAttr{ Dir: pwd, ...
1
1
0
[{"id": "G0", "claim": "The return statement after logrus.Fatalf in forkExec is unreachable and should be removed (or the logging replaced if graceful error handling is intended).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aptible__supercronic__51
aptible/supercronic
51
defect
51785e089ee97608cd6d385b57347a71014f16b9
2eab28fb306606f5b7b0aa1c2d2f6812780c22ce
Add Prometheus instrumentation
Fixes #50 Feedback taken into account: - [x] We should expose a gauge representing how many instances of a given job are running at a given time. We can increment this at the start of the the runThisJob closure defined in StartJob then defer decrementing it. - [x] We should add counters for executions, failure...
diff --git a/Gopkg.lock b/Gopkg.lock index 809f2f4..b10010a 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -1,6 +1,14 @@ # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. +[[projects]] + digest = "1:0d3deb8a6da8ffba5635d6fb1d2144662200def6c9d82a35a6d05d6c2d4a48f9" + name = "...
13
13
3
[{"id": "G0", "claim": "The repeated generation of the prometheus.Labels attributes in cron.go should be extracted into a function to deduplicate it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PrometheusMetrics object should not own the ...
null
aptible__supercronic__81
aptible/supercronic
81
defect
9155ef01d711b9a2947f2128f5e94cbf2be07b15
a7aab8ee523f16deb0b8eb95db3ba78b0baba83c
Add default Prometheus port
We have a port assigned, so might as well default to it. Fixes: #74
diff --git a/main.go b/main.go index 763ca29..0198428 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,15 @@ func main() { quiet := flag.Bool("quiet", false, "do not log informational messages (takes precedence over debug)") json := flag.Bool("json", false, "enable JSON logging") test := flag.Bool("test", false, "...
1
1
0
[{"id": "G0", "claim": "The two return paths are inconsistent — getAddr re-joins host and port with net.JoinHostPort instead of returning listenAddrWithPort, and joins with fmt.Sprintf in one place but net.JoinHostPort in the other.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
aptly-dev__aptly__1045
aptly-dev/aptly
1,045
defect
f89350e6cd220c6899d6e349aef928e5258b59f9
a0d6f8e86f4dd8190db678d1b89f8db738b9c7c8
Add metrics endpoint with http metrics using Prometheus client lib
Fixes #408 ## Requirements Enable basic Prometheus compatible instrumentation capabilities ## Description of the Change Add metrics endpoint with basic http and go related metrics when running `api serve` which can be enabled or disabled by a switch in the config file (= `enableMetricsEndpoint`) ## Checklist...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfa48f3432..225e7cff26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: true matrix: - go: [1.14, 1.15, 1.16] + go: [1.16, 1.17, 1.18] run_lon...
1
1
1
[{"id": "G0", "claim": "The new metrics endpoint functionality should be verified by adding some simple tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aptly-dev__aptly__1166
aptly-dev/aptly
1,166
defect
77e02bf7a363c78f9c82792a569c8a5a496c1f06
d78116154cc6a5c692e670b9d82f2d418807bb33
Api and files
Duplicate of #1116 but with system tests. Fixes #1017, maybe also fixes #975 but not sure about that Related documentation change: https://github.com/aptly-dev/www.aptly.info/pull/103 ## Requirements All new code should be covered with tests, documentation should be updated. CI should pass. ## Descriptio...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89237d0931..64d323db7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.50.1 + ve...
4
3
1
[{"id": "G0", "claim": "The new `/repos/` endpoint should return a listing of the published repos, rendered as a 'directory listing'-style response rather than JSON.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `/repos/:storage/*pkgPath` handler mi...
null
aptly-dev__aptly__1186
aptly-dev/aptly
1,186
defect
1501a4e531f7e91b44bba624dc000850e251e8c5
4bcfa2198bb1e79084ffe0b972079fd19113bec9
Feature/384-generate-checksums-for-component-files
Fixes #384 This is basically a rebase of #473, which was really out of date, so refer back to that PR for more information. ## Requirements All new code should be covered with tests, documentation should be updated. CI should pass. ## Description of the Change * Adds a skeleton (skel) folder at .aptly/s...
diff --git a/AUTHORS b/AUTHORS index 7c2b5683e..ee67a1953 100644 --- a/AUTHORS +++ b/AUTHORS @@ -54,3 +54,4 @@ List of contributors, in chronological order: * Boxjan (https://github.com/boxjan) * Mauro Regli (https://github.com/reglim) * Alexander Zubarev (https://github.com/strike) +* Blake Kostner (https://github....
3
1
1
[{"id": "G0", "claim": "After running `aptly publish snapshot -component=apps,play ...` the expected dep11/appstream directories are still missing from the published tree (the skeleton files are not picked up), even after switching from `.aptly/addon` to `.aptly/skel`.", "category": "correctness", "verdict": "uncertain...
null
aptly-dev__aptly__1317
aptly-dev/aptly
1,317
defect
8029305d321fca430dd84d986ea4c3ca1443b0d9
1339e35dd785fff114549e027d81cbe47a882e27
Support version numbers in `Provides` entries
Fixes #678, #1318 ## Requirements All new code should be covered with tests, documentation should be updated. CI should pass. ## Description of the Change <!-- Why this change is important? --> Aptly was interpreting the entries of the `Provides` field as plain package names, but they are allowed t...
diff --git a/deb/list.go b/deb/list.go index 77a03a64d5..51c9ba7e07 100644 --- a/deb/list.go +++ b/deb/list.go @@ -145,7 +145,7 @@ func (l *PackageList) Add(p *Package) error { l.packages[key] = p if l.indexed { - for _, provides := range p.Provides { + for _, provides := range p.ProvidedPackages() { l.prov...
4
2
2
[{"id": "G0", "claim": "Replacing the `break`s with `return`s in `PackageList.Search` makes `allMatches=false` stop at the first match overall instead of returning one match from each loop, and it should be confirmed this is intended (the author offers to revert otherwise).", "category": "correctness", "verdict": "unce...
null
aptly-dev__aptly__1364
aptly-dev/aptly
1,364
defect
4658bec08ba945aef609ac249f5bb9a56bc149de
36fc9c464b5161669da81a44498e471aae6de67f
Feature/persist multidist
## Description of the Change The recently introduced `MultiDist` feature for publish points is now persisted to the database. This allows specifying the `MultiDist` option when creating a publish point (`publish snapshot` / `publish repo`) and making it optional for `publish update` / `publish switch` (it may be ...
diff --git a/api/publish.go b/api/publish.go index a520878a06..a434d90cb6 100644 --- a/api/publish.go +++ b/api/publish.go @@ -130,7 +130,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) { var resources []string collectionFactory := context.NewCollectionFactory() - if b.SourceKind == "snapshot" { + if b.SourceK...
1
1
1
[{"id": "G0", "claim": "Support for setting `MultiDist` on an already published repository should be dropped, making `MultiDist` immutable after published repository creation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aptly-dev__aptly__1390
aptly-dev/aptly
1,390
defect
74364544c22f23ea073dc30aeffa3fba8bfc5eea
8436001d5b3fa8ceb471d18e6555c69ff3e146b9
Make HTTP server wait for tasks before shutdown
Fixes #1335 ## Description of the Change This code change prevents SIGINT/SIGTERM signals from stopping the Aptly API server before it has cleaned up any resource locks in the database. Normally for CLI aptly commands, it would clear these locks if it detects the PID that had the previous lock is no longer runni...
diff --git a/cmd/api_serve.go b/cmd/api_serve.go index 22af04a87..51bdd91b0 100644 --- a/cmd/api_serve.go +++ b/cmd/api_serve.go @@ -65,6 +65,7 @@ func aptlyAPIServe(cmd *commander.Command, args []string) error { signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM) go (func() { if _, ok := <-sigchan; ok { + ...
1
1
0
[{"id": "G0", "claim": "Add some logging, e.g. a 'signal received, waiting for tasks to complete' message, to help debugging when the server starts waiting on shutdown.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aptly-dev__aptly__1392
aptly-dev/aptly
1,392
defect
147955c68212bd275ec0b3e9b65882e4de5665a8
0c1f057d0e8f5548c897f51237cec6fe185dae1d
Migrate to azure-sdk-for-go
Fixes https://github.com/aptly-dev/aptly/issues/1290 ## Description of the Change - migrate to new azure sdk ## Checklist - [x] FIXMEs, MD5 upload, ...
diff --git a/Makefile b/Makefile index 27ccdde1ff..ee3547254b 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,13 @@ swagger-install: # Install swag @test -f $(BINPATH)/swag || GOOS=linux GOARCH=amd64 go install github.com/swaggo/swag/cmd/swag@latest +azurite-start: + azurite & \ + echo $$! > ~/.azurite.pid + +a...
3
2
2
[{"id": "G0", "claim": "Use storage.az.blobPath when computing the pool path in LinkFromPool, resolving the \"FIXME: check how to integrate publishedPrefix\" marker.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Resolve the leftover WIP in the blob...
null
aptly-dev__aptly__1479
aptly-dev/aptly
1,479
defect
231039e86c99bf90d9b44c087d70459c9d7ddf85
1515b5263c2f6cb3b178688f7d0022eced24d1b7
Add config key for 'gpgKeys' and allow multiple keyRefs when signing with gpg, fixing Issues #309 and #691
Fixes #309 and #691 ## Requirements All new code should be covered with tests, documentation should be updated. CI should pass. ## Description of the Change This PR introduces support for multiple GPG signing keys in aptly, addressing longstanding requests for multi-signature support in published repositor...
diff --git a/AUTHORS b/AUTHORS index 8eef529da6..7cd86f2e11 100644 --- a/AUTHORS +++ b/AUTHORS @@ -69,4 +69,5 @@ List of contributors, in chronological order: * Leigh London (https://github.com/leighlondon) * Gordian Schoenherr (https://github.com/schoenherrg) * Silke Hofstra (https://github.com/silkeh) -* Itay Pore...
4
4
2
[{"id": "G0", "claim": "The --gpg-key flag help should mention how multiple keys are supplied, i.e. whether key IDs can be separated by space/semicolon or whether the flag has to be repeated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trai...
null
aptly-dev__aptly__1481
aptly-dev/aptly
1,481
defect
8ca4cb8dcb4dfc1424e6defec6ce89796b1f2b35
b926c67457a0327a60a6472ec4144b287e6f633c
Add mutex on LinkFromPool to fix #1449
This fixes the race condition that happens when you call publish concurrently. It adds a valuable test that reproduces the error almost deterministically, it's hard to say always but I have run this in loop 100 times and it reproduces the error consistently without the patch and after the patch it works consistently. ...
diff --git a/AUTHORS b/AUTHORS index 8eef529da6..e2b318c8ae 100644 --- a/AUTHORS +++ b/AUTHORS @@ -69,4 +69,5 @@ List of contributors, in chronological order: * Leigh London (https://github.com/leighlondon) * Gordian Schoenherr (https://github.com/schoenherrg) * Silke Hofstra (https://github.com/silkeh) -* Itay Pore...
1
1
0
[{"id": "G0", "claim": "The concurrency test's 50 iterations seem excessive since reproduction errors appeared by iteration 4, so maybe 10 iterations would be sufficient to save CPU cycles in the already long CI process.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
aptly-dev__aptly__490
aptly-dev/aptly
490
defect
ab0d77f6f9a02077476ae35ee5a3aeb88280c7d7
f2dc4eeec90850cbf1b1e8dec55c3c176333b168
Use temporary LevelDB to store contents index
Attempt to re-implement #454 in a bit different way. In order to reduce stress on main aptly DB, create temporary levelDB to be used only while generating contents indexes. Idea and code borrowed shamelessly from #454. ## Description of the Change Current implementation might use a lot of memory to store ma...
diff --git a/database/leveldb.go b/database/leveldb.go index 18b8b93f7..ab90e1fff 100644 --- a/database/leveldb.go +++ b/database/leveldb.go @@ -4,6 +4,9 @@ package database import ( "bytes" "errors" + "io/ioutil" + "os" + "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/filter" "gi...
2
2
0
[{"id": "G0", "claim": "The comment in WriteTo should read \"merge all packages which have the same path\" instead of \"merge all pkg with have the same path\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because the new algorithm is write inte...
null
aptly-dev__aptly__499
aptly-dev/aptly
499
defect
bc3b2ed5a8c7950017fd0f6ad30f33ed8930c8af
a0832adfa5b17fcf4d492c37ea138b2999b8b783
include dbgsym packages
fixes #331 package should pass name query and same source query
diff --git a/deb/changes.go b/deb/changes.go index aaf9e6a4a..d90874e52 100644 --- a/deb/changes.go +++ b/deb/changes.go @@ -186,6 +186,18 @@ func (c *Changes) PackageQuery() (PackageQuery, error) { } } + // matching debug ddeb packages, they're not present in the Binary field + var ddebQuery PackageQuery + ...
2
2
2
[{"id": "G0", "claim": "The `*-dbgsym` glob query is too broad and should instead use the existing `for` loop to add a `binary + \"-dbgsym\"` query for each binary package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's unit tests are ...
null
aptly-dev__aptly__520
aptly-dev/aptly
520
defect
92c844b8acaeddb681c37603ac8975091cbdeed4
aa16899c60d0adfbf18127f2d8d98c24c7f7fde8
Add option -skip-existing-packages to mirror update to speed up download queue setup
When updating a mirror, all package files are downloaded and a list of downloads is generated by checking which files are already on disc and have the right size. This can take some time, especially on storage systems like NAS or external hard drives when mirroring large repositories. ## Requirements All new code...
diff --git a/AUTHORS b/AUTHORS index be4b75b47..d5ed6d1c3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -26,3 +26,4 @@ List of contributors, in chronological order: * Harald Sitter (https://github.com/apachelogger) * Johannes Layher (https://github.com/jola5) * Charles Hsu (https://github.com/charz) +* Clemens Rabe (https:/...
2
2
0
[{"id": "G0", "claim": "The man page man/aptly.1 was generated with a broken ronn and should be regenerated using the correct ronn fork installed by `make man`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be awesome to add the new -ski...
null
aptly-dev__aptly__664
aptly-dev/aptly
664
defect
9c018ce636f7435ebfc25313462fd9bb05ed96f7
34ae8bb8a09204413dfdea0f9436899f6002dcf9
Support Acquire-By-Hash for index files
Fixes #536 ## Description of the Change This follows up on #551 beside small fixes adds following: * Add s3 and swift support * Add tests * Rename of option to -acquire-by-hash for consistency with other flags ## Checklist - [x] unit-test added (if change is algorithm) - [x] functional test added/upd...
diff --git a/api/publish.go b/api/publish.go index 61da5b04e..70ce06eb4 100644 --- a/api/publish.go +++ b/api/publish.go @@ -238,6 +238,7 @@ func apiPublishUpdateSwitch(c *gin.Context) { Component string `binding:"required"` Name string `binding:"required"` } + AcquireByHash *bool } if c.Bind(&b)...
8
8
4
[{"id": "G0", "claim": "The options in the bash completion COMPREPLY word list should be kept sorted so it is easier to find whether an option is present.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hash list in Finalize can be written di...
null
aptly-dev__aptly__683
aptly-dev/aptly
683
defect
a03761596266e4257f52cbdc51d18d60c56c24a7
15618c8ea8bc71c95f2f94b865c408182af176ea
Use Go context to abort gracefully mirror updates
There are two fixes here: 1. Abort package download immediately as ^C is pressed. 2. Import all the already downloaded files into package pool, so that next time mirror is updated, aptly won't download them once again. Fixes #545 ## Requirements ## Checklist - [x] unit-test added (if change is algorit...
diff --git a/aptly/interfaces.go b/aptly/interfaces.go index 3eb5102eb..310b3f4bf 100644 --- a/aptly/interfaces.go +++ b/aptly/interfaces.go @@ -3,6 +3,7 @@ package aptly import ( + "context" "io" "os" @@ -116,9 +117,9 @@ type Progress interface { // Downloader is parallel HTTP fetcher type Downloader inter...
1
1
0
[{"id": "G0", "claim": "go context would be better and more readable as an embedded type of AptlyContext (like sync.Mutex), so that aptly context and go context can be used interchangeably.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aptly-dev__aptly__734
aptly-dev/aptly
734
defect
77033df27b685e2f5b87305a82f578b378ba2043
5a713534c6ced21c7ab08ab0de7028c8ba1d724d
introduce a gpg and gpgv version compatibility check and fall back to v1
Newer versions of debian and ubuntu come with gpg pointing to gpg2. We can currently only handle gpg1 CLIs though. Luckily the old gpg is still available in the package gnupg1 (providing bin/gpg1). As a bit of a stop-gap, until #657 can be resolved properly, we'll detect the version of bin/gpg. If it is unsuitabl...
diff --git a/context/context.go b/context/context.go index 114368731..eae6f1b53 100644 --- a/context/context.go +++ b/context/context.go @@ -400,7 +400,7 @@ func (context *AptlyContext) GetSigner() pgp.Signer { defer context.Unlock() if context.pgpProvider() == "gpg" { // nolint: goconst - return &pgp.GpgSigner{...
1
1
0
[{"id": "G0", "claim": "InitKeyring redundantly re-runs the findGPG1/findGPGV1 lookups and re-assigns g.gpg and g.gpgv although NewGpgVerifier already initialized them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aptly-dev__aptly__766
aptly-dev/aptly
766
defect
0f4bbc4752e41c9f8f818afa8d46a40ff34927e5
435a051fc62c3b6930cab85e4df16ca5a991c972
Reimplement DB collections for mirrors, repos and snapshots
See #765, #761 Collections were relying on keeping in-memory list of all the objects for any kind of operation which doesn't scale well the number of objects in the database. With this rewrite, objects are loaded only on demand which might be pessimization in some edge cases but should improve performance and...
diff --git a/deb/local.go b/deb/local.go index 9b2207c6aa..a1ffd2a340 100644 --- a/deb/local.go +++ b/deb/local.go @@ -93,8 +93,8 @@ func (repo *LocalRepo) RefKey() []byte { // LocalRepoCollection does listing, updating/adding/deleting of LocalRepos type LocalRepoCollection struct { *sync.RWMutex - db database.St...
2
2
0
[{"id": "G0", "claim": "The success path in LocalRepoCollection.ByUUID added by this pull request (loading the repo from the DB when it is not in the cache) is not covered by a unit test, and similar success paths in the other collections are also uncovered.", "category": "testing", "verdict": "supported", "priority": ...
null
aptly-dev__aptly__868
aptly-dev/aptly
868
defect
77d7c3871aa38b70b9d54a15c0eb785c18ab63e1
f79e5540b5f44b00aaa69377d9c524599970e88f
Parse dependency architecture even without version
This commit closes: #145 ## Description of the Change The dependency format "pkg:arch" (e.g. "python3:any") was not well parsed if not any version is given. This commit splits the dependency name and architecture in all cases. ## Checklist - [x] unit-test added (if change is algorithm) - [ ] functional tes...
diff --git a/AUTHORS b/AUTHORS index 6184a6ffcf..53495bddd7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -36,3 +36,4 @@ List of contributors, in chronological order: * Artem Smirnov (https://github.com/urpylka) * William Manley (https://github.com/wmanley) * Shengjing Zhu (https://github.com/zhsj) +* Raphael Medaer (https:...
1
1
1
[{"id": "G0", "claim": "Could a unit test be added to deb/version_test.go to make sure that dependencies like `python:any` are now properly parsed (dependency architecture parsed even without a version)?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aptos-labs__aptos-core__17111
aptos-labs/aptos-core
17,111
defect
d917172d8341edcfb1341d6371a6ba69b3ace96e
f7078a289603780b0eb2c25c141faa3057054fad
Fix another control flow structuring bug
## Description The decompiler, during control flow structuring, does not consider the impacts of newly inserted loops on previously generated `LoopCont` expressions. See #17087 for an example. This PR fixes this issue. Close #17087. ## How Has This Been Tested? - Existing decompiler test cases ## Type of Change - [ ...
diff --git a/Cargo.lock b/Cargo.lock index 3c254ade9d0..3531356f6e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12151,6 +12151,7 @@ dependencies = [ "codespan", "codespan-reporting", "datatest-stable", + "libtest-mimic", "move-binary-format", "move-bytecode-source-map", "move-bytecode-verifier", @@ -12159,...
3
2
0
[{"id": "G0", "claim": "The reviewer asks whether the nest-depth adjustment keeps things when t > x, questioning the `increase >= 0` keep-condition in adjust_loop_nest_depth (it may increase LoopCont nest depth when the new block is not between the LoopCont and its target loop).", "category": "correctness", "verdict": ...
null
aptos-labs__aptos-core__19291
aptos-labs/aptos-core
19,291
defect
c66dbf952b692bc017b459e3e6e44cc2a43d6958
0483d349a622d0b5353efa580f39e525b44da123
[dkg] Graceful PublicParameters initialization with file-based loading and chain-aware fallback
## Summary - Add production-ready `PublicParameters` initialization mirroring the `DigestKey` pattern from #19269 - Support file-based loading via `public_parameters_blob_path` config, with lazy deserialization and `Arc` shared ownership - Fall back to built-in `TEST_PUBLIC_PARAMETERS` on test chains; return `None` on ...
diff --git a/aptos-node/src/lib.rs b/aptos-node/src/lib.rs index 249120c78b3..4637f6efb14 100644 --- a/aptos-node/src/lib.rs +++ b/aptos-node/src/lib.rs @@ -741,12 +741,17 @@ pub fn setup_environment_and_start_node( // Set the chain_id in global AptosNodeIdentity aptos_node_identity::set_chain_id(chain_id)?; ...
3
2
2
[{"id": "G0", "claim": "ChunkyDKGSession::new() now calls PUBLIC_PARAMETERS.as_ref().expect(...), which panics when initialize_public_parameters was never called, breaking the smoke tests (chunky_dkg_correctness, chunky_dkg_enable_feature) whose test-runner process calls verify_chunky_dkg_transcript without initializin...
null
aptos-labs__aptos-core__19355
aptos-labs/aptos-core
19,355
defect
0b5fc71da74bfd7c61e3aea8861c38f74b81b69b
bfdea8fda372cceeb29267c7e90a24ad9080d6e2
[vm] Add per-safe-point pointer layouts for GC root scanning
## Summary - Adds `SafePointMap` and `FrameLayoutMap` types to support per-safe-point GC pointer tracking, supplementing the existing per-function base layout - GC now tracks PC through the stack walk and scans the union of base `frame_layout` and safe-point-specific pointer offsets at each frame - Verifier validates ...
diff --git a/third_party/move/mono-move/core/src/function.rs b/third_party/move/mono-move/core/src/function.rs index a94d1c84cbc..bd87612cdc2 100644 --- a/third_party/move/mono-move/core/src/function.rs +++ b/third_party/move/mono-move/core/src/function.rs @@ -1,13 +1,124 @@ // Copyright (c) Aptos Foundation // Licen...
9
7
0
[{"id": "G0", "claim": "The `FrameLayoutMap` field `pointer_offsets` should be renamed to `heap_ptr_offsets` to say what it holds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `FrameLayoutMap::new` and `SafePointMap::new` signatures should...
null
aptos-labs__aptos-core__19369
aptos-labs/aptos-core
19,369
defect
0e60de3f2f2f9a20ec8fa4dc858eacac07ad1555
95a3a2f0078f95712a8da82c5b092e095f54fb5b
[compiler-v2] Fix reference mode leak in stackless bytecode gen
## Description The stackless bytecode generator's `reference_mode` mechanism causes two known bugs when complex nested expressions (IfElse, Block) appear as operands of field selections: - #19345: `(if (cond) { o1.inner } else { o2.inner }).x` causes `STLOC_TYPE_MISMATCH_ERROR` - #17615: Inline-within-inline fun...
diff --git a/third_party/move/move-compiler-v2/src/bytecode_generator.rs b/third_party/move/move-compiler-v2/src/bytecode_generator.rs index cf695be4c55..a2b7320bf12 100644 --- a/third_party/move/move-compiler-v2/src/bytecode_generator.rs +++ b/third_party/move/move-compiler-v2/src/bytecode_generator.rs @@ -1385,7 +138...
2
1
0
[{"id": "G0", "claim": "The new comment's assertion that reference mode is \"only meaningful for direct field selections\" is misleading (reference mode also affects auto-creation of references for locals and implicit-deref suppression), and it should be reworded to emphasize that reference mode must not leak into arbi...
null
aptos-labs__aptos-core__19370
aptos-labs/aptos-core
19,370
defect
fadb849874eb56c51f38464476391af97062a278
7a121e78e600b5f353228fcac6e517cb5404d595
Confidential asset v1.1.2 minor fixes
## Description **Remember:** Regenerate `head.mrb` and `doc/*.md` before pushing - [x] rename some variables - [x] prevent useless deposits of 0 - [x] print proof sizes in `e2e-move-tests/` - [x] limit confidential transfer memo length - [x] fix unnecessary point re-compression after Bulletproofs nativ...
diff --git a/aptos-move/e2e-move-tests/src/tests/confidential_asset.rs b/aptos-move/e2e-move-tests/src/tests/confidential_asset.rs index eb46d76805a..88fbac292ee 100644 --- a/aptos-move/e2e-move-tests/src/tests/confidential_asset.rs +++ b/aptos-move/e2e-move-tests/src/tests/confidential_asset.rs @@ -557,6 +557,51 @@ fn...
8
2
1
[{"id": "G0", "claim": "After an asset-specific auditor EK is installed and then removed, existing users' auditor_hint entries still say is_global: false with the old epoch and there is no mechanism to invalidate them proactively, so during the transition period auditors cannot reliably use auditor_hint to tell whether...
null
aptos-labs__aptos-core__19380
aptos-labs/aptos-core
19,380
defect
9102cf27fe351d482a8031c7a18c9419041f859f
fa2fb3fd4abb6029764338b3175c527f71ce0f24
avoid recomputing next validator set
...by caching the result computed when DKG starts. new invariants: - Every epoch starts with `PrecomputedValidatorSet` cleared. - Any kind of async reconfiguration must fill `PrecomputedValidatorSet`. - In an epoch transition, if `PrecomputedValidatorSet` is filled, it is used as the new validator set. ## Type...
diff --git a/aptos-move/framework/aptos-framework/sources/reconfiguration_with_dkg.move b/aptos-move/framework/aptos-framework/sources/reconfiguration_with_dkg.move index 8300361c710..2e09f2e6d14 100644 --- a/aptos-move/framework/aptos-framework/sources/reconfiguration_with_dkg.move +++ b/aptos-move/framework/aptos-fra...
5
4
2
[{"id": "G0", "claim": "The spec still declares `aborts_if exists<ValidatorSet>` and `aborts_if exists<ValidatorPerformance>` although `initialize` was made idempotent with existence guards and no longer aborts when these resources exist, so the spec is now incorrect.", "category": "correctness", "verdict": "supported"...
null
aptos-labs__aptos-core__19429
aptos-labs/aptos-core
19,429
defect
6f0ffe9986f24d4b9a0d43a8194ff59bfba0e35a
c2863d67a616a49c722d318c67c20a107f2d1b60
[encrypted mempool] New digest key file format
I was thinking about the DigestKey file format; since we have to coordinate w/ node operators to download this file, maybe it makes sense to be more intentional about this format. Previously I was just using serde/bcs to serialize, but we could instead have a format that: * has a versioned header which you can read ...
diff --git a/Cargo.lock b/Cargo.lock index 4bd2d4f9420..bbad8f981ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -685,6 +685,7 @@ dependencies = [ "serde_bytes", "serde_json", "sha2 0.10.9", + "tempfile", "thiserror 1.0.69", ] diff --git a/crates/aptos-batch-encryption/Cargo.toml b/crates/aptos-batch-encrypti...
2
2
1
[{"id": "G0", "claim": "In write_digest_key, file.write does not guarantee all bytes are written and its return value is discarded, so a short write can leave a truncated, unreadable header; file.write_all should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
aptos-labs__aptos-core__19454
aptos-labs/aptos-core
19,454
defect
5964e831a935f793a6a160279eb99336aa349116
f2f99290722daa639b447fb446e45de04a258848
[mono-vm] Factor specializer pipeline out of the executable and into the specialize crate.
## Description Factored the specializer pipeline out of `executable.rs` into `specializer::destack_and_lower_module()`. What moved into the specializer: - Pipeline orchestration (destack → lower → gas instrumentation → frame layout computation) - New LoweredFunction/LoweredModule types in lower/mod.rs, pipe...
diff --git a/Cargo.lock b/Cargo.lock index 68bd274ebef..a74e5e41c60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12704,7 +12704,6 @@ dependencies = [ "move-asm", "move-binary-format", "move-core-types", - "move-vm-types", "parking_lot 0.12.5", "specializer", ] @@ -18245,6 +18244,7 @@ dependencies = [ "data...
6
4
2
[{"id": "G0", "claim": "LoweredModule.functions is consumed as if indexed by Move FunctionDefinition index, but the destack IR only holds entries for non-native definitions, so a module containing native function defs would make the vector shorter and misaligned, leading to incorrect patching or out-of-bounds indexing ...
null
aptos-labs__aptos-core__19520
aptos-labs/aptos-core
19,520
defect
d60127002a42002444e479149488b3dd0fc0df9f
e40e4a9aa4eef67d04b190d2a3d033322d05f712
[storage] Verify hot-state proofs in ProvableStateSummary
`ProvableStateSummary::get_proof` previously skipped its 1-in-10000 sampled verification on the hot-state path because the code had no way to recover `hot_since_version` — the hot-state KV was not persisted, and the in-memory hot state didn't expose that query. Hot-state KV persistence landed in a73a294a5a50, so the s...
diff --git a/storage/aptosdb/src/db/aptosdb_reader.rs b/storage/aptosdb/src/db/aptosdb_reader.rs index f0ea837735c..bcac6f06fb6 100644 --- a/storage/aptosdb/src/db/aptosdb_reader.rs +++ b/storage/aptosdb/src/db/aptosdb_reader.rs @@ -32,6 +32,7 @@ use aptos_types::{ }, state_proof::StateProof, state_store...
3
1
0
[{"id": "G0", "claim": "get_hot_state_value_with_proof_by_version_ext guards its hot-store reads with error_if_state_kv_pruned / error_if_state_merkle_pruned, which consult the cold store's pruning frontiers, so divergent hot-vs-cold pruning could wrongly reject valid hot-state queries (or let a pruned hot row read as ...
null
aptos-labs__aptos-core__19539
aptos-labs/aptos-core
19,539
defect
41edbe5cede127be829d44b31a0c8779d351d204
a625603fe8f7a60e01cb92b8ac5ab3a9fdd1caf3
[storage] Stable hot state order across restarts
Sort each `PerVersionStateUpdateRefs` shard by `(version, key_hash)` so that `State::update` inserts into `HotStateLRU` in the same order `assemble_lru_chain` uses when rebuilding the chain from disk on restart. Previously the order within a single version was not well defined, so the LRU chain built at runtime for s...
diff --git a/storage/aptosdb/src/state_kv_db.rs b/storage/aptosdb/src/state_kv_db.rs index b30997c763f..7e87bdcc725 100644 --- a/storage/aptosdb/src/state_kv_db.rs +++ b/storage/aptosdb/src/state_kv_db.rs @@ -531,12 +531,14 @@ impl StateKvDb { Ok(entries) } - /// Sorts entries by `(hot_since_version,...
3
1
0
[{"id": "G0", "claim": "The doc comment on `load_hot_state_kvs` says the returned shards are ordered by `hot_since_version`, but the canonical order this PR establishes is `(hot_since_version, key_hash)`, so the comment should be updated to name the tuple.", "category": "documentation", "verdict": "supported", "priorit...
null
aptos-labs__aptos-core__19547
aptos-labs/aptos-core
19,547
defect
52ec857ab3ea9ab2a0b315b18d1595f808d9d55a
2735a5a1cddab64f1ff8fc6b243d430d81ffa0cc
[storage] Persist hot-state promotions in epilogue
Add `BlockEpiloguePayload::V2`, which carries the per-block `to_make_hot` set as a normally-serialized sibling field. V0 and V1 are untouched. With V2, hot-state promotions survive BCS round-trip and are reproducible across both re-execute and apply-output state sync paths. V2 production is gated on `HotStateConfig::...
diff --git a/aptos-move/aptos-vm/src/aptos_vm.rs b/aptos-move/aptos-vm/src/aptos_vm.rs index 0d3259f85b8..da95577185f 100644 --- a/aptos-move/aptos-vm/src/aptos_vm.rs +++ b/aptos-move/aptos-vm/src/aptos_vm.rs @@ -162,6 +162,7 @@ static NUM_PROOF_READING_THREADS: OnceCell<usize> = OnceCell::new(); static DISCARD_FAILED...
5
2
2
[{"id": "G0", "claim": "The persist_hotness_in_epilogue defaults are asymmetric and unguarded — the unset PERSIST_HOTNESS_IN_EPILOGUE static returns true (e.g. the executor-benchmark binary never calls the setter) and chain_id == None bypasses the ConfigOptimizer's mainnet/testnet override — so some code paths can sile...
null
aptos-labs__aptos-core__19636
aptos-labs/aptos-core
19,636
defect
ae14cba8e1d257689164b319c56263a0b9d39249
072916cd60f13ae51aa8adfb77202d3abc4a23ee
[mono-move] Memory alignment design doc
## Summary - Adds `third_party/move/mono-move/docs/memory_alignment.md`, the design doc for how MonoMove aligns values in memory. - Covers: principles, the `MAX_ALIGN` constant, VM-managed regions (heap + stack mechanics), primitive sizes/alignments, composite layouts (heap objects, inline/heap structs, inline/heap en...
diff --git a/third_party/move/mono-move/core/src/instruction/mod.rs b/third_party/move/mono-move/core/src/instruction/mod.rs index 4fbb8278d4a..f87c3c9bc75 100644 --- a/third_party/move/mono-move/core/src/instruction/mod.rs +++ b/third_party/move/mono-move/core/src/instruction/mod.rs @@ -1093,6 +1093,19 @@ impl fmt::Di...
21
17
0
[{"id": "G0", "claim": "The GC scan error message in gc_collect still says \"8-byte aligned\" although the check above it now uses align_max, and should read MAX_ALIGN-byte aligned.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two other stal...
null
aptos-labs__aptos-core__19643
aptos-labs/aptos-core
19,643
defect
b67c77641a6c62107261f4f6ff5f9bcc7000d34b
0083cc132f9fe9fdf36e74ac4761e10a405ea514
[block-executor] replace rayon BlockSTM pool with plain std-thread pool
BlockSTM v1 can deadlock when a transaction enters a Rayon parallel section on the same pool that runs the BlockSTM workers. One failing sequence is: 1. A BlockSTM worker starts executing txn N, then enters a nested `par_iter()` and waits for its Rayon subtasks to finish. 2. While waiting, Rayon lets that worker s...
diff --git a/aptos-move/aptos-vm/src/block_executor/mod.rs b/aptos-move/aptos-vm/src/block_executor/mod.rs index 696ac4187c2..c772e667ce4 100644 --- a/aptos-move/aptos-vm/src/block_executor/mod.rs +++ b/aptos-move/aptos-vm/src/block_executor/mod.rs @@ -19,7 +19,6 @@ use aptos_block_executor::{ txn_provider::TxnPro...
4
1
0
[{"id": "G0", "claim": "The global worker pool grows without any cap under concurrent sharded execution and a failed `std::thread::spawn` panics via a bare `.expect()`, aborting the process, so the review asks for a defensive cap or a graceful degradation path (and a warning when spawned threads exceed num_cpus).", "ca...
null
aptos-labs__aptos-core__19668
aptos-labs/aptos-core
19,668
defect
1cc5068c5de6efa20bad41be89484c2f2a57b08b
299e70570581d8954b1cdbca86f905a1645247d3
[move-lint] Fix false positives for needless visibility lint by making test callers visible to the linter.
## Description Fix: `needless_visibility` lint no longer falsely flags `package fun` / `friend fun` whose only cross-module callers are tests. Root cause: The linter ran with `compile_test_code: false`, which strips `#[test]` and `#[test_only]` items before model construction. Cross-module test callers were invis...
diff --git a/aptos-move/cli/src/lint.rs b/aptos-move/cli/src/lint.rs index ba628f5cb6d..b79de82f902 100644 --- a/aptos-move/cli/src/lint.rs +++ b/aptos-move/cli/src/lint.rs @@ -168,6 +168,8 @@ impl CliCommand<&'static str> for LintPackage { let package_path = move_options.get_package_path()?; let incl...
1
1
0
[{"id": "G0", "claim": "lint_processor.rs lacks the module-level is_test_or_verify_only() guard that model_ast_lints.rs has, a structural asymmetry worth noting for future maintainers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aptos-labs__aptos-core__19691
aptos-labs/aptos-core
19,691
defect
66b12ff41631132da70a82b850f14bc255a7c93b
b7690e46ead8ba5279580cc924b960a0a1a8390e
[vm] Relax upgrade compatibility to allow changing friend/package entry to private entry
## Description Allow demoting `friend`/`package` `entry` functions to private `entry` during module upgrades, behind a new on-chain feature flag. This fixes a spurious `BACKWARD_INCOMPATIBLE_MODULE_UPDATE` rejection. closes #19650. ## How Has This Been Tested? Added new upgrade compatibility tests. ## Ty...
diff --git a/aptos-move/aptos-release-builder/src/components/feature_flags.rs b/aptos-move/aptos-release-builder/src/components/feature_flags.rs index 80fb4392fae..1497fdcb745 100644 --- a/aptos-move/aptos-release-builder/src/components/feature_flags.rs +++ b/aptos-move/aptos-release-builder/src/components/feature_flag...
4
2
0
[{"id": "G0", "claim": "The `Compatibility::new` constructor taking positional booleans is error-prone (easy to accidentally swap true/false in the argument list) and should be removed in favour of filling exact fields.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1...
null
aptos-labs__aptos-core__19696
aptos-labs/aptos-core
19,696
defect
00f13ff34bae4819f4726ef1b63db7b01da658e5
f3008e352b7b8c7118493b6b89ebf5a99ace8fc5
[paper] add calculator and e2e test for inference paper
## Description <!-- Please include a summary of the change, including which issue it fixes or what feature it adds. Include relevant motivation, context and documentation as appropriate. List dependencies that are required for this change, if any. --> 1) Add the calculator example to the example of two papers; 2) ...
diff --git a/third_party/move/move-prover/doc/higher-order-paper-26/examples/sources/calculator.move b/third_party/move/move-prover/doc/higher-order-paper-26/examples/sources/calculator.move new file mode 100644 index 00000000000..164dcca8db2 --- /dev/null +++ b/third_party/move/move-prover/doc/higher-order-paper-26/ex...
1
1
0
[{"id": "G0", "claim": "The new calculator.orig.move uses module address 0x66 while its annotated counterpart sources/calculator.move uses 0x42, unlike every other .orig.move example in the inference paper which consistently uses 0x42, making the before/after comparison inconsistent and confusing.", "category": "correc...
null
aptos-labs__aptos-core__19713
aptos-labs/aptos-core
19,713
defect
d8be469f7f0b9222013a999e31c18ed6cd9ad1d1
9019fc3ee6f459b33cc42426eff6f29db86e239c
[mono-move] Move heap object headers to negative offsets
## Summary Heap object pointers now point at the start of the data region. The 8-byte `[desc_id | size]` header lives at fixed negative offsets (`obj_ptr - 8` and `obj_ptr - 4`), accessed only through helpers in `runtime::memory`. The allocator reserves `OBJECT_HEADER_SIZE = MAX_ALIGN` bytes before each data region so...
diff --git a/third_party/move/mono-move/core/src/instruction/mod.rs b/third_party/move/mono-move/core/src/instruction/mod.rs index 0e491c137d6..04ad8cec7f8 100644 --- a/third_party/move/mono-move/core/src/instruction/mod.rs +++ b/third_party/move/mono-move/core/src/instruction/mod.rs @@ -1118,25 +1118,49 @@ pub const f...
11
11
4
[{"id": "G0", "claim": "alloc_vec adds OBJECT_HEADER_SIZE to the checked data_size with a plain unchecked addition, leaving an overflow window that could wrap and corrupt the GC size field; the header size should be folded back into the checked-arithmetic chain (e.g. .and_then(|v| v.checked_add(OBJECT_HEADER_SIZE))).",...
null
aqlaboratory__openfold-3__148
aqlaboratory/openfold-3
148
defect
bf9659923bb580263a5204579aeee0f4b6fd2dc7
027fe92962301f0189799baa0ba85fab2ff3776e
Fixes for forkserver/spawn serialization and fix for LMDB upgrade issues
**Summary** LMDB refactor to allow for forkserver/spawn serialization and resolve issues that required pinning to LMDB==1.6.2 for training. **Changes** 1. Exposes more dataloader options like persistent workers, prefetch factor, multiprocessing context 2. Lazy load CCD obj to prevent issues with serialization 3....
diff --git a/openfold3/core/data/framework/data_module.py b/openfold3/core/data/framework/data_module.py index e0b858918..950a8d3d6 100644 --- a/openfold3/core/data/framework/data_module.py +++ b/openfold3/core/data/framework/data_module.py @@ -152,7 +152,11 @@ class DataModuleConfig(BaseModel): datasets: list[Ser...
2
1
0
[{"id": "G0", "claim": "The DB preloading logic might be better handled by using vmtouch (falling back to reading the whole DB file only when vmtouch is unavailable), since the page cache is shared across processes on a node.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
aqlaboratory__openfold-3__220
aqlaboratory/openfold-3
220
defect
f4bc9558768c7174f418ab777267bf99c01d26ba
2a134799b7cceda27abd3c8afc1ace5375c9825c
Monkeypatch trunc_normal_init_ to noop during inference
**Summary** I noticed that the random initialization takes up half a minute on model load and tried to optimize it in #178 by moving it from the CPU to the GPU. In this PR, I eliminate random initialization during inference because it is actually not necessary at all...the model weights just replace these randoml...
diff --git a/openfold3/entry_points/experiment_runner.py b/openfold3/entry_points/experiment_runner.py index daf530f58..e83c71190 100644 --- a/openfold3/entry_points/experiment_runner.py +++ b/openfold3/entry_points/experiment_runner.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permission...
4
4
1
[{"id": "G0", "claim": "Prefer not to use the unittest module (unittest.mock.patch) in non-test code; replace it with a manual save/restore wrapper around trunc_normal_init_.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new skip_random_ini...
null
aqlaboratory__openfold-3__45
aqlaboratory/openfold-3
45
defect
b7940cb04a7bc9f7df359206e070220982b41ef6
67005da26702cffdc12da1b201e65515f2e1abfc
fix: small fixes used when finetuning a model
* Allow training without templates. The current setup will crash if the templates directories are not given, whoever we find use cases where we will like to train without them. * Allows running a validation dataset whose cache do not have "token_count" or "use_metric" fields. This is useful if one wants to run .valida...
diff --git a/openfold3/core/data/framework/single_datasets/base_of3.py b/openfold3/core/data/framework/single_datasets/base_of3.py index abfddd01b..57d5a74e5 100644 --- a/openfold3/core/data/framework/single_datasets/base_of3.py +++ b/openfold3/core/data/framework/single_datasets/base_of3.py @@ -139,11 +139,10 @@ def _...
5
4
3
[{"id": "G0", "claim": "Remove the redundant parentheses in `if (k > 0) and (template_cache_directory is not None):` because they will cause an issue with the project's ruff formatter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CheckpointCon...
null
aquasecurity__chain-bench__111
aquasecurity/chain-bench
111
defect
012229c4fe045511170adcd2ae2719024e7a70a8
b1c9c3928b9ae76e8d49ea422c80c1f7b6bf9cd6
Add support for self-hosted SCM
## Description This PR adds support for optionally specifying a SCM to support self-hosted environments. The change defaults to `github` for backwards compatibility but should support Gitlab or GitHub self-hosted/enterprise deployments on a custom domain. ### Before `chain-bench scan --repository-url <REPOSITORY...
diff --git a/.gitignore b/.gitignore index 294852b..0d44e87 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ /__debug_bin .DS_Store -/chain-bench \ No newline at end of file +/chain-bench +/results.json \ No newline at end of file diff --git a/README.md b/README.md index 82471b7..744d36f 100644 --- a/READ...
4
4
3
[{"id": "G0", "claim": "Make the new SCM capability an optional parameter — e.g. keep a nil/empty default and fall back to the host extracted from the repository URL, calling the right client init — so that the current (SaaS) behaviour is not broken.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
aquasecurity__chain-bench__132
aquasecurity/chain-bench
132
defect
31e45b551402a3dc368bb86feeb0f95fdc71ea0e
307e0b5aa350f1c14eefe0227c8e849ecdece048
Fix issue with get repo info #130
## Description Issue when the sub group has the same name as the repository. The getRepoInfo function does not parse it out correctly. This fixes this issue. Example url: `https://my-gitlab-instance.com/top-group/sub-group/repo-name/repo-name` getRepoInfo returned before: ``` host: my-gitlab-instance.com na...
diff --git a/internal/scm-clients/clients/clients.go b/internal/scm-clients/clients/clients.go index 3678e08..aed7e6f 100644 --- a/internal/scm-clients/clients/clients.go +++ b/internal/scm-clients/clients/clients.go @@ -103,8 +103,8 @@ func getRepoInfo(repoFullUrl string) (string, string, string, error) { return ""...
1
1
0
[{"id": "G0", "claim": "The new test case \"github project under sub org with same name as repo\" targets Github, where subgroups do not apply, and should be replaced with a Gitlab URL, name and expected value so it tests the intended same-name-as-repo scenario.", "category": "testing", "verdict": "supported", "priorit...
null
aquasecurity__chain-bench__50
aquasecurity/chain-bench
50
defect
46cb8ab361e55ab6fc35c750c38b2d2776bf9832
56fb4f2e45264ee149c94e5ceaf28a104cb6c969
add permalinks for checks URL
## Description Currently, the JSON output contains for every check, a URL field that points to the sub-control in AVD. This enhancement points every check to the specific checks in AVD by permalink. for example: ![Screen Shot 2022-07-05 at 16 17 27](https://user-images.githubusercontent.com/5520940/177336835-4ef3e...
diff --git a/internal/checks/common/opa/rego_test.go b/internal/checks/common/opa/rego_test.go index f922af1..dfb9a87 100644 --- a/internal/checks/common/opa/rego_test.go +++ b/internal/checks/common/opa/rego_test.go @@ -24,14 +24,16 @@ type RegoRuleResultTest []struct { func TestParseRegoResult(t *testing.T) { me...
1
1
0
[{"id": "G0", "claim": "The getPermalink helper should be refactored to declare its three string parameters together (sectionUrl, id, name string) and build the anchor and URL with fmt.Sprintf instead of string concatenation, folding ToLower into parsedName.", "category": "maintainability", "verdict": "supported", "pri...
null
aquasecurity__cloudsploit__1000
aquasecurity/cloudsploit
1,000
defect
a669c178a24382ca7c5d7f88eacce5b62cd7c1e1
3803329b676859852873c474edf59d51bf69eadf
Added workspacesDesiredBundleType plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3110
diff --git a/exports.js b/exports.js index 8fed95b421..adef6bb663 100644 --- a/exports.js +++ b/exports.js @@ -402,6 +402,7 @@ module.exports = { 'workspacesVolumeEncryption' : require(__dirname + '/plugins/aws/workspaces/workspacesVolumeEncryption.js'), 'workspacesIpAccessControl' : require(__...
3
3
2
[{"id": "G0", "claim": "The plugin should have a setting for desired bundle types and compare each workspace against that type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G6", "claim": "The error check should also treat missing listWorkspaces.data as an error, so a...
null
aquasecurity__cloudsploit__1001
aquasecurity/cloudsploit
1,001
defect
a669c178a24382ca7c5d7f88eacce5b62cd7c1e1
8151898ea42c51feaea66058c0a60f9ff2369cfa
Added workspacesInstanceCount plugin and spec
## Task https://scalock.atlassian.net/browse/SAAS-3111
diff --git a/exports.js b/exports.js index 8fed95b421..a8ebd828aa 100644 --- a/exports.js +++ b/exports.js @@ -402,6 +402,7 @@ module.exports = { 'workspacesVolumeEncryption' : require(__dirname + '/plugins/aws/workspaces/workspacesVolumeEncryption.js'), 'workspacesIpAccessControl' : require(__...
10
10
4
[{"id": "G0", "claim": "The WorkSpaces instance-count threshold should be a configurable setting instead of a hardcoded constant, with 50 as the default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The plugin's fail and pass result messages are awkwar...
null
aquasecurity__cloudsploit__1010
aquasecurity/cloudsploit
1,010
defect
a669c178a24382ca7c5d7f88eacce5b62cd7c1e1
aaec1299befba552c17b729adccdfabd84de447c
Added docdbClusterBackupRetention plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3181
diff --git a/exports.js b/exports.js index 8fed95b421..5607dd1ee6 100644 --- a/exports.js +++ b/exports.js @@ -430,6 +430,7 @@ module.exports = { 'networkMemberDataEncrypted' : require(__dirname + '/plugins/aws/managedblockchain/networkMemberDataEncrypted.js'), 'docdbClusterEncrypted' : r...
8
8
4
[{"id": "G0", "claim": "The hardcoded backup retention threshold should be a configurable setting with default 7 and a regex allowing only 1-35.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multi-line more_info template literal should be collapsed ...
null
aquasecurity__cloudsploit__1015
aquasecurity/cloudsploit
1,015
defect
a669c178a24382ca7c5d7f88eacce5b62cd7c1e1
75ec2f0783958764e514b3b76fa3b11c9efb956a
Added environmentAccessLogs plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3114
diff --git a/exports.js b/exports.js index 8fed95b421..187be2145c 100644 --- a/exports.js +++ b/exports.js @@ -160,6 +160,7 @@ module.exports = { 'ecrRepositoryTagImmutability' : require(__dirname + '/plugins/aws/ecr/ecrRepositoryTagImmutability.js'), 'managedPlatformUpdates' : requi...
11
11
3
[{"id": "G0", "claim": "The no-configuration branch should report 'Environment does not have any log configuration' instead of 'No environment configuration settings found'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The environment-configuratio...
null
aquasecurity__cloudsploit__1018
aquasecurity/cloudsploit
1,018
defect
a669c178a24382ca7c5d7f88eacce5b62cd7c1e1
9e9b71028a99da48b2c3e3173c79a5f3e44f0a04
Added enhancedHealthReporting plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3112
diff --git a/exports.js b/exports.js index 8fed95b421..58b67ec564 100644 --- a/exports.js +++ b/exports.js @@ -160,6 +160,7 @@ module.exports = { 'ecrRepositoryTagImmutability' : require(__dirname + '/plugins/aws/ecr/ecrRepositoryTagImmutability.js'), 'managedPlatformUpdates' : requi...
9
8
1
[{"id": "G0", "claim": "The plugin's description metadata should be replaced with the cleaner one-line wording 'Ensure that Amazon Elastic Beanstalk (EB) environments have enhanced health reporting feature enabled.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
aquasecurity__cloudsploit__1065
aquasecurity/cloudsploit
1,065
defect
9c786cbfce4ab3d154b69d7eaa31ff8541f6ae3d
7ffd4c98bb9285439ff7e3a7e556de32db60f907
SAAS/3377: Added secretsManagerInUse plugin and spec
## Task https://scalock.atlassian.net/browse/SAAS-3377
diff --git a/exports.js b/exports.js index 4b99fb98d9..6f14576ca6 100644 --- a/exports.js +++ b/exports.js @@ -397,6 +397,7 @@ module.exports = { 'secretRotationEnabled' : require(__dirname + '/plugins/aws/secretsmanager/secretRotationEnabled.js'), 'secretsManagerEncrypted' : require(_...
4
4
2
[{"id": "G0", "claim": "The plugin title 'Secrets Manager Secret Rotation Enabled' is wrong for a check about Secrets Manager being used.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The recommended_action should be changed to 'Use Secrets Manag...
null
aquasecurity__cloudsploit__1105
aquasecurity/cloudsploit
1,105
defect
d7ebfcf1d48f84f71ce7f7f6a357818a1469011d
8dd468cdfe5fa12c482480f198a9f32e0513c173
Added loadBalancerLoggingEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3795
diff --git a/exports.js b/exports.js index edfb0e4d26..2f4e47e3d0 100644 --- a/exports.js +++ b/exports.js @@ -566,6 +566,7 @@ module.exports = { 'securitySolutionLogging' : require(__dirname + '/plugins/azure/logalerts/securitySolutionLogging.js'), 'nsgRuleLoggingEnabled' : require(__di...
1
1
1
[{"id": "G0", "claim": "The changes to helpers/azure/functions.js that extend the checkLogAlerts conditions to microsoft.network/loadbalancers are not required and should be reverted.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aquasecurity__cloudsploit__1107
aquasecurity/cloudsploit
1,107
defect
d7ebfcf1d48f84f71ce7f7f6a357818a1469011d
6360edc1dde72d0ff922698fc61fdb9e4d5bb9cb
Added storageAccountLogginEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3799
diff --git a/exports.js b/exports.js index edfb0e4d26..6e3f265f41 100644 --- a/exports.js +++ b/exports.js @@ -566,6 +566,7 @@ module.exports = { 'securitySolutionLogging' : require(__dirname + '/plugins/azure/logalerts/securitySolutionLogging.js'), 'nsgRuleLoggingEnabled' : require(__di...
2
2
2
[{"id": "G0", "claim": "The reviewer asks what the new administrativeCategory-based condition (`administrativeCategory && alertCreateUpdateEnabled`), which replaced the previous microsoft.security/policies check in checkLogAlerts, is for.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
aquasecurity__cloudsploit__1108
aquasecurity/cloudsploit
1,108
defect
d7ebfcf1d48f84f71ce7f7f6a357818a1469011d
bde2d78cd64d4ceb92d6ba8e12c5aa1cbcd56240
Added keyVaults LogginEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3800
diff --git a/exports.js b/exports.js index edfb0e4d26..7f8093432a 100644 --- a/exports.js +++ b/exports.js @@ -566,6 +566,7 @@ module.exports = { 'securitySolutionLogging' : require(__dirname + '/plugins/azure/logalerts/securitySolutionLogging.js'), 'nsgRuleLoggingEnabled' : require(__di...
1
1
1
[{"id": "G0", "claim": "The plugin covers only the Key Vault update event; the reviewer asks whether it should also cover the Key Vault delete event.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aquasecurity__cloudsploit__1137
aquasecurity/cloudsploit
1,137
defect
49242c397bf25c2924642dd925bfbc13eaf20152
8e4368fc5b37a8ef8bf760e2b5ff50171cbdf0a5
Added virtualMachineLogging plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-3797 ## Description - Added virtualMachine Logging plugin and spec
diff --git a/exports.js b/exports.js index 36d4be0d16..dbdcb793fe 100644 --- a/exports.js +++ b/exports.js @@ -584,6 +584,7 @@ module.exports = { 'securitySolutionLogging' : require(__dirname + '/plugins/azure/logalerts/securitySolutionLogging.js'), 'nsgRuleLoggingEnabled' : require(__di...
3
3
0
[{"id": "G0", "claim": "The recommended_action should say 'create/update' instead of 'create or update' for the Virtual Machine log alert.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The description should say 'create/update' instead of 'create...
null
aquasecurity__cloudsploit__1177
aquasecurity/cloudsploit
1,177
defect
0ccf90023b059e0af3de311f5076abba7629da00
ce20663ce745cfcf8c1d154f2754dab12526ac37
Added appInsightsEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4172
diff --git a/collectors/azure/collector.js b/collectors/azure/collector.js index dfe21e2252..f8145059e0 100644 --- a/collectors/azure/collector.js +++ b/collectors/azure/collector.js @@ -395,6 +395,12 @@ var postcalls = { reliesOnPath: 'webApps.list', properties: ['id'], url: 'htt...
1
1
0
[{"id": "G0", "claim": "The plugin description should be reworded to 'Ensures that Application Insights feature is enabled for Azure web apps.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__cloudsploit__1178
aquasecurity/cloudsploit
1,178
defect
be6584249fb4dea23854e2ef4601310a481d723d
00276cc6aeaed579ea3928db45ed676b660b3db3
Added automatedBackupsEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4173
diff --git a/collectors/azure/collector.js b/collectors/azure/collector.js index c7fc096367..c8c99e97c7 100644 --- a/collectors/azure/collector.js +++ b/collectors/azure/collector.js @@ -388,7 +388,13 @@ var postcalls = { reliesOnPath: 'webApps.list', properties: ['id'], url: 'htt...
6
6
0
[{"id": "G0", "claim": "The plugin description should read 'automated backups enabled' instead of the typo 'backupsenabled'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message should say 'Web App backup configs' instead of 'Web App B...
null
aquasecurity__cloudsploit__1181
aquasecurity/cloudsploit
1,181
defect
f359fa1068e2299ad36760181652f762076f7b86
fb77280c48d2bb521e4bb27770ae2984d6f661b9
Added azureActiveDirectoryEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4175
diff --git a/exports.js b/exports.js index b554a422dd..1fb8a2b297 100644 --- a/exports.js +++ b/exports.js @@ -701,6 +701,7 @@ module.exports = { 'certificateExpiry' : require(__dirname + '/plugins/azure/appservice/certificateExpiry.js'), 'scmSiteAccessRestriction' : require(__dirname...
5
5
0
[{"id": "G0", "claim": "Change the plugin description to 'Ensures that Azure Web Apps have registration with Azure Active Directory.' (from the awkward 'have Registration with Azure Active Directory is Enabled.').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
aquasecurity__cloudsploit__1201
aquasecurity/cloudsploit
1,201
defect
7ca1e9caa3c152032f05e509986a10a267c09f7b
708d852405658e9d7bab27deb6020bc090e9ebc4
SAAS-4234: Added appTierCmkInUse plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4234
diff --git a/exports.js b/exports.js index 74d4e68c8a..aaafa2c844 100644 --- a/exports.js +++ b/exports.js @@ -755,6 +755,7 @@ module.exports = { 'kvRecoveryEnabled' : require(__dirname + '/plugins/azure/keyvaults/kvRecoveryEnabled.js'), 'keyExpirationEnabled' : require(__dirname ...
4
4
1
[{"id": "G0", "claim": "The plugin's domain should be 'Application Integration' instead of 'Identity and Access Management', in this and the other key vault plugins, in the same PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The app_tier_tag_sets set...
null
aquasecurity__cloudsploit__1210
aquasecurity/cloudsploit
1,210
defect
7ca1e9caa3c152032f05e509986a10a267c09f7b
0e60b716b04f352ab260ed556ce874cededd68ed
SAAS-4235: Added allowedCertificateKeyTypes plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4235
diff --git a/collectors/azure/collector.js b/collectors/azure/collector.js index c7fc096367..1c8c872ea0 100644 --- a/collectors/azure/collector.js +++ b/collectors/azure/collector.js @@ -409,7 +409,14 @@ var postcalls = { properties: ['vaultUri'], url: '{vaultUri}secrets?api-version=7.0', ...
5
5
3
[{"id": "G0", "claim": "Change the plugin's domain field (then 'Identity and Access Management') to a more appropriate domain.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the allowed_certificate_key_types setting default to an empty string a...
null
aquasecurity__cloudsploit__1211
aquasecurity/cloudsploit
1,211
defect
2a4d5af5bf69e4af30acd30f3c18a837b035762b
424bb15520447e326d7c5a0cde6b83c270b02317
SAAS-4236: Added checkEncryptionKeysExpiry plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-4236
diff --git a/exports.js b/exports.js index 74d4e68c8a..2ff7942db0 100644 --- a/exports.js +++ b/exports.js @@ -755,6 +755,7 @@ module.exports = { 'kvRecoveryEnabled' : require(__dirname + '/plugins/azure/keyvaults/kvRecoveryEnabled.js'), 'keyExpirationEnabled' : require(__dirname ...
3
2
1
[{"id": "G0", "claim": "The plugin metadata should use domain 'Application Integration' instead of 'Identity and Access Management'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The recommended_action line should be changed to 'Ensure each key i...
null
aquasecurity__cloudsploit__1248
aquasecurity/cloudsploit
1,248
defect
0ccf90023b059e0af3de311f5076abba7629da00
72a110042ae2a037ebdf08bf7c90b76bc2b1c47d
Added checkAllUsedServicesPlugin
## Task - https://scalock.atlassian.net/browse/SAAS-5357
diff --git a/exports.js b/exports.js index 1c49f708a1..86898c2587 100644 --- a/exports.js +++ b/exports.js @@ -296,6 +296,7 @@ module.exports = { 'iamDbAuthenticationEnabled' : require(__dirname + '/plugins/aws/rds/iamDbAuthenticationEnabled.js'), 'iamSupportPolicy' : require(__dirname...
2
2
0
[{"id": "G0", "claim": "The plugin title should read 'IAM Role Policy Unused Services' instead of 'Check All Used Services'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The plugin description should read 'Ensure that IAM role policies are scope...
null
aquasecurity__cloudsploit__1253
aquasecurity/cloudsploit
1,253
defect
c1b90d74db1f15755503efdcb00b2ce98012b886
5f385e8f7780544afe1df17d5f38839839a513f9
SAAS-5432: Added enableATP plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-5432
diff --git a/collectors/azure/collector.js b/collectors/azure/collector.js index a559f259b1..1fdfe9278c 100644 --- a/collectors/azure/collector.js +++ b/collectors/azure/collector.js @@ -261,6 +261,13 @@ var postcalls = { url: 'https://management.azure.com/{id}/securityAlertPolicies?api-version=2017-03-01-...
2
2
0
[{"id": "G0", "claim": "The plugin's description should read 'Ensures that Advanced Threat Protection is enabled on SQL Servers.' (wording and final period).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The message for servers with no ATP settin...
null
aquasecurity__cloudsploit__1291
aquasecurity/cloudsploit
1,291
defect
77621542f656ea92401a2dbcb153c5e4a8334d31
3a43f5d8adb1ad02792cfe254175ca96c1a45af9
SAAS-5545: Added diagnosticsSettingsEnabled plugin and spec
## Task - https://scalock.atlassian.net/browse/SAAS-5545
diff --git a/exports.js b/exports.js index b24a16826f..42ee000164 100644 --- a/exports.js +++ b/exports.js @@ -787,6 +787,8 @@ module.exports = { 'enableDefenderForContainers' : require(__dirname + '/plugins/azure/defender/enableDefenderForContainers.js'), 'enableDefenderForSqlServers' : require(_...
2
2
1
[{"id": "G0", "claim": "The plugin's more_info text should be expanded to explain that Diagnostic settings should be configured for all appropriate resources in order to log interactions within cloud resources and gain insight into the operations performed within the resource.", "category": "documentation", "verdict": ...
null
aquasecurity__cloudsploit__1529
aquasecurity/cloudsploit
1,529
defect
b6f7814d8384af3aa695071d6133269839bff2f2
d0e6bfc85fad4f9aff5cf5da599d859bde3da33a
AWS Plugins for New CIS-Benchmarks
In this change we have added/modified AWS plugins as per CIS 1.5.0 benchamrks. We have added plugins for - S3-BucketMFADelete Enabled and - EC2- NetworkACL Inboud Egress Rules. - We have expanded the audits for CloudWatch/MonitoringMetrics to include the Organizations Changes filter also.
diff --git a/exports.js b/exports.js index 92f1ba7b2b..c2f19aee09 100644 --- a/exports.js +++ b/exports.js @@ -9,9 +9,9 @@ module.exports = { 'acmCertificateExpiry' : require(__dirname + '/plugins/aws/acm/acmCertificateExpiry.js'), 'acmSingleDomainNameCertificate': require(__dirname + '/plugi...
2
2
0
[{"id": "G0", "claim": "The disAllowedPorRange helper should be rewritten to iterate an allowed-ports array (and fix its misspelled name) instead of repeating an if-else branch per port.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The plugin ...
null
aquasecurity__cloudsploit__1740
aquasecurity/cloudsploit
1,740
defect
e107f7219814833a754a4d532370a1c22d6a9698
a6cf4373098d83f4ed2386dd732aa017ececbc95
SAAS-20313/Front-Door-Request-Body-Inspection
Please merge this pr first since it has the api call added in api.js and location.js https://github.com/aquasecurity/cloudsploit/pull/1737
diff --git a/exports.js b/exports.js index 53c1523d03..a599fab287 100644 --- a/exports.js +++ b/exports.js @@ -989,7 +989,9 @@ module.exports = { 'eventHubMinimumTLSversion' : require(__dirname + '/plugins/azure/eventhub/eventHubMinimumTLSversion.js'), 'accessLogsEnabled' : require(_...
8
8
1
[{"id": "G0", "claim": "The plugin description should drop 'premium' and read 'Ensures that request body inspection is enabled for Azure Front Door WAF policy.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The more_info text should drop 'premium...
null
aquasecurity__cloudsploit__2187
aquasecurity/cloudsploit
2,187
defect
4b5bbd809f1ea2e91b87944920794d2bddf770ed
7ff66decfc36ef0931ae7638a71232ae21611659
Azure blob cmk
Azure security plugin that validates CMK encryption on blob containers. It checks both container-level encryption (via Key Vault encryption scopes) and account-level CMK configuration, flagging containers without CMK as a high-severity issue.
diff --git a/plugins/azure/blobservice/blobContainersCmkEncrypted.js b/plugins/azure/blobservice/blobContainersCmkEncrypted.js index cb6bb746cb..a4c3e0ef5f 100644 --- a/plugins/azure/blobservice/blobContainersCmkEncrypted.js +++ b/plugins/azure/blobservice/blobContainersCmkEncrypted.js @@ -48,6 +48,11 @@ module.exports...
2
2
0
[{"id": "G0", "claim": "The passing-result messages introduced by the PR should keep the previous wording 'Blob container has CMK encryption enabled' instead of the new container-level and account-level variants.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
aquasecurity__go-dep-parser__101
aquasecurity/go-dep-parser
101
defect
d316f5cc2cff93431f2ff8986ffbaf9a321da512
66806cdbea8b5afaa484c84f0cc769ecd8b29154
feat(npm): calculate indirect libraries
Update the Indirect field if it's not in the Package dependencies from lock.file
diff --git a/pkg/nodejs/npm/parse.go b/pkg/nodejs/npm/parse.go index 46ae1587..ae242424 100644 --- a/pkg/nodejs/npm/parse.go +++ b/pkg/nodejs/npm/parse.go @@ -17,6 +17,7 @@ import ( type LockFile struct { Dependencies map[string]Dependency + Packages map[string]Dependency } type Dependency struct { Version...
1
1
0
[{"id": "G0", "claim": "Set the Indirect metadata when each Library is constructed in parse(), since Library already has the Indirect field, instead of appending it afterwards.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__105
aquasecurity/go-dep-parser
105
defect
530f33ca32a97b15a3d7055228dd553c6b2e81d8
6e46cbcfbb90ee309cae462b8a18a55c9c374ae3
fix(pom): added check for looping for variable evaluation
## Description added check for looping for variable evaluation ## Related issues - https://github.com/aquasecurity/trivy/issues/2202
diff --git a/pkg/java/pom/artifact.go b/pkg/java/pom/artifact.go index 14cfaa5a..7276c627 100644 --- a/pkg/java/pom/artifact.go +++ b/pkg/java/pom/artifact.go @@ -5,6 +5,9 @@ import ( "os" "regexp" "strings" + + "github.com/aquasecurity/go-dep-parser/pkg/log" + "golang.org/x/exp/slices" ) var ( @@ -21,9 +24,9...
1
1
0
[{"id": "G0", "claim": "The looped-properties message should be logged at warning level with clearer wording instead of a debug-level message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__111
aquasecurity/go-dep-parser
111
defect
179d0b167e5ff6a8c1f17232b4fd64e179fafb90
dde47e66bd1f34b621fc76c62e3463283266d9bf
Add Package external references infrastructure (node and go implementation)
Added external reference links to library metadata, for example: website, issues tracker, vcs, license, etc. This addition helps to enrich trivy SBOM . Some refactoring: Extract uniqueLibraries functionality to utils - hash the full entity and reuse it in the relevant parsers.
diff --git a/go.mod b/go.mod index 660399b8..05b1dbcc 100644 --- a/go.mod +++ b/go.mod @@ -19,6 +19,7 @@ require ( github.com/hashicorp/errwrap v1.0.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/thoas/go-funk v0.9.2 go.uber.org/a...
9
8
0
[{"id": "G0", "claim": "The gopkg.in-to-github.com conversion rule should be backed by a defined, authoritative source (the reviewer questioned the unofficial labix.org link offered as justification).", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
aquasecurity__go-dep-parser__115
aquasecurity/go-dep-parser
115
defect
179d0b167e5ff6a8c1f17232b4fd64e179fafb90
d4eda9277255311c567bdadc167cbd0a30d3e275
fix(gemspec): split licenses by ', '
## Description There are licenses like `"Apache 2.0".freeze`. We incorrectly split this license as `Apache` and `2.0.freeze`. Changed separator to `,`.
diff --git a/pkg/ruby/gemspec/parse.go b/pkg/ruby/gemspec/parse.go index 1d472509..8d5d168a 100644 --- a/pkg/ruby/gemspec/parse.go +++ b/pkg/ruby/gemspec/parse.go @@ -5,7 +5,6 @@ import ( "fmt" "regexp" "strings" - "unicode" "golang.org/x/xerrors" @@ -39,7 +38,7 @@ var ( // Capture the value of "licenses"...
2
2
1
[{"id": "G0", "claim": "Splitting the licenses string only on \", \" no longer splits gemspec licenses separated by a comma without a space (e.g. \"GPL,Apache\"), as the previous comma-or-whitespace split did.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
aquasecurity__go-dep-parser__116
aquasecurity/go-dep-parser
116
defect
a12ecf227cddf3e130229f2e06f3cab14bef557c
6b54f722d0a691faccc615b61b78fd6e233f907d
fix(pom): change parent priority
## Description When there is parent of based `pom.xml` and parent of child dependency, Maven takes the depmanager from the parent of the base `pom.xml`. Diagram to clarify: ![dia1](https://user-images.githubusercontent.com/91113035/185381526-5e6ab10c-f837-4f05-952c-6a1ded367650.jpeg) ## Related issues: - a...
diff --git a/pkg/java/pom/artifact.go b/pkg/java/pom/artifact.go index 9fdfffc3..d2079aee 100644 --- a/pkg/java/pom/artifact.go +++ b/pkg/java/pom/artifact.go @@ -15,11 +15,12 @@ var ( ) type artifact struct { - GroupID string - ArtifactID string - Version version - Module bool - Exclusions map[string]str...
4
3
0
[{"id": "G0", "claim": "The change of parseDependencies to take a whole *pom instead of a []pomDependency is extra, unexplained churn and should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The root-DependencyManagement override l...
null
aquasecurity__go-dep-parser__127
aquasecurity/go-dep-parser
127
defect
29e1e04fb7ae9db7c4827ab396ae6ee4fae23208
ea25d79725734893d7f4f93c01ec50220daf6f9d
feat(gradle): add *gradle.lockfile parser
## Description Add [*gradle.lockfile](https://docs.gradle.org/current/userguide/dependency_locking.html#lock_state_location_and_format) parser. ## Related issue: - aquasecurity/trivy/issues/2707
diff --git a/pkg/gradle/lockfile/parse.go b/pkg/gradle/lockfile/parse.go new file mode 100644 index 00000000..32b676bf --- /dev/null +++ b/pkg/gradle/lockfile/parse.go @@ -0,0 +1,39 @@ +package lockfile + +import ( + "bufio" + "strings" + + dio "github.com/aquasecurity/go-dep-parser/pkg/io" + "github.com/aquasecurity/g...
3
2
0
[{"id": "G0", "claim": "Use strings.TrimSpace on each scanned line so that indented comment lines (e.g. \" # comment2\") are skipped too.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The len(dep) != 3 check may not be enough for users with stran...
null
aquasecurity__go-dep-parser__129
aquasecurity/go-dep-parser
129
defect
29e1e04fb7ae9db7c4827ab396ae6ee4fae23208
43913b42b7576a8c875dd57628f4eafc57b531c9
fix(rust): add skipped package IDs
There was skipped package IDs, so `trivy` can't match dependencies
diff --git a/pkg/rust/binary/parse.go b/pkg/rust/binary/parse.go index 4472732f..2aacb364 100644 --- a/pkg/rust/binary/parse.go +++ b/pkg/rust/binary/parse.go @@ -46,7 +46,9 @@ func (p *Parser) Parse(r dio.ReadSeekerAt) ([]types.Library, []types.Dependency, var deps []types.Dependency for _, pkg := range info.Packa...
1
1
1
[{"id": "G0", "claim": "The tests are failing with the pull request's changes.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__159
aquasecurity/go-dep-parser
159
defect
299772f066c4ae1589256a52756378208bfc3d4e
b4aa3d0aeaba9085595c32c48fdd3ae1d5ca3584
feat(dart): add support pubspec.lock files
## Description add support `pubspec.lock` files for `Dart`
diff --git a/pkg/dart/lock/parse.go b/pkg/dart/lock/parse.go new file mode 100644 index 00000000..e25ef4dc --- /dev/null +++ b/pkg/dart/lock/parse.go @@ -0,0 +1,82 @@ +package lock + +import ( + "fmt" + dio "github.com/aquasecurity/go-dep-parser/pkg/io" + "github.com/aquasecurity/go-dep-parser/pkg/types" + "golang.org/...
5
4
1
[{"id": "G0", "claim": "The decode-failure error should wrap the underlying error with %w instead of flattening it with %s/err.Error().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parseDep function is leftover code copied from the CocoaPo...
null
aquasecurity__go-dep-parser__160
aquasecurity/go-dep-parser
160
defect
87917eb2d668fcfd0815c7e8f850cfcaf144cdc1
92380ad724eeeeac51a5212bace5e403ac609955
fix(yarn): yarn parser error handling
Found an issue when failed to parse a dependency block: [This](https://github.com/aquasecurity/go-dep-parser/blob/87917eb2d668fcfd0815c7e8f850cfcaf144cdc1/pkg/nodejs/yarn/parse.go#L214) line causes the scanner to return a result altho it should've thrown an error.
diff --git a/pkg/nodejs/yarn/parse.go b/pkg/nodejs/yarn/parse.go index 266ac980..b4046be4 100644 --- a/pkg/nodejs/yarn/parse.go +++ b/pkg/nodejs/yarn/parse.go @@ -105,7 +105,7 @@ func getDependency(target string) (name, version string, err error) { return capture[1], capture[2], nil } -func validProtocol(protocol ...
3
3
3
[{"id": "G0", "claim": "At the unparseable-package-patterns branch the code sets err but only continues, so it neither shows a warning nor reliably fails; the reviewer asks to either log a warning there or, if failing is intended, return an error.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
aquasecurity__go-dep-parser__185
aquasecurity/go-dep-parser
185
defect
e4068021315b19bd070a34ca199a346280064715
10784154dde3b1af7fbb5db300b0554cead0bfd6
feat(packagejson): parse dependencies/optionalDependencies
## Description We need dependencies from `package.json` files to update dependencies from `yarn.lock` files.
diff --git a/pkg/nodejs/packagejson/parse.go b/pkg/nodejs/packagejson/parse.go index a4c4ad0f..8455559b 100644 --- a/pkg/nodejs/packagejson/parse.go +++ b/pkg/nodejs/packagejson/parse.go @@ -14,6 +14,10 @@ type packageJSON struct { Version string `json:"version"` License interface{} `json:"license"` } + +type...
1
1
1
[{"id": "G0", "claim": "The Parser interface should be changed so that Parse returns the information of the project itself (e.g. Parse(r dio.ReadSeekerAt) (Library, []Library, []Dependency, error)), a change the reviewer says is also needed for Go modules and Pipenv.", "category": "design", "verdict": "supported", "pri...
null
aquasecurity__go-dep-parser__196
aquasecurity/go-dep-parser
196
defect
2c62bb5726f48cbcd759776cbac6d64ca80d43d8
4986c66e0599a6b054e6e7597c9ce9b0fd3d8c60
fix(npm): improvement logic for lockfile v2-v3
## Description 1) npm includes optional dependencies in dependency list, graph and `node_modules` folder. We also need to include them. e.g. graph: ``` 3840@ /home/dmitriy/work/temp/3840 └─┬ cra-append-sw@2.7.0 └─┬ webpack@4.46.0 └─┬ watchpack@1.7.5 ├─┬ chokidar@3.5....
diff --git a/pkg/nodejs/npm/parse.go b/pkg/nodejs/npm/parse.go index 4ad3651a..f7580f02 100644 --- a/pkg/nodejs/npm/parse.go +++ b/pkg/nodejs/npm/parse.go @@ -2,6 +2,7 @@ package npm import ( "fmt" + "github.com/samber/lo" "io" "sort" "strings" @@ -34,13 +35,14 @@ type Dependency struct { } type Package ...
2
2
2
[{"id": "G0", "claim": "The new handling of optional dependencies should be covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "pkgNameFromPath should check the length of paths before indexing paths[len(paths)-2] to avoid a possible out-of...
null
aquasecurity__go-dep-parser__206
aquasecurity/go-dep-parser
206
defect
947ef35e4c242e1442b008532256bd7976635a3d
2b11018b21ff2a4a1639f921eb7535a1fb3d3bf5
fix(yarn): ignore git protocol
## Description Ignore `git` protocol. ## Related Issues - aquasecurity/trivy/issues/4041
diff --git a/pkg/nodejs/yarn/parse.go b/pkg/nodejs/yarn/parse.go index 803fc37a..ac330de4 100644 --- a/pkg/nodejs/yarn/parse.go +++ b/pkg/nodejs/yarn/parse.go @@ -15,7 +15,7 @@ import ( ) var ( - yarnPatternRegexp = regexp.MustCompile(`^\s?\\?"?(?P<package>\S+?)@(?:(?P<protocol>\S+?):)?(?P<version>.+?)\\?"?:?$`)...
1
1
1
[{"id": "G0", "claim": "The protocol parsed for a `git+https://` dependency should be `git+https` as documented by npm, not `git`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__209
aquasecurity/go-dep-parser
209
defect
85ebd0d79cd30ec2adcc6c94d6d24f5ddf1a1eeb
5777704aa4d3bee95c421c34a1f2636fffb66c9d
fix(npm): add support of local packages for package-lock.json
## Description For local packages(for example when `workspace` is used) `npm` uses links.(https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json#packages) e.g.: ``` "functions/func": { "version": "1.0.0", ... }, "node_modules/func": { "resolved": "functions/func", ...
diff --git a/pkg/nodejs/npm/parse.go b/pkg/nodejs/npm/parse.go index 6402093a..5e640c1a 100644 --- a/pkg/nodejs/npm/parse.go +++ b/pkg/nodejs/npm/parse.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/samber/lo" "io" + "path/filepath" "sort" "strings" @@ -42,8 +43,9 @@ type Package struct { DevDependencies ...
2
2
1
[{"id": "G0", "claim": "The example in the comment should read `function/func1/node_modules/debug` instead of `function/func1/node_modules_debug`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The link's own location should not be kept on the tar...
null
aquasecurity__go-dep-parser__217
aquasecurity/go-dep-parser
217
defect
ebd88ce46378034314cee64674200e284336e813
b808b2f44193c95000718751ac5bd9092a6185cf
feat(python): add license fields
`License` field is deprecated and replaced by the new `License-Expression` field, and there was added `License-File` field. Read more here [PEP 639 – Improving License Clarity with Better Package ](https://peps.python.org/pep-0639/#deprecate-license-field). also there are legacy packages that use license classifier...
diff --git a/pkg/python/packaging/parse.go b/pkg/python/packaging/parse.go index 09889e29..8d4ad3fa 100644 --- a/pkg/python/packaging/parse.go +++ b/pkg/python/packaging/parse.go @@ -4,6 +4,7 @@ import ( "bufio" "io" "net/textproto" + "strings" "golang.org/x/xerrors" @@ -26,11 +27,26 @@ func (*Parser) Parse...
2
2
1
[{"id": "G0", "claim": "The nested license-fallback conditions (License-Expression, then License, then Classifier) may be worth flattening into an if/else-if/else chain, as given in the attached suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
aquasecurity__go-dep-parser__219
aquasecurity/go-dep-parser
219
defect
ebd88ce46378034314cee64674200e284336e813
8dd9c9c78a18c7829657cc3c61c168981661fa16
feat: implement Julia parser
This PR implements parsing for Julia Manifests. I'm adding this as part of https://github.com/aquasecurity/trivy/pull/4438
diff --git a/pkg/julia/manifest/naive_pkg_parser.go b/pkg/julia/manifest/naive_pkg_parser.go new file mode 100644 index 00000000..b1c24087 --- /dev/null +++ b/pkg/julia/manifest/naive_pkg_parser.go @@ -0,0 +1,68 @@ +package julia + +import ( + "bufio" + "io" + "strings" +) + +type pkgPosition struct { + start int + end...
9
9
1
[{"id": "G0", "claim": "Handle the error returned by r.Seek(0, io.SeekStart) inside the old-format decode branch instead of discarding it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment (or example) explaining why the code assumes a ma...
null
aquasecurity__go-dep-parser__225
aquasecurity/go-dep-parser
225
defect
e764d262811a018775ab9648721e26e5e869fb15
df7207f32484fbc0d1039557a0a47be951cd9d39
feat(java): capture licenses from pom.xml
## Description At the moment, the licenses specified in pom.xml , do not parse ## Related Issues - https://github.com/aquasecurity/trivy/issues/3812
diff --git a/.gitignore b/.gitignore index 854602ef..5705dbab 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ .idea /vendor + +**/.DS_Store diff --git a/pkg/java/pom/artifact.go b/pkg/java/pom/artifact.go index 41338143..11ee2522 100644 --- a/pkg/java/pom/artifact.go +++ b/pkg/java/pom/artifact.go @@ -18...
1
1
0
[{"id": "G0", "claim": "Change one of the expected licenses in TestPom_Parse to a value other than Apache 2.0 so the test can detect licenses being identified or updated incorrectly when all values are the same by mistake.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__231
aquasecurity/go-dep-parser
231
defect
145d1fe1fdaecea8a401d0c65ad9291ebc380f3c
1ccf7f4e50cc5efbf6ee131ad7caf85abf0bd80b
fix(nodejs): parse package.json without name or version
Since the name and version are [optional](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#name), we should consider package.json valid without these fields. See https://github.com/aquasecurity/trivy/issues/4629
diff --git a/pkg/nodejs/packagejson/parse.go b/pkg/nodejs/packagejson/parse.go index 0b284b7a..c024a06d 100644 --- a/pkg/nodejs/packagejson/parse.go +++ b/pkg/nodejs/packagejson/parse.go @@ -2,10 +2,12 @@ package packagejson import ( "encoding/json" - "github.com/aquasecurity/go-dep-parser/pkg/utils" + "fmt" "io...
4
4
1
[{"id": "G0", "claim": "The explanatory comment about optional name/version fields that the pull request removes should be kept, moved to another line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hasContent should test the Dependencies and Opti...
null
aquasecurity__go-dep-parser__244
aquasecurity/go-dep-parser
244
defect
69e49e750d15ebb22b6eea27ba17fdb7a358bc2a
ca96da88ad7bc414138750b3b34955e83221480b
fix(npm): add init of root deps
## Description There is case when root `Dependencies` field (packages[""].Dependencies) is `nil`. We need initialize this map to insert direct dependencies from links. ## Related Issues - https://github.com/aquasecurity/trivy/issues/4923
diff --git a/pkg/nodejs/npm/parse.go b/pkg/nodejs/npm/parse.go index 827a4a40..8fc117f5 100644 --- a/pkg/nodejs/npm/parse.go +++ b/pkg/nodejs/npm/parse.go @@ -178,6 +178,13 @@ func resolveLinks(packages map[string]Package) { return } + // Init root Dependencies map + if packages[""].Dependencies == nil { + root...
1
1
0
[{"id": "G0", "claim": "The added block that initialises the root Dependencies map by copying packages[\"\"] into a local and writing it back can be simplified — knqyf263 first asked whether a direct one-liner would work, and, once told map values are not addressable, proposed defining a rootPkg variable, updating it, ...
null
aquasecurity__go-dep-parser__251
aquasecurity/go-dep-parser
251
defect
40c1f85cc942e85b518582ad74f91a08f4b98108
898954f9d94a66e1f6c26b062c2a8ebcf69a0d9f
fix(java): add licenses to artifact
Add licenses extracted from the pom to the artifact See https://github.com/aquasecurity/trivy/issues/5028
diff --git a/pkg/java/pom/artifact.go b/pkg/java/pom/artifact.go index fcf5b429..2c4616f2 100644 --- a/pkg/java/pom/artifact.go +++ b/pkg/java/pom/artifact.go @@ -45,7 +45,7 @@ func (a artifact) Equal(o artifact) bool { } func (a artifact) JoinLicenses() string { - return strings.Join(a.Licenses, ", ") + return str...
2
2
1
[{"id": "G0", "claim": "Licenses should be set directly when building uniqArtifacts (Licenses: result.artifact.Licenses) rather than appended inside the resolve loop earlier in parseRoot.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A license should be...
null
aquasecurity__go-dep-parser__267
aquasecurity/go-dep-parser
267
defect
6f348921ea39b74251940077b07d337bb468f3c8
7d2c865da8912f9f3ea475cc94da61c819dcae0d
fix(pom): compare ArtifactIDs for base and parent pom's when `relativePath` field is used
## Description We need to compare `ArtifactID`s for base and parent pom's when `relativePath == ../pom.xml` is used. it is needed to avoid cases when we get incorrect parent or get infinity loop (if `../pom.xml` is scanned pom.xml). We can inherit `GroupID`. Also `Version` can contains property. So we need to com...
diff --git a/pkg/java/pom/parse.go b/pkg/java/pom/parse.go index e2de5094..7cce3544 100644 --- a/pkg/java/pom/parse.go +++ b/pkg/java/pom/parse.go @@ -510,6 +510,13 @@ func (p *parser) tryRelativePath(parentArtifact artifact, currentPath, relativeP return nil, err } + // We can inherit GroupID from parent (requi...
1
1
0
[{"id": "G0", "claim": "The comment explaining the ArtifactID check is confusingly worded and should be rephrased to say that the artifact id declared in the base pom's parent tag and the artifact id of the pom at relativePath must match.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
aquasecurity__go-dep-parser__282
aquasecurity/go-dep-parser
282
defect
245251acdcb8cbef92773c2675021d629a371bc8
bf1b2d1cb5f5ad139c03d378674969ecd410d335
fix(pom): don't remove excluded deps from upper pom's
## Description Fixed cases where we were removing excluded deps from upper pom's. Example - https://github.com/aquasecurity/trivy/issues/5827 Test to better understand the fix - https://github.com/aquasecurity/go-dep-parser/blob/bf1b2d1cb5f5ad139c03d378674969ecd410d335/pkg/java/pom/parse_test.go#L689-L725
diff --git a/pkg/java/pom/parse_test.go b/pkg/java/pom/parse_test.go index 398e9ade..d5fc00d5 100644 --- a/pkg/java/pom/parse_test.go +++ b/pkg/java/pom/parse_test.go @@ -641,6 +641,51 @@ func TestPom_Parse(t *testing.T) { }, }, }, + { + name: "exclusions in child", + inputFile: filepath.Join("tes...
1
1
0
[{"id": "G0", "claim": "The new-map-plus-maps.Copy in ToArtifact could be replaced with maps.Clone(ex).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__285
aquasecurity/go-dep-parser
285
defect
7be7d210a3d4ebff0b338eacc46da0660ced52d5
6498684f82d379351b4a10e92e8029421a8d2d7f
fix(pom): recursive check all nested depManagements with `import` scope
## Description This PR corrects 2 related problems: - we need to check all nested depManagements using `import` (recursively running `resolveDepManagement`). - exclude shadow overwriting of props when some iterations of nested depManagements use the same props (e.g., ${project.version}). See updated [import depe...
diff --git a/pkg/java/pom/parse.go b/pkg/java/pom/parse.go index 7d04efb2..e303e396 100644 --- a/pkg/java/pom/parse.go +++ b/pkg/java/pom/parse.go @@ -407,9 +407,14 @@ func (p *parser) resolveDepManagement(props map[string]string, depManagement []p if err != nil { continue } + + // We need to recursively che...
1
1
0
[{"id": "G0", "claim": "The new test's three-level nest of imported depManagements seems unnecessary and a two-level nest may be enough; the author should explain what the test case is meant to test.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
aquasecurity__go-dep-parser__287
aquasecurity/go-dep-parser
287
defect
c95688d311ba60dfada97294d7461f07b9602521
44cf6a9dc00d3cff94b850595fa34de6656b1247
feat(pom): add support of line numbers for deps from base pom.xml
## Description Add support of line numbers for deps from base pom.xml. This PR doesn't add line numbers for: - dependencies from parents - dependencies for modules ## Related issues - aquasecurity/trivy/issues/5945
diff --git a/pkg/java/pom/artifact.go b/pkg/java/pom/artifact.go index 4317959d..78de17ae 100644 --- a/pkg/java/pom/artifact.go +++ b/pkg/java/pom/artifact.go @@ -26,6 +26,9 @@ type artifact struct { Module bool Root bool Direct bool + + StartLine int + EndLine int } func newArtifact(groupID, artifactID, ...
4
2
1
[{"id": "G0", "claim": "The old parent-before-child merge order in mergeDependencies was a mistake; dependencies should be merged child-first so child entries are preferred, as the updated test shows.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": ...
null
aquasecurity__kube-bench__1045
aquasecurity/kube-bench
1,045
defect
f8e0171c09e8ae2e263238e5e7b9db47f5f2b164
bcfb2d185280218086d7ec1e827dc55dc326b578
Support CIS Amazon Elastic Kubernetes Service (EKS) Benchmark v1.0.1
CIS Amazon Elastic Kubernetes Service (EKS) Benchmark v1.0.1: https://workbench.cisecurity.org/benchmarks/6041
diff --git a/cfg/eks-1.0/controlplane.yaml b/cfg/eks-1.0/controlplane.yaml index f3c971d12..96ec0f491 100644 --- a/cfg/eks-1.0/controlplane.yaml +++ b/cfg/eks-1.0/controlplane.yaml @@ -9,6 +9,6 @@ groups: text: "Logging" checks: - id: 2.1.1 - text: "Enable audit logs" + text: "Enable audi...
2
1
1
[{"id": "G0", "claim": "Since the PR updates the EKS benchmark to CIS EKS 1.0.1 it should rename the cfg/eks-1.0 directory to eks-1.0.1, update the cfg/config.yaml version mapping to match, and change the auto-detection code to return eks-1.0.1.", "category": "design", "verdict": "supported", "priority": "P1", "scope":...
null
aquasecurity__kube-bench__1367
aquasecurity/kube-bench
1,367
defect
e1d10533589f5838acdb28319175bcda431429e3
1643b5bf67ca30efb9369c264f09b0d894e29a5d
bugfix: false negative when audit_config is defined along with audit …
…and config file not found Suppress the file not found error only when we have audit or auditEnv is defined and they have valid output captured. As, we already have output from audit command. So we can proceed for our tests even though we didnt find config file. file not found error: `failed to run: "/test/config....
diff --git a/check/check.go b/check/check.go index 06fac05487..4d082d61f0 100644 --- a/check/check.go +++ b/check/check.go @@ -208,6 +208,13 @@ func (c *Check) runAuditCommands() (lastCommand string, err error) { } c.AuditConfigOutput, err = runAudit(c.AuditConfig) + if err != nil && strings.Contains(c.AuditConfi...
1
1
1
[{"id": "G0", "claim": "The new test case \"Scored checks that pass should PASS when config file is not present\" failed and the author should fix this test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
aquasecurity__kube-bench__1874
aquasecurity/kube-bench
1,874
defect
6ecc6a20663e7ec2dde52419410ad07db5ad21fa
754c462d54c80c4c0bbc343582f38e63257619c3
Add AKS-1.7 version
Adding AKS 1.7.0 benchmark [CIS Azure Kubernetes Service (AKS) Benchmark v1.7.0 PDF.pdf](https://github.com/user-attachments/files/20455539/CIS.Azure.Kubernetes.Service.AKS.Benchmark.v1.7.0.PDF.pdf)
diff --git a/cfg/aks-1.7/config.yaml b/cfg/aks-1.7/config.yaml new file mode 100644 index 000000000..b7839455a --- /dev/null +++ b/cfg/aks-1.7/config.yaml @@ -0,0 +1,2 @@ +--- +## Version-specific settings that override the values in cfg/config.yaml diff --git a/cfg/aks-1.7/controlplane.yaml b/cfg/aks-1.7/controlplane....
6
6
6
[{"id": "G0", "claim": "A benchmark version mapping for the aks platform is missing in getPlatformBenchmarkVersion, so AKS clusters (e.g., aks-1.7) fall back to the default CIS profile; add a case for \"aks\" similar to how it is handled for eks and gke.", "category": "correctness", "verdict": "supported", "priority": ...
null