Skip to content

fix: basic-auths dump with skip-defaults#1889

Merged
Prashansa-K merged 2 commits intomainfrom
fix/basic-auth-skip-defs
Feb 12, 2026
Merged

fix: basic-auths dump with skip-defaults#1889
Prashansa-K merged 2 commits intomainfrom
fix/basic-auth-skip-defs

Conversation

@Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Feb 12, 2026

When --skip-defaults was set and upstream had basic-auth credentials,
dump was failing with error:
Error: getting Kong state: reading configuration from Kong: error removing defaults from basic auths: error fetching schema for entity basicauth_credential of type basicauth_credential: HTTP status 404 (message: "No entity named 'basicauth_credential'")

This is because the credential entity name was wrong in GDR.
This is corrected in this PR: Kong/go-database-reconciler#374

Tests are added for kong gateway and konnect versions for all supported credential types.

For #1839
FTI: https://konghq.atlassian.net/browse/FTI-7180

@Prashansa-K Prashansa-K force-pushed the fix/basic-auth-skip-defs branch from 10985f5 to 3819f38 Compare February 12, 2026 09:09
@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.79%. Comparing base (7f83509) to head (bab9865).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1889      +/-   ##
==========================================
+ Coverage   32.74%   32.79%   +0.04%     
==========================================
  Files          73       73              
  Lines        6566     6566              
==========================================
+ Hits         2150     2153       +3     
+ Misses       4252     4250       -2     
+ Partials      164      163       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@harshadixit12
Copy link
Contributor

LGTM - will approve after gdr bump.

@Prashansa-K
Copy link
Contributor Author

Bumped to gdr to latest version. @harshadixit12

@Prashansa-K Prashansa-K enabled auto-merge (squash) February 12, 2026 10:31
@Prashansa-K Prashansa-K merged commit 7a17e18 into main Feb 12, 2026
39 checks passed
@Prashansa-K Prashansa-K deleted the fix/basic-auth-skip-defs branch February 12, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants