Difficulty: Hard
Type: Bug
Summary
Prevent getConfig() from returning sensitive configuration values such as apiKey by default.
Current Behaviour
GuildPassClient.getConfig() returns a shallow copy of the full merged configuration object. If apiKey is present, callers can accidentally log or expose it.
Expected Behaviour
The public config accessor should either redact sensitive values by default or provide a separate explicit method for internal unsafe access.
Suggested Implementation
Update getConfig() to return a safe configuration object where apiKey is omitted or replaced with [REDACTED]. If maintainers need raw config internally, keep it private or expose an intentionally named method such as getUnsafeConfigForDebugging.
Files or Areas Likely Affected
src/client/GuildPassClient.ts
src/config/sdkConfig.ts
src/types/
tests/client.test.ts
docs/sdk-guide.md
Acceptance Criteria
Additional Notes
This is a defensive security improvement for users who log SDK configuration during debugging.
Difficulty: Hard
Type: Bug
Summary
Prevent
getConfig()from returning sensitive configuration values such asapiKeyby default.Current Behaviour
GuildPassClient.getConfig()returns a shallow copy of the full merged configuration object. IfapiKeyis present, callers can accidentally log or expose it.Expected Behaviour
The public config accessor should either redact sensitive values by default or provide a separate explicit method for internal unsafe access.
Suggested Implementation
Update
getConfig()to return a safe configuration object whereapiKeyis omitted or replaced with[REDACTED]. If maintainers need raw config internally, keep it private or expose an intentionally named method such asgetUnsafeConfigForDebugging.Files or Areas Likely Affected
src/client/GuildPassClient.tssrc/config/sdkConfig.tssrc/types/tests/client.test.tsdocs/sdk-guide.mdAcceptance Criteria
getConfig()does not return the raw API keyapiKeyis redacted or omittedAdditional Notes
This is a defensive security improvement for users who log SDK configuration during debugging.