-
Notifications
You must be signed in to change notification settings - Fork 0
[feature] SC-166737/improve app proxy security by restricting where token replacements can go #82
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
base: main
Are you sure you want to change the base?
Conversation
…oken replacements can go
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR hardens proxy security by extending the manifest to support explicit Entity relationship diagram for updated manifest API request configurationerDiagram
MANIFEST {
string url
string[] methods
int timeout
object settingInjections
}
SETTINGINJECTIONS {
object client_id
object client_secret
}
CLIENT_ID {
string[] body
}
CLIENT_SECRET {
string[] body
}
MANIFEST ||--|{ SETTINGINJECTIONS : contains
SETTINGINJECTIONS ||--|{ CLIENT_ID : contains
SETTINGINJECTIONS ||--|{ CLIENT_SECRET : contains
CLIENT_ID ||--|{ "body[]" : has
CLIENT_SECRET ||--|{ "body[]" : has
Class diagram for updated constants immutabilityclassDiagram
class placeholders {
+ACCESS_TOKEN: string
+CLIENT_ID: string
+CLIENT_SECRET: string
<<immutable>>
}
class DESKPRO_LABEL {
+name: string
+color: string
<<immutable>>
}
class GLOBAL_CLIENT_ID {
+value: string
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Build for commit b85a63f deployed to: https://linear-pr-82.ci.next.deskprodemo.com URLs: |
This pull request introduces improvements to the configuration and type safety for API integrations and constants. The main changes are the addition of setting injections for OAuth requests in the manifest and enforcing immutability for constants.
Manifest configuration enhancements:
settingInjectionsfield to the OAuth API request configuration inmanifest.json, specifying howclient_idandclient_secretshould be injected into the request body.settingInjectionsobject to the GraphQL API request configuration for future extensibility.Type safety improvements:
placeholdersandDESKPRO_LABELobjects as immutable usingas constinsrc/constants.ts, improving type safety and preventing accidental mutation.Summary by Sourcery
Improve proxy configuration and type safety by introducing explicit setting injections in the manifest and enforcing constant immutability.
New Features:
Enhancements:
as constto strengthen type safety