-
Notifications
You must be signed in to change notification settings - Fork 1
REL-1212267 EW Documents - Custom JSON Related Configurations #45
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
Open
santhoshjattappa
wants to merge
28
commits into
REL-1238635-cumulative-cum-folder-hierarchy-change
Choose a base branch
from
REL-1212267-EW--Document-JSON-Configuration
base: REL-1238635-cumulative-cum-folder-hierarchy-change
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+683
−0
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
aaec0c7
REL-1212267: Custom JSON Documentation.
santhoshjattappa 5b55eba
REL-1212267: Folder change and link the page in install other configu…
santhoshjattappa cd9a634
REL-1212267: Troubleshooting for Certificates.
santhoshjattappa ac9d2cc
REL-1212267 : Slack configuration details added
santhoshjattappa 05032eb
REL-1212267: Slack information added.
santhoshjattappa 440abb7
REL-1212267: Corrected Slack Example image
santhoshjattappa f631c73
REL-1212267: Seperate Files for Windows Service, Certificates and Al…
santhoshjattappa dfbab21
REL-1212267: Certificates Get certificates added and link is added in…
santhoshjattappa cca4abd
REL-1212267: sql cluster changes pushed.
amithshet 9f8d7dc
REL-1212267: Commit regarding re-structuring of the documents and pla…
amithshet f7e9481
REL-1212267 commit: Updated docs to have same consistency related to …
amithshet 24cbb4e
REL-1212267 commit: push related to consistency in all documents.
amithshet 0d21e61
REL-1212267 commit: fixed typo in slack doc
amithshet 12f6747
REL-1212267 commit: updated correct json.
amithshet b53b57e
REL-1212267 commit: addressed internal feedback of including only one…
amithshet 843ba94
REL-1212267: Addressed PM feedback.
amithshet 74162fc
REL-1212267: addressed internal feedbacks
amithshet 046eebd
REL-1212267: Updated sql bcp path query and screenshot.
amithshet 69ed400
REL-1212267: update after a round of final review
amithshet 1b8558d
REL-1212267: Addressed few more internal feedbacks
amithshet 10e68a3
REL-1212267: feedbacks.
amithshet 3650eb2
REL-1212267: feedbacks addressed.
amithshet 0eca81c
REL-1212267: updated one feedback duering proof read.
amithshet 9af74a1
REL-1212267: updated feedbacks
amithshet 1bdfa7e
REL-1212267: updated
amithshet 84a7248
Incorporating the review comments by PM.
santhoshjattappa 342b71d
Merge branch 'REL-1238635-cumulative-cum-folder-hierarchy-change' int…
santhoshjattappa e8f26f2
REL-1212267: addressed second round feedbacks.
amithshet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
docs/custom-json-configuration/alert_notification_handlers_configuration.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| ## Alert Notification Handlers [Early Access] | ||
|
|
||
| The `alertNotificationHandlers` section configures integrations for sending alerts when monitored resources meet specified conditions. This enables automated notifications to external platforms such as Slack. | ||
|
|
||
| ### Slack Handler | ||
|
|
||
| The Slack handler allows alerts to be sent to a designated Slack channel. Configuration options include: | ||
|
|
||
| | Property | Description | | ||
| |----------------------------|-----------------------------------------------------------------------------| | ||
| | `accessToken` | The Slack API token used for authentication. | | ||
| | `acknowledgeAlertEnabled` | Boolean flag to enable/disable alert acknowledgment in Slack. This is by dafault false since implementation is not done. | | ||
| | `channel` | The Slack channel ID where alerts will be posted. | | ||
| | `enabled` | Boolean flag to enable/disable Slack notifications. | | ||
| | `messageIntervalSeconds` | Interval (in seconds) between alert messages sent to Slack. It should be more than or equal to min slack interval in seconds i.e. 180 | | ||
|
|
||
| --- | ||
|
|
||
| ### Configure Slack in Custom JSON | ||
|
|
||
| #### Prerequisites | ||
|
|
||
| Before configuring Slack notifications: | ||
|
|
||
| - Create a Slack App in your Slack workspace. | ||
| - Generate an OAuth token with the required permissions to post messages to channels. | ||
|
|
||
| #### Configuration | ||
|
|
||
| To configure Slack notification in the custom JSON file, locate the `alertNotificationHandlers` section and update the configuration as below. | ||
|
|
||
| - Provide OAuth Token in `accessToken`. | ||
| - Set `channel` to the Slack channel ID where alerts will be sent. | ||
| - Set `enabled` to `true` to enable Slack notifications. | ||
| - Set `messageIntervalSeconds` to define the interval at which messages are sent to Slack. By default, it is set to 180 seconds from the code base. If, we set it to less than 180 seconds, it will be overridden to 180 seconds. | ||
|
|
||
| ```json | ||
| "alertNotificationHandlers": { | ||
| "slack": { | ||
| "accessToken": "slack-access-token", | ||
| "acknowledgeAlertEnabled": false, | ||
| "channel": "slack-channel-id", | ||
| "enabled": true, | ||
| "messageIntervalSeconds": 60 | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ### Verification in Kibana | ||
|
|
||
| - Navigate to Kibana Discover. | ||
| - Select `logs-*` Data View. | ||
| - Search for "The Environment Watch shared configuration object is not empty" which indicates that the EW Windows Service fetching values from the custom JSON configuration successfully. | ||
|
|
||
|  | ||
|
|
||
| ### Slack Notification Example | ||
|
|
||
|  | ||
|
|
||
106 changes: 106 additions & 0 deletions
106
docs/custom-json-configuration/certificates_configuration.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| # Certificates Configuration | ||
|
|
||
| This section describes how to configure certificate monitoring using the `environmentWatchConfiguration` JSON object. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JSON object is correct, but can we update to JSON configuration file? |
||
|
|
||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
| Monitors the presence and validity of specified certificates in Windows certificate stores. By default, the Relativity Secret Store certificate is monitored without requiring additional configuration. Other certificates can be added based on the installed product or specific requirements. | ||
|
|
||
| **Default Certificates** | ||
| | Certificate Name | Description | | ||
| |-----------------------------------|--------------------------------------------------| | ||
| | Relativity Secret Store | Certificate for Relativity Secret Store. | | ||
|
|
||
| **Properties In Custom JSON Related to Certificates** | ||
|
|
||
| | Property | Type | Description | | ||
| |----------------|----------|------------------------------------------------------------------| | ||
| | `enabled` | boolean | Enables or disables monitoring for certificates. | | ||
| | `include` | array | List of certificate objects to monitor. | | ||
| | `storeName` | string | Name of the certificate store (e.g., `"My"`). | | ||
| | `storeLocation`| string | Location of the store (e.g., `"LocalMachine"`). | | ||
| | `thumbprint` | string | Certificate thumbprint to identify the certificate. | | ||
|
|
||
| #### StoreLocation Enum Values | ||
|
|
||
| The `storeLocation` field specifies the location of the X.509 certificate store to use. | ||
|
|
||
| **Possible Values** | ||
|
|
||
| | Value | Description | | ||
| |---------------|----------------------------------------------------------------| | ||
| | CurrentUser | The X.509 certificate store is located in the current user's profile. | | ||
| | LocalMachine | The X.509 certificate store is located in the local computer's profile. | | ||
|
|
||
| #### StoreName Enum Values | ||
|
|
||
| The `storeName` field specifies the name of the Windows certificate store where the X.509 certificate is located. | ||
|
|
||
| **Possible Values** | ||
|
|
||
| | Value | Description | | ||
| |----------------------|-----------------------------------------------| | ||
| | AddressBook | Other people | | ||
| | AuthRoot | Third party trusted roots | | ||
| | CertificateAuthority | Intermediate CAs | | ||
| | Disallowed | Revoked certificates | | ||
| | My | Personal certificates | | ||
| | Root | Trusted root CAs | | ||
| | TrustedPeople | Trusted people (used in EFS) | | ||
| | TrustedPublisher | Trusted publishers (used in Authenticode) | | ||
|
|
||
| **Get Certificate Thumbprint** | ||
|
|
||
| Depending on the Store Location and Store Name, run the following command on the host. For `LocalMachine` and `My`, use: | ||
|
|
||
| ```powershell | ||
| Get-ChildItem Cert:\LocalMachine\My | ||
| ``` | ||
|
|
||
| The command returns a list of certificates including their `thumbprint` and `subject`. Copy the `thumbprint` value for the certificate you want to monitor and use it in the custom JSON configuration. Adjust the command as needed based on the selected `storeName` and `storeLocation`. | ||
|
|
||
| ## Configure Certificates | ||
|
|
||
| Certificates can be monitored at the "**hosts**", "**instance**", or "**installedProducts**" level. | ||
| For certificates to monitor, locate "**certificates**" under the desired section and update the configuration as below. | ||
|
|
||
| - `enabled` : Set to `true` to enable certificate monitoring. | ||
| - When configuring the `include` section, specify the `storeName`, `storeLocation`, and `thumbprint` for each certificate to be monitored. | ||
|
|
||
| **Example 1**: Monitoring two certificates from the LocalMachine\My store. The certificate is identified by its Thumbprint, which you can retrieve using the following PowerShell command:`Get-ChildItem Cert:\LocalMachine\My` | ||
|
|
||
| ```json | ||
| { | ||
| "certificates": { | ||
| "enabled": true, | ||
| "include": [ | ||
| { | ||
| "storeName": "My", | ||
| "storeLocation": "LocalMachine", | ||
| "thumbprint": "005501F9BA68A2ED7D9BD515B256F6298AEF7E5A" | ||
| }, | ||
| { | ||
| "storeName": "My", | ||
| "storeLocation": "LocalMachine", | ||
| "thumbprint": "E62D7D4DD8D054072A7A58A577D500753A586C75" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ### Verification in Kibana | ||
|
|
||
| - Navigate to Kibana Discover. | ||
| - Select `logs-*` Data View. | ||
| - Search for "The Environment Watch shared configuration object is not empty" which indicates that the EW Windows Service fetching values from the Custom JSON configuration successfully. | ||
|
|
||
|  | ||
| - Navigate to the Kibana certificates dashboard. | ||
| - Ensure that the certificates defined in the custom JSON configuration appear on the Kibana certificates dashboard. The example below demonstrates how a certificate specified in the custom JSON is successfully monitored and displayed on the certificates dashboard. | ||
|
|
||
|  | ||
|
|
||
|  | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Environment Watch automatically reads this file and applies the defined monitoring rules to the relevant instances, products, and hosts. - is there any time wait before it picks up the new configured file?
if yes, we should call that out before verifying in Kibana. if not, no change is required.