jfrog / jfrog/jfrog-cli-security
Support flag --bypass-archive-limits and option to override xray indexer-app configuration via env variable
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13
- Forks
- 50
- Avg merge
- 3d 48m
- Merged PRs (30d)
- 26
Description
Is your feature request related to a problem? Please describe.
Xray code fails to support the platform's configuration standard via environment variables.
The relevant configuration parameter used by the code is
"indexer.compress.MaxEntities" and "indexer.compress.RationLimit".
JCLI should provide an option to override the settings.
Describe the solution you'd like to see
From Xray version 3.59.0 onwards, a new flag --bypass-archive-limits has been introduced which will ignore the default limits
set in the indexer-app and following env variables to override the default setting with the user set values.
Describe alternatives you've considered
Setting env variables indexer.compress.MaxEntities and indexer.compress.RationLimit should work on some platforms.
exp: env indexer.compress.MaxEntities=5 jf docker scan host.docker.internal:8083/docker-local/ubuntu:20.04
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the JFrog CLI Docker scan command and the code that builds its Xray request or configuration. Check how command flags and environment variables are handled, then verify that --bypass-archive-limits and the two indexer.compress settings affect scans as requested; add or run the relevant tests if they exist.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100