Feat/support json and multi file sync#2158
Merged
harshadixit12 merged 3 commits intoJul 21, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/deck-ai-sync-diff-dump #2158 +/- ##
===============================================================
+ Coverage 35.41% 35.94% +0.52%
===============================================================
Files 82 82
Lines 7787 7828 +41
===============================================================
+ Hits 2758 2814 +56
+ Misses 4777 4749 -28
- Partials 252 265 +13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
harshadixit12
marked this pull request as ready for review
July 17, 2026 08:23
harshadixit12
force-pushed
the
feat/support-json-and-multi-file-sync
branch
from
July 21, 2026 09:05
9b49e80 to
9a14c50
Compare
| } | ||
|
|
||
| for _, f := range files { | ||
| content, err := os.ReadFile(f) |
There was a problem hiding this comment.
Potential file inclusion attack via reading file - high severity
If an attacker can control the input leading into the ReadFile function, they might be able to read sensitive files and launch further attacks with that information.
Suggested change
| content, err := os.ReadFile(f) | |
| if strings.Contains(f, "..") { | |
| return nil, fmt.Errorf("invalid file path") | |
| } | |
| content, err := os.ReadFile(f) |
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info
Prashansa-K
approved these changes
Jul 21, 2026
harshadixit12
added a commit
that referenced
this pull request
Jul 21, 2026
* feat: support diff and dump * style: lint-fix * fix: error out if syncing to konnect * fix: use positional arg for ai sync * fix: written format version in dump * fix: add go.work and go.work.sum to gitignore * chore: remove go.work and go.work.sum from tracking * tests: add integration tests for sync and dump * ci: add integration test workflow for ai-gateway * fix: rename tag and rebase with file ai2kong * tests: use new rc, add more tests * fix: avoid adding global tags in ai gateway format * fix: address feedback * chore: bump go-kong and go-database-reconciler * fix: optimise checking for ai select tag * fix: remove db propagation delay flag and add more tests for tag matching * Feat/support json and multi file sync (#2158) * feat: support json in ai2kong, ai sync and ai dump * feat: support syncing multiple files * style: refactor based on self review
harshadixit12
added a commit
that referenced
this pull request
Jul 21, 2026
* feat: support diff and dump * style: lint-fix * fix: error out if syncing to konnect * fix: use positional arg for ai sync * fix: written format version in dump * fix: add go.work and go.work.sum to gitignore * chore: remove go.work and go.work.sum from tracking * tests: add integration tests for sync and dump * ci: add integration test workflow for ai-gateway * fix: rename tag and rebase with file ai2kong * tests: use new rc, add more tests * fix: avoid adding global tags in ai gateway format * fix: address feedback * chore: bump go-kong and go-database-reconciler * fix: optimise checking for ai select tag * fix: remove db propagation delay flag and add more tests for tag matching * Feat/support json and multi file sync (#2158) * feat: support json in ai2kong, ai sync and ai dump * feat: support syncing multiple files * style: refactor based on self review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds two features -
--format jsondeck ai syncIn deck ai sync - we are reading the files one by one, converting them and merging the
file.Content