You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,110 +48,191 @@ It also provides seamless support for creating and executing BeS playbooks, enab
48
48
-**launch**: Trigger function which calls all the above functions.
49
49
- The BeS Playbooks are stored and maintained under [besecure-playbooks-store](https://github.com/Be-Secure/besecure-playbooks-store).
50
50
51
+
<!-- # Developer Guide
52
+
53
+
**Welcome, Developers!**
54
+
55
+
We are thrilled to have you here! Thank you for your interest in contributing to our project. Whether you're a seasoned developer or just getting started, your contributions are highly valued and appreciated. This [guide](developer-guide.md) will help you get up and running and provide you with the necessary information to make your development experience as smooth as possible. -->
56
+
51
57
# Installation
52
58
53
-
## For Windows
59
+
BeSman is designed to be used in a Linux machine.
54
60
55
-
BeSman is designed to work with linux machines. So, if you are a windows user, you can use [oah-installer](https://github.com/be-secure/oah-installer), a component of [**OpenAppHack(OAH)**](https://openapphack.github.io/OAH/), to install [oah-shell](https://github.com/be-secure/oah-shell) in the local system and using it to bring up [oah-bes-vm](https://github.com/be-secure/oah-bes-vm), an ubuntu VM, with BeSman installed.
Below are the steps to be performed by the user of BeSman to **setup their machine**, **install an environment** and **run a playbook** to generate the assessment reports and [OSAR](https://be-secure.github.io/bes-schema/assessment-report/#open-source-assessment-report-schema-osar).
2. Set BeSman variable with configured git user name for cloning artifact source code repo and assessment datastore repo.
114
127
115
-
# Usage
128
+
$ bes set BESMAN_USER_NAMESPACE <github id/gitlab id>
129
+
130
+
3. Fork the required repositories. Read [here](https://github.com/Be-Secure/besecure-ce-env-repo/tree/develop?tab=readme-ov-file#2-set-your-githubgitlab-id).
131
+
132
+
## 2. Environment Setup
133
+
134
+
Read about environments from our [environment repo](https://github.com/Be-Secure/besecure-ce-env-repo).
135
+
136
+
### 2.1 List
137
+
138
+
Use the command to get the available environments for installation.
139
+
140
+
$ bes list -env
141
+
142
+
If you wish to change the repo, run the below command
143
+
144
+
$ bes set BESMAN_ENV_REPO <GitHubOrg>/<Reponame>
145
+
146
+
If you wish to change the branch, run the below command
147
+
148
+
$ bes set BESMAN_ENV_REPO_BRANCH <branch>/<tag>
149
+
150
+
### 2.2 Edit environment configuration(optional)
151
+
152
+
`IMPORTANT`: If you are using a common environment to assess multiple artifacts,this step is required.
153
+
154
+
Visit [environment repo](https://github.com/Be-Secure/besecure-ce-env-repo/tree/develop?tab=readme-ov-file#41-edit-environment-configuration) to see how to edit configuration of an environment.
155
+
156
+
### 2.3 Install
157
+
158
+
From the listed environments(from above list command), choose an environment and its version for installation and run the below command
The `reload` command reloads the current configuration of the environment.
165
+
166
+
$ bes reload
167
+
168
+
This is useful when,
169
+
170
+
1. A value for a variable has to be changed for the current environment.
171
+
2. Reflecting values in a new terminal session.
172
+
173
+
This command only works when an environment is installed.
174
+
175
+
## 3. Playbook Setup
176
+
177
+
Read about playbooks from our [playbook repo](https://github.com/Be-Secure/besecure-playbooks-store).
178
+
179
+
### 3.1 List
180
+
181
+
Use the command to get the available playbooks for performing assessments and generate [OSAR](https://be-secure.github.io/bes-schema/assessment-report/#open-source-assessment-report-schema-osar).
182
+
183
+
$ bes list -P
184
+
185
+
If you wish to change the repo, run the below command
186
+
187
+
$ bes set BESMAN_PLAYBOOK_REPO <GitHubOrg>/<Reponame>
188
+
189
+
If you wish to change the branch, run the below command
190
+
191
+
$ bes set BESMAN_PLAYBOOK_REPO_BRANCH <branch>/<tag>
192
+
193
+
### 3.2 Pull
194
+
195
+
Before running(execute) a playbook, you need to pull(fetch) it to your local machine,
196
+
197
+
$ bes pull -P <playbook name> -V <version>
198
+
199
+
### 3.3 Run
200
+
201
+
To run a playbook to generate [OSAR](https://be-secure.github.io/bes-schema/assessment-report/#open-source-assessment-report-schema-osar) and detailed assessment report,
202
+
203
+
$ bes run -P <playbook name> -V <version>
204
+
205
+
## 4. Attestation of OSAR
206
+
207
+
The user can run the `attest` command to attest the [OSAR](https://be-secure.github.io/bes-schema/assessment-report/#open-source-assessment-report-schema-osar) generated by the organization/individual/lab to verify the authenticity of report by any another lab/organization/individual interested in the reports generated by the former.
208
+
209
+
$ bes attest --file <osar file name> --path <complete path to dir containing osar file>
0 commit comments