Skip to content
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

ST with secrets - mysql, elasticsearch, postgresql. Customer facing doc for setting secrets as env variable #4945

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

sumoanema
Copy link
Collaborator

@sumoanema sumoanema commented Jan 9, 2025

Purpose of this pull request

This pull request is to introduce documentation of Postgresql source template

Select the type of change

Adding a new page with the instruction to use postgresql Source template

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

https://sumologic.atlassian.net/browse/SUMO-245421

@cla-bot cla-bot bot added the cla-signed Contributor approved, listed in .clabot file label Jan 9, 2025
@sumoanema sumoanema added the do-not-merge Pull requests that should not be merged label Jan 9, 2025
sidebars.ts Outdated
Comment on lines 206 to 215
//{
//type: 'category',
//label: 'PostgreSQL',
//collapsible: true,
//collapsed: true,
//link: {type: 'doc', id: 'send-data/opentelemetry-collector/remote-management/source-templates/postgresql/index'},
//items:[
//'send-data/opentelemetry-collector/remote-management/source-templates/postgresql/changelog',
//]
//},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sumoanema since you've labeled the docs as beta, I've added them to the sidebars and commented them out. When you're ready, you can uncomment these lines.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since OTRM has gone GA these ST are not beta anymore. Have uncommented the entry in sidebar.js and added two more - mysql and elasticsearch doc for which are added to this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are GA, you'll need to remove beta code, which looks like this @sumoanema

<head>
  <meta name="robots" content="noindex" />
</head>

<p><a href="/docs/beta"><span className="beta">Beta</span></a></p>

@sumoanema sumoanema marked this pull request as ready for review January 27, 2025 07:37
Comment on lines +12 to +16
<head>
<meta name="robots" content="noindex" />
</head>

<p><a href="/docs/beta"><span className="beta">Beta</span></a></p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove beta docs code (you indicated these are GA)

Suggested change
<head>
<meta name="robots" content="noindex" />
</head>
<p><a href="/docs/beta"><span className="beta">Beta</span></a></p>

Comment on lines +12 to +16
<head>
<meta name="robots" content="noindex" />
</head>

<p><a href="/docs/beta"><span className="beta">Beta</span></a></p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove beta docs code (you indicated these are GA)

Suggested change
<head>
<meta name="robots" content="noindex" />
</head>
<p><a href="/docs/beta"><span className="beta">Beta</span></a></p>

@sumoanema sumoanema changed the title Postgresql st ST with secrets - mysql, elasticsearch, postgresql. Customer facing doc for setting secrets as env variable Jan 27, 2025

## Windows

1. On your windows machine, open Registry Editor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. On your windows machine, open Registry Editor.
1. On your Windows machine, open the Registry Editor.


1. On your windows machine, open Registry Editor.
2. Go to `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OtelcolSumo`.
3. Right click on the right pane and select `New > Multi-String Value`. You need to name this as `environment`.
Copy link
Collaborator

@kimsauce kimsauce Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Right click on the right pane and select `New > Multi-String Value`. You need to name this as `environment`.
3. Right-click on the right pane and select **New** > **Multi-String Value**. You need to name this as `environment`.

1. On your windows machine, open Registry Editor.
2. Go to `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OtelcolSumo`.
3. Right click on the right pane and select `New > Multi-String Value`. You need to name this as `environment`.
4. Right click on newly created entity `environment` in the step above and select `modify`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
4. Right click on newly created entity `environment` in the step above and select `modify`
4. Right click on newly created entity `environment` in the step above and select `modify`.

2. Go to `Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OtelcolSumo`.
3. Right click on the right pane and select `New > Multi-String Value`. You need to name this as `environment`.
4. Right click on newly created entity `environment` in the step above and select `modify`
5. You can set the environment variable as per your needs. For example in the below screenshot we have set `TEST_VAR` env variable with value `sumoemp`:<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/set_env_varibale_windows.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. You can set the environment variable as per your needs. For example in the below screenshot we have set `TEST_VAR` env variable with value `sumoemp`:<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/set_env_varibale_windows.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>
5. You can set the environment variable as per your needs. For example, in the below screenshot, we have set `TEST_VAR` env variable with value `sumoemp`:<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/set_env_varibale_windows.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>

4. Right click on newly created entity `environment` in the step above and select `modify`
5. You can set the environment variable as per your needs. For example in the below screenshot we have set `TEST_VAR` env variable with value `sumoemp`:<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/set_env_varibale_windows.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>
6. Click on **OK**.
7. **Optional Step** Since by default the variable set as part of registry are visible to all user, you can follow the below steps to manage the ACL of the service registry and environment variable set in above steps :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
7. **Optional Step** Since by default the variable set as part of registry are visible to all user, you can follow the below steps to manage the ACL of the service registry and environment variable set in above steps :
7. (Optional step) By default, any variables stored in the registry are visible to all users. To control visibility and permissions, follow the steps below to manage the ACLs for both the service registry and the environment variables you set previously.

Comment on lines +90 to +94
- Right click on OtelcolSumo service in the left pane of the registry editor and click on permissions
- Go to advance section by pressing Advanced button
- Since the permissions are inherited by services from its parent by default, you will need to disable inheritance in the Advanced Security Settings popup.
- While disabling inheritance you will get two options to either convert inherited permission or to remove inherit permissions and create the permission list from scrath. You can choose either of the two depending on your case.
- You can then edit Users from this list to ensure appropriate access of this registry and environment variable set under it.<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/ACL_windows_registry.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Right click on OtelcolSumo service in the left pane of the registry editor and click on permissions
- Go to advance section by pressing Advanced button
- Since the permissions are inherited by services from its parent by default, you will need to disable inheritance in the Advanced Security Settings popup.
- While disabling inheritance you will get two options to either convert inherited permission or to remove inherit permissions and create the permission list from scrath. You can choose either of the two depending on your case.
- You can then edit Users from this list to ensure appropriate access of this registry and environment variable set under it.<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/ACL_windows_registry.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>
1. Right-click on OtelcolSumo service in the left pane of the registry editor and click on permissions.
1. Go to the advanced section by pressing the Advanced button.
1. Since the permissions are inherited by services from its parent by default, you will need to disable inheritance in the Advanced Security Settings popup.
1. When you disable inheritance, you’ll be given two options: you can either convert the existing inherited permissions, or remove them entirely and build a new permission list from scratch. Choose whichever option best fits your requirements.
1. You can then edit Users from this list to ensure appropriate access of this registry and environment variable set under it.<br/><img src={useBaseUrl('img/send-data/opentelemetry-collector/ACL_windows_registry.png')} alt="linux-install" style={{border: '1px solid gray'}} width="800"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed Contributor approved, listed in .clabot file do-not-merge Pull requests that should not be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants