[feature] SC-166737/improve app proxy security by restricting where token replacements can go#82
Open
HappyPaul55 wants to merge 1 commit intomainfrom
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
|
|
Build for commit b85a63f deployed to: https://linear-pr-82.ci.next.deskprodemo.com URLs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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