This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
502 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Naming conventions | ||
<br> | ||
|
||
### PR Title | ||
PR Title should start with the JIRA ticket Id in square brackets, example: [AOB-100] with a human readable title to accompany it. | ||
|
||
<br> | ||
|
||
### Branch Names | ||
Branch names should start with an action followed by a concise name of the action to be performed. | ||
|
||
E.g. | ||
- feature/add-hostname-support | ||
- bug/incorrect-user-handling | ||
- hotfix/no-userid-support | ||
|
||
<br> | ||
|
||
### Commit message | ||
Commit messages should be descriptive and highlight the action performed. They should also start with the type of action performed, such as feat and fix. This leads to better | ||
documentation when creating Github Releases. | ||
|
||
Examples: | ||
- feat: Use distribution bot app to upload tags | ||
- fix: Stop spans from exporting when suppressed | ||
|
||
They should NOT be terse and context-less. | ||
|
||
Such as: | ||
- fixed linting issue. | ||
- format fix. | ||
|
||
<br> | ||
|
||
## Release Process | ||
- Merge all the changes in `develop`. | ||
- Create a new branch from `develop`, update the `version.go` file with the updated version. Raise a PR, get it reviwed and merged to `develop`. | ||
- At this point, we have all the changes in `develop` which we want to tag and create a release for. Create a PR from `develop` to `master`. | ||
- Fast-forward merge the PR into `master` [**Do not merge via the UI**]. This will trigger the `Release Go SDK` action, which will create the tag and Github release for the same. | ||
```shell | ||
# On master branch | ||
git merge --ff develop | ||
``` | ||
- Check the progress in Actions tab, and find the newly created release under Releases tag. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package plugins | ||
|
||
// Key: attribute name | ||
// Value: should truncate or not | ||
var attrNameTruncate = map[string]bool{ | ||
"http.request.body": true, | ||
"http.response.body": true, | ||
} | ||
|
||
var defaultRedactionRules = map[string]string{ | ||
"pmPostmanAPIKey": `PMAK-[a-f0-9]{24}-[a-f0-9]{34}`, | ||
"pmPostmanAccessKey": `PMAT-[0-9a-z]{26}`, | ||
"pmBasicAuth": `Basic [a-zA-Z0-9]{3,1000}(?:[^a-z0-9+({})!@#$%^&|*=]{0,2})`, | ||
"pmBearerToken": `Bearer [a-z0-9A-Z-._~+/]{15,1000}`, | ||
} | ||
|
||
// Key: attribute name | ||
// Value: should redact or not | ||
var attrNameRedact = map[string]bool{ | ||
"http.request.body": true, | ||
"http.request.headers": true, | ||
"http.url": true, | ||
"http.request.query": true, | ||
"http.target": true, | ||
"http.response.body": true, | ||
"http.response.headers": true, | ||
} | ||
|
||
const defaultRedactionReplacementString = "*****" |
Oops, something went wrong.