You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how to add custom header if we use AWS API Gateway X-API-Key validation #169
We are using Splunk Java SDK for test suite integration that will do search in Splunk and based on search results will decide whether test case pass/fail for Application continues integration and deployment pipeline. We have introduced AWS API Gateway with X-API-Key validation for security requirement. Can you please let us know how to add custom header X-API-Key to each Splunk Java SDK calls.
@dhavamanisettiyannan-nbcuni Thank you for the question. Today, the Splunk Java SDK does not support passing custom headers. There is a static map of headers inside the SDK but it is not open to customize.
We will need to prioritize this as a feature enhancement. Is there a time by which you need this?
We are open to contributions and can get to this sooner if you'd like to submit a PR.
dhavamanisettiyannan-nbcuni commented on Aug 31, 2021
@ncanumalla-splunk can I take this up? new to this repository. I think a setter method needs to be implemented which accepts a map and merges with the defaultHeaders. I do have a doubt though while accepting a new map of headers, how to handle the case when we get duplicate keys - Ignore or Merge values? Also, I guess a check needs to be in place to check for User-Agent, Accept keys?
Let me know if I can work on this and if my understanding is correct. Thanks!
@BalasubramanyamEvani We definitely welcome contributions. Your approach seems to be in the right direction. Yes, you will need to account for the default keys and avoid overriding values. Please try implementing this as part of the ServiceArgs class. Please submit a PR to this repo and our team can review.
@BalasubramanyamEvani,
Could you please re-share the timeline for this issue resolution?
As we are planning to release this change in this week.
Please let us know, if you have further queries.
Activity
ncanumalla-splunk commentedon Aug 31, 2021
@dhavamanisettiyannan-nbcuni Thank you for the question. Today, the Splunk Java SDK does not support passing custom headers. There is a static map of headers inside the SDK but it is not open to customize.
We will need to prioritize this as a feature enhancement. Is there a time by which you need this?
We are open to contributions and can get to this sooner if you'd like to submit a PR.
dhavamanisettiyannan-nbcuni commentedon Aug 31, 2021
@ncanumalla-splunk Thank you for the update, Can you please prioritize and implement this feature at least by end of November 2021.
ncanumalla-splunk commentedon Sep 8, 2021
Thank you for the information to help prioritize. Will plan accordingly.
BalasubramanyamEvani commentedon Sep 22, 2021
@ncanumalla-splunk can I take this up? new to this repository. I think a setter method needs to be implemented which accepts a map and merges with the defaultHeaders. I do have a doubt though while accepting a new map of headers, how to handle the case when we get duplicate keys - Ignore or Merge values? Also, I guess a check needs to be in place to check for User-Agent, Accept keys?
Let me know if I can work on this and if my understanding is correct. Thanks!
ncanumalla-splunk commentedon Sep 22, 2021
@BalasubramanyamEvani We definitely welcome contributions. Your approach seems to be in the right direction. Yes, you will need to account for the default keys and avoid overriding values. Please try implementing this as part of the ServiceArgs class. Please submit a PR to this repo and our team can review.
BalasubramanyamEvani commentedon Sep 22, 2021
@ncanumalla-splunk Thanks ! will work on it
bparmar-splunk commentedon Nov 8, 2021
@BalasubramanyamEvani,
Will you please share current state of issue resolution? We would like to know if you are planning a PR for the same.
BalasubramanyamEvani commentedon Nov 10, 2021
Yes i am planning to submit a PR by this week. I've been busy with Job search, sorry for the delay.
bparmar-splunk commentedon Nov 10, 2021
@BalasubramanyamEvani,
Thank you for the update.
Please let us know when you create PR.
bparmar-splunk commentedon Nov 16, 2021
@BalasubramanyamEvani,
Could you please re-share the timeline for this issue resolution?
As we are planning to release this change in this week.
Please let us know, if you have further queries.
BalasubramanyamEvani commentedon Nov 17, 2021
Hello @bparmar-splunk sorry for the delay. I have created PR #176. Please check
fantavlik commentedon Nov 18, 2021
Merged in #176