feat: Enable Transaction Service API key for local development #2829
feat: Enable Transaction Service API key for local development #2829LucieFaire merged 9 commits intomainfrom
Conversation
|
@claude review |
|
Claude finished @LucieFaire's task —— View job PR Review for Auth Header ImplementationTodo List:
Issues to AddressSecurity Concerns
Code Quality Issues
Test Coverage Gaps
Performance/Architecture
Minor Issues
Recommendations
The implementation is solid overall but needs these security and consistency fixes before merging. |
fe8c7fa to
c250bfb
Compare
tmjssz
left a comment
There was a problem hiding this comment.
Have you verified the API key is never logged, including in error scenarios?
hey, thank you for pointing that out. its a very valid concern. I have checked the logging in network service and caching, and headers, request body data and full request objects are NOT logged. Yet the cache key includes all request options including headers (network.module.ts:134): But: So there is no exposure of the auth header |
Signed-off-by: dsh <11198975+LucieFaire@users.noreply.github.com>
Signed-off-by: dsh <11198975+LucieFaire@users.noreply.github.com>
Co-authored-by: Tim <4171783+tmjssz@users.noreply.github.com>
84f1b10 to
103e6dc
Compare
PooyaRaki
left a comment
There was a problem hiding this comment.
I’ve reviewed the PR partially. Since there are major points that still need discussion, I’ll complete the rest of the review once we’ve reached a decision on those open items.
cc3a2a0 to
aa01006
Compare
Signed-off-by: dsh <11198975+LucieFaire@users.noreply.github.com>
aa01006 to
356fd6a
Compare
| let originalNodeEnv: string | undefined; | ||
|
|
||
| beforeEach(() => { | ||
| originalNodeEnv = process.env.NODE_ENV; |
There was a problem hiding this comment.
Nit: We could move it out of beforeEach since the initial value can be set once.
| export class FetchNetworkService implements INetworkService { | ||
| constructor( | ||
| @Inject('FetchClient') | ||
| @Inject(FetchClientToken) |
There was a problem hiding this comment.
Nit: we should name it as FetchClient to be consistent.
There was a problem hiding this comment.
unfortunately, that creates confusion with FetchClient type, so I will keep it as-is
Signed-off-by: dsh <11198975+LucieFaire@users.noreply.github.com>
63de837 to
6f37b07
Compare
Summary
COR-944
This branch adds support and documentation for using a Transaction Service API key during local development.
Changes
defaultHeaders?: Record<string, string>inFetchNetworkServiceto allow override of headersAuthorization: Bearer <apiKey>header when enabled.