Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIGOV-26571 check backend url fields #25

Merged
merged 85 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
de0a125
Initial commit
mbonchevaxway Jan 26, 2021
c5881f5
set up for discovery and traceability
Jan 26, 2021
666d285
remove .idea
Jan 26, 2021
9732d71
ignore folders
Jan 26, 2021
ea2bf5e
build
Jan 27, 2021
8c66e40
update
Jan 27, 2021
4a6995b
update
Jan 27, 2021
37a24f7
update
Jan 27, 2021
a046d5b
add go-kong package to connect to gw
Jan 27, 2021
fd5b0e8
init trace server
Jan 28, 2021
4025839
update
Jan 28, 2021
7f847e3
readme
Jan 29, 2021
dee0bc3
Merge pull request #1 from Axway/setup
tsjohns9 Jan 29, 2021
5a57c59
Changes for discovery, traceability and subscription (#4)
sagarkal Feb 4, 2021
9737184
Look up cached services by kong-service-id attribute (#5)
tsjohns9 Feb 4, 2021
b67829a
Use original Swagger from petstore.swagger.io
mlookaxw Feb 4, 2021
d695d90
Fix routing base path.
mlookaxw Feb 4, 2021
9d86af9
install unsubscribe handler
Feb 4, 2021
e51d511
Add application ID and name
Feb 4, 2021
ebca01e
update (#6)
tsjohns9 Feb 4, 2021
35076a0
Fix Consumer JSON unmarshall
Feb 4, 2021
3cb5fd5
Make kong token config value optional (#7)
tsjohns9 Feb 4, 2021
c388b42
Use uuid generator for txn ID
Feb 4, 2021
da3f862
Update README
Feb 5, 2021
4c705a1
Fix default YAML file for traceability agent.
mlookaxw Feb 5, 2021
831f1e6
Minor update
Feb 5, 2021
306156d
Mask apikey header
Feb 5, 2021
b85a1e0
Fetch plugins at the start of discovery (#8)
tsjohns9 Feb 5, 2021
90dff9a
use route.ID for proxy id. this enables the observer ui to correlate
Feb 5, 2021
d60bff6
transaction event and summary reflect the client<->kong interaction
Feb 5, 2021
30671e7
Merge pull request #9 from Axway/trcblt-fixes
vbuciuc Feb 6, 2021
906daf7
Added png files
dtabuencav Feb 9, 2021
18eb4ae
Update SetEndpoint based on sdk changes (#11)
tsjohns9 Mar 3, 2021
ddfa7f9
AddServiceEndpoint change (#12)
tsjohns9 Apr 22, 2021
4fc47dd
handle error when creating gateway client (#14)
tsjohns9 Oct 7, 2021
4cf775e
APIGOV-23288 - add Apache license
dfeldick Aug 17, 2022
9d94ec0
Merge pull request #15 from Axway/APIGOV-23288
dfeldick Aug 17, 2022
b173b29
Update SDK version, docker compose for kong open source gateway and r…
rathnapandi Aug 4, 2023
eaf7fe2
- apikey marketplace provisioning in progress
rathnapandi Aug 5, 2023
3828ff3
- apikey & basic auth marketplace provisioning in progress
rathnapandi Aug 7, 2023
cd11a0d
- validated access and credential request definition
rathnapandi Aug 9, 2023
b59efaf
- validated apikey subscription.
rathnapandi Aug 9, 2023
3066268
- Support delete credential.
rathnapandi Aug 9, 2023
c2a606e
- remove conflict in apikey attributes.
rathnapandi Aug 10, 2023
a57beb5
- oauth2 support in progress
rathnapandi Sep 6, 2023
045fcc7
validate ACL plugin
dgghinea Oct 30, 2023
59c9f29
cleanup
jcollins-axway Oct 30, 2023
e90d3ad
update deps
jcollins-axway Oct 30, 2023
839ebf7
update make
jcollins-axway Oct 30, 2023
548c2a2
change to remove errors
jcollins-axway Oct 30, 2023
61a3ac7
move application targets for provisioner to new file
jcollins-axway Oct 30, 2023
f1eca6e
application provisioning updates and other cleanup
jcollins-axway Oct 30, 2023
def5570
deprovisioning update
jcollins-axway Oct 31, 2023
90e3c36
add tests for provisioning
jcollins-axway Oct 31, 2023
619dc8e
add test target and fix test errors
jcollins-axway Oct 31, 2023
4061790
use klib string
jcollins-axway Oct 31, 2023
aabd21c
cleanup test
jcollins-axway Oct 31, 2023
fa92e7d
Merge branch 'APIGOV-26570' into APIGOV-26573
jcollins-axway Oct 31, 2023
c62b8d9
change to klib
jcollins-axway Oct 31, 2023
1c4745b
update discovery process
alrosca Nov 1, 2023
4723404
AOIGOV-26571 small fixes
alrosca Nov 1, 2023
f338280
APIGOV-26571 remove unused fields
alrosca Nov 1, 2023
4b1df68
Merge pull request #17 from Axway/APIGOV-26570
dgghinea Nov 1, 2023
74f0f3c
cleanup app provisioning
jcollins-axway Nov 1, 2023
a6885e5
add codeowners
jcollins-axway Nov 1, 2023
3fb8371
update
jcollins-axway Nov 1, 2023
b9bff07
APIGOV-26571 set context for every discovery trigger
alrosca Nov 2, 2023
17e5512
APIGOV-26571 context created in discovery func
alrosca Nov 2, 2023
f831654
APIGOV-26571 use agent sdk log package
alrosca Nov 2, 2023
138e7e3
APIGOV-26571 get spec func
alrosca Nov 2, 2023
b0da786
APIGOV-26571 change import name
alrosca Nov 2, 2023
7b7b959
Merge branch 'APIGOV-26463' into APIGOV-26571
alrosca Nov 2, 2023
b3caf22
review comments and cleanup
jcollins-axway Nov 2, 2023
03a0271
APIGOV-26571 update logger component
alrosca Nov 2, 2023
5006f7d
APIGOV-26571 update kong default config
alrosca Nov 2, 2023
00dd9e2
add ACL and fix code based off tests
jcollins-axway Nov 2, 2023
83e6489
Merge pull request #18 from Axway/APIGOV-26573
jcollins-axway Nov 2, 2023
78f9ca0
APIGOV-26571 add fields to logger
alrosca Nov 3, 2023
8a18e6f
Merge branch 'APIGOV-26463' into APIGOV-26571
alrosca Nov 3, 2023
e884395
APIGOV-26571 fix backend url
alrosca Nov 7, 2023
0235b4a
APIGOV-26571 check backend url fields
alrosca Nov 9, 2023
5240967
APIGOV-26571 check backend url fields
alrosca Nov 9, 2023
71df8ec
Merge branch 'APIGOV-26571' of github.com:Axway/agents-kong into APIG…
alrosca Nov 13, 2023
9dfa59d
delete test
alrosca Nov 13, 2023
123432b
APIGOV-26571 fix PR comm
alrosca Nov 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion pkg/gateway/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,16 @@ func (gc *Client) processSingleKongService(ctx context.Context, service *klib.Se
return err
}

backendURL := *service.Protocol + "://" + *service.Host + *service.Path
// all three fields are needed to form the backend URL used in discovery process
if service.Protocol == nil && service.Host == nil {
err := fmt.Errorf("fields for backend URL are not set")
log.WithError(err).Error("failed to create backend URL")
return err
}
backendURL := *service.Protocol + "://" + *service.Host
if service.Path != nil {
backendURL = backendURL + *service.Path
}

kongServiceSpec, err := gc.kongClient.GetSpecForService(ctx, backendURL)
if err != nil {
Expand Down