Skip to content

Commit ad6e723

Browse files
Align with conventions (opensearch-project#789)
* artifact name change * update readme and add md
1 parent a7e8192 commit ad6e723

8 files changed

+70
-136
lines changed

ADMINS.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Admins
2+
3+
| Admin | GitHub ID | Affiliation |
4+
| --------------- | --------------------------------------- | ----------- |
5+
| Henri Yandell | [hyandell](https://github.com/hyandell) | Amazon |
6+
7+
[This document](https://github.com/opensearch-project/.github/blob/main/ADMINS.md) explains what admins do in this repo. and how they should be doing it. If you're interested in becoming a maintainer, see [MAINTAINERS](MAINTAINERS.md). If you're interested in contributing, see [CONTRIBUTING](CONTRIBUTING.md).

CONTRIBUTING.md

+3-101
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,4 @@
1-
# Contributing Guidelines
2-
3-
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4-
documentation, we greatly value feedback and contributions from our community.
5-
6-
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7-
information to effectively respond to your bug report or contribution.
8-
9-
10-
## Reporting Bugs/Feature Requests
11-
12-
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
13-
14-
When filing an issue, please check [existing open](https://github.com/opensearch-project/security-dashboards-plugin/issues), or [recently closed](https://github.com/opensearch-project/security-dashboards-plugin/issues?q=is%3Aissue+is%3Aclosed), issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
15-
16-
* A reproducible test case or series of steps
17-
* The version of our code being used
18-
* Any modifications you've made relevant to the bug
19-
* Anything unusual about your environment or deployment
20-
21-
22-
## Contributing via Pull Requests
23-
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
24-
25-
1. You are working against the latest source on the *main* branch.
26-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
27-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
28-
29-
To send us a pull request, please:
30-
31-
1. Fork the repository.
32-
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
33-
3. Ensure local tests pass.
34-
4. Commit to your fork using clear commit messages.
35-
5. Send us a pull request, answering any default questions in the pull request interface.
36-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
37-
38-
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
39-
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
40-
41-
42-
## Finding contributions to work on
43-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/opensearch-project/security/labels/help%20wanted) issues is a great place to start.
44-
45-
## Code of Conduct
46-
47-
This project has adopted an [Open Source Code of Conduct](CODE_OF_CONDUCT.md).
48-
49-
## Developer Certificate of Origin
50-
51-
OpenSearch is an open source product released under the Apache 2.0 license (see either [the Apache site](https://www.apache.org/licenses/LICENSE-2.0) or the [LICENSE file](./LICENSE)). The Apache 2.0 license allows you to freely use, modify, distribute, and sell your own products that include Apache 2.0 licensed software.
52-
53-
We respect intellectual property rights of others and we want to make sure all incoming contributions are correctly attributed and licensed. A Developer Certificate of Origin (DCO) is a lightweight mechanism to do that.
54-
55-
The DCO is a declaration attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a `Signed-off-by` statement and thereby agrees to the DCO, which you can find below or at [DeveloperCertificate.org](http://developercertificate.org/).
56-
57-
```
58-
Developer's Certificate of Origin 1.1
59-
60-
By making a contribution to this project, I certify that:
61-
62-
(a) The contribution was created in whole or in part by me and I
63-
have the right to submit it under the open source license
64-
indicated in the file; or
65-
66-
(b) The contribution is based upon previous work that, to the
67-
best of my knowledge, is covered under an appropriate open
68-
source license and I have the right under that license to
69-
submit that work with modifications, whether created in whole
70-
or in part by me, under the same open source license (unless
71-
I am permitted to submit under a different license), as
72-
Indicated in the file; or
73-
74-
(c) The contribution was provided directly to me by some other
75-
person who certified (a), (b) or (c) and I have not modified
76-
it.
77-
78-
(d) I understand and agree that this project and the contribution
79-
are public and that a record of the contribution (including
80-
all personal information I submit with it, including my
81-
sign-off) is maintained indefinitely and may be redistributed
82-
consistent with this project or the open source license(s)
83-
involved.
84-
```
85-
We require that every contribution to OpenSearch is signed with a Developer Certificate of Origin. Additionally, please use your real name. We do not accept anonymous contributors nor those utilizing pseudonyms.
86-
87-
Each commit must include a DCO which looks like this
88-
89-
```
90-
Signed-off-by: Jane Smith <jane.smith@email.com>
91-
```
92-
You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `– – signoff` to add the `Signed-off-by` line to the end of the commit message.
93-
94-
## Security issue notifications
95-
96-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
97-
98-
99-
## Licensing
100-
101-
See the [LICENSE](./LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
1+
## Contributing to this Project
1022

3+
OpenSearch is a community project that is built and maintained by people just like **you**.
4+
[This document](https://github.com/opensearch-project/.github/blob/main/CONTRIBUTING.md) explains how you can contribute to this and related projects.

DEVELOPER_GUIDE.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Developer Guide
2+
3+
## Build
4+
5+
To build the `security-dashboards-plugin` plugin from source follow these instructions:
6+
* Download the OpenSearch-Dashboards source code for the [version specified in package.json](./package.json) you want to set up.
7+
8+
See the [OpenSearch-Dashboards contributing guide](https://github.com/opensearch-project/security-dashboards-plugin/blob/main/CONTRIBUTING.md) for more instructions on setting up your development environment.
9+
10+
* Change your node version to the version specified in `.node-version` inside the OpenSearch-Dashboards root directory.
11+
* cd into the `plugins` directory of the OpenSearch-Dashboards source code directory.
12+
* Check out this package from version control into the `plugins/security-dashboards-plugin` directory.
13+
* Run `yarn osd bootstrap` inside `OpenSearch-Dashboards` directory
14+
* Ultimately, your directory structure should look like this:
15+
16+
```md
17+
.
18+
├── OpenSearch-Dashboards
19+
│ └── plugins
20+
│ └── security-dashboards-plugin
21+
```
22+
* run `yarn build` to build the plugin inside `OpenSearch-Dashboards/plugins/security-dashboards-plugin` directory
23+
24+
The above builds the final artifacts in zip format. The artifacts can be found in the `OpenSearch-Dashboards/plugins/security-dashboards-plugin/build` directory
25+
26+
## Install
27+
28+
Install the plugin to OpenSearch-Dashboards cluster with the following commands:
29+
30+
`cd OpenSearch-Dashboards/bin`
31+
32+
`./opensearch-dashboards-plugin install file:///path/to/security/target/releases/opensearch-security-dashboards-plugin-<version>.zip`

MAINTAINERS.md

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
| --------------- | --------- | ----------- |
66
| Andy | [andy840314](https://github.com/andy840314) | Amazon |
77
| Chang Liu | [cliu123](https://github.com/cliu123) | Amazon |
8-
| Debjani Banerjee | [debjanibnrj](https://github.com/debjanibnrj) | Amazon |
98
| hsiang9431-amzn | [hsiang9431-amzn](https://github.com/hsiang9431-amzn) | Amazon |
109
| lukkoor | [lukkoor](https://github.com/lukkoor) | Amazon |
11-
| Sujith Vadakkepat | [sujithvm](https://github.com/sujithvm) | Amazon |
1210
| Vlad Rozov | [vrozov](https://github.com/vrozov) | Amazon |

README.md

+22-32
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
[![Integration tests](https://github.com/opensearch-project/security-dashboards-plugin/workflows/Integration%20Tests/badge.svg?branch=main)](https://github.com/opensearch-project/security-dashboards-plugin/actions)
33
[![codecov](https://codecov.io/gh/opensearch-project/security-dashboards-plugin/branch/main/graphs/badge.svg)](https://github.com/opensearch-project/security-dashboards-plugin)
44

5+
<img src="https://opensearch.org/assets/brand/SVG/Logo/opensearch_logo_default.svg" height="64px"/>
6+
7+
- [OpenSearch Common Utils](#opensearch-common-utils)
8+
- [Contributing](#contributing)
9+
- [Getting Help](#getting-help)
10+
- [Code of Conduct](#code-of-conduct)
11+
- [Security](#security)
12+
- [License](#license)
13+
- [Copyright](#copyright)
14+
15+
516
# OpenSearch-Dashboards Security Plugin
617

718
This plugin for OpenSearch-Dashboards adds a configuration management UI for the OpenSearch Security features, as well as authentication, session management and multi-tenancy support to your secured cluster.
@@ -14,45 +25,24 @@ This plugin for OpenSearch-Dashboards adds a configuration management UI for the
1425
* Multi-tenancy support for OpenSearch-Dashboards
1526
* OpenSearch audit logging configuration UI
1627

17-
## Build
18-
19-
To build the `security-dashboards-plugin` plugin from source follow these instructions:
20-
* Download the OpenSearch-Dashboards source code for the [version specified in package.json](./package.json) you want to set up.
21-
22-
See the [OpenSearch-Dashboards contributing guide](https://github.com/opensearch-project/security-dashboards-plugin/blob/main/CONTRIBUTING.md) for more instructions on setting up your development environment.
23-
24-
* Change your node version to the version specified in `.node-version` inside the OpenSearch-Dashboards root directory.
25-
* cd into the `plugins` directory of the OpenSearch-Dashboards source code directory.
26-
* Check out this package from version control into the `plugins/security-dashboards-plugin` directory.
27-
* Run `yarn osd bootstrap` inside `OpenSearch-Dashboards` directory
28-
* Ultimately, your directory structure should look like this:
29-
30-
```md
31-
.
32-
├── OpenSearch-Dashboards
33-
│ └── plugins
34-
│ └── security-dashboards-plugin
35-
```
36-
* run `yarn build` to build the plugin inside `OpenSearch-Dashboards/plugins/security-dashboards-plugin` directory
37-
38-
The above builds the final artifacts in zip format. The artifacts can be found in the `OpenSearch-Dashboards/plugins/security-dashboards-plugin/build` directory
28+
## Documentation
3929

40-
## Install
30+
Please refer to the [technical documentation](https://docs-beta.opensearch.org/) for detailed information on installing and configuring opensearch plugin.
4131

42-
Install the plugin to OpenSearch-Dashboards cluster with the following commands:
32+
## Contributing
4333

44-
`cd OpenSearch-Dashboards/bin`
34+
See [developer guide](DEVELOPER_GUIDE.md) and [how to contribute to this project](CONTRIBUTING.md).
4535

46-
`./opensearch-dashboards-plugin install file:///path/to/security/target/releases/opensearch-security-dashboards-plugin-<version>.zip`
36+
## Getting Help
4737

48-
## Documentation
38+
If you find a bug, or have a feature request, please don't hesitate to open an issue in this repository.
4939

50-
Please refer to the [technical documentation](https://docs-beta.opensearch.org/) for detailed information on installing and configuring opensearch plugin.
40+
For more information, see [project website](https://opensearch.org/) and [documentation](https://docs-beta.opensearch.org/). If you need help and are unsure where to open an issue, try [forums](https://discuss.opendistrocommunity.dev/).
5141

52-
## License
42+
## Code of Conduct
5343

54-
This code is licensed under the Apache 2.0 License.
44+
This project has adopted the [Amazon Open Source Code of Conduct](CODE_OF_CONDUCT.md). For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq), or contact [opensource-codeofconduct@amazon.com](mailto:opensource-codeofconduct@amazon.com) with any additional questions or comments.
5545

56-
## Copyright
46+
## Security
5747

58-
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
48+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.

RELEASING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This project follows the [OpenSearch release process](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).

SECURITY.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Reporting a Vulnerability
2+
3+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do **not** create a public GitHub issue.

build_tools/rename_zip.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ const shell = require('child_process').execSync;
1717

1818
const packageJson = require('../package.json');
1919
const osdJson = require('../opensearch_dashboards.json');
20+
const pluginName = 'security-dashboards';
2021

2122
const oldName = `build/${osdJson.id}-${osdJson.opensearchDashboardsVersion}.zip`;
22-
const newName = `build/${osdJson.id}-${packageJson.version}.zip`;
23+
const newName = `build/${pluginName}-${packageJson.version}.zip`;
2324

2425
console.log('rename ' + oldName + ' to ' + newName);
2526
shell(`mv ${oldName} ${newName}`);

0 commit comments

Comments
 (0)