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

Release 1.3.0 MERGE TO MAIN #91

Merged
merged 28 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0612f32
added branch naming conventions to Contributing, fixed typo (#85)
llwaterhouse Dec 6, 2023
60373ae
adding line change from clint's old pr
mreeve-snl Dec 6, 2023
85390dc
Release 1.2.0 MERGE INTO MAIN (#101) (#102)
adhilto Dec 13, 2023
7172c20
Merge pull request #90 from cisagov/mreeve-89-fixing_docs
mreeve-snl Dec 13, 2023
796217d
Add .gitattributes file to exclude the testing folder from releases. …
adhilto Dec 13, 2023
392282a
Updated dashboard Process Explorer file downloads panels
rishagg01 Dec 15, 2023
8db2e00
Update workflow file to include linting and static security scans (#106)
aarz-snl Dec 15, 2023
84f419a
Update troubleshooting.md with instructions on how to change elastic …
aarz-snl Dec 15, 2023
710045c
Merge pull request #109 from cisagov/rishagg01-108-processexplorer-da…
rishagg01 Dec 15, 2023
bf42386
Merge branch 'main' into release-1.3.0
Dec 18, 2023
5cad79c
Merge branch 'main' into release-1.3.0
adhilto Dec 18, 2023
8c17d25
Delete Chapter 4 Files/dashboards/user_security.ndjson
rgbrow1949 Dec 15, 2023
6553dde
Delete Chapter 4 Files/dashboards/security_dashboard_security_log.ndjson
rgbrow1949 Dec 15, 2023
e0b7b93
Updated dashboards
rgbrow1949 Dec 15, 2023
851aec3
Remove elastic user password prompt from deploy.sh (#107)
mitchelbaker-cisa Dec 18, 2023
4038c26
updated upgrading.md for release 1.3.0 and fixed link in chapter3.md …
llwaterhouse Dec 18, 2023
a2b98b0
Merge branch 'release-1.3.0' of https://github.com/cisagov/LME into r…
Dec 18, 2023
46265df
imported new dashboard
Dec 18, 2023
19b3d81
Merge pull request #114 from cisagov/updated_user_sec_and_sec_log_das…
rgbrow1949 Dec 18, 2023
cdf08f4
Rearrange sysmon dashboard (#115)
causand22 Dec 18, 2023
c6893c7
Merge branch 'release-1.3.0' into alerting_dashboard_update
ddiabe Dec 18, 2023
2edfea8
Merge pull request #119 from cisagov/alerting_dashboard_update
ddiabe Dec 18, 2023
e3abfd8
Healthcheckoverview dashboard update (#120)
ddiabe Dec 18, 2023
4ad394d
adding push so that I can track this branch
mreeve-snl Dec 15, 2023
28cfe81
pushing all changes as documented in the PR: 112
mreeve-snl Dec 18, 2023
76d1852
Merge pull request #112 from cisagov/mreeve-69-git_based_deployment_v…
mreeve-snl Dec 19, 2023
6680474
Updated Healthcheck Overview Dashboard panels
rishagg01 Dec 20, 2023
6cce680
Merge pull request #130 from cisagov/rishagg01-129-healthcheckovervie…
ddiabe Dec 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
testing export-ignore
73 changes: 56 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,71 @@
---
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
pull_request:
branches:
- main

workflow_dispatch:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
pull_request:
branches:
- main
- 'release-*'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Linters
run: true # place-holder
- name: Checkout
uses: actions/checkout@v4

test:
- name: Lint Shell Scripts
continue-on-error: true
run: |
sudo apt-get update
sudo apt-get install shellcheck
shellcheck **/*.sh

- name: Lint PowerShell Scripts
continue-on-error: true
run: |
pwsh -Command "Invoke-ScriptAnalyzer -EnableExit -Recurse -Path ."

- name: Lint Lua
continue-on-error: true
run: |
sudo apt-get install -y luarocks
sudo luarocks install luacheck
luacheck **/*.lua

- name: Lint TeX Files
continue-on-error: true
run: |
sudo apt-get install chktex
chktex **/*.tex

- name: Lint YAML Files
continue-on-error: true
run: |
sudo apt-get update
sudo apt-get install yamllint
yamllint -f parsable **/*.yml

semgrep-scan:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep:latest
steps:
- name: Tests
run: true # place-holder
- name: Checkout repository
uses: actions/checkout@v4

- name: Semgrep Scan
continue-on-error: true
run: |
semgrep --config "p/r2c" .

release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test]
needs: [lint, semgrep-scan]
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
Expand Down
14 changes: 11 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ We recommend that you first search through existing issues (both open and closed

If it has then you might want to add a comment to the existing issue.

If it hasn't then feel free to create a new one.
If it hasn't then please create a new one.

Please follow the provided template and fill out all sections. We have a `BUG` and `FEATURE REQUEST` Template

## Branch naming conventions

If you are planning to submit a pull request, please name your branch using the following naming convention:
`<githubusername>-<issue #>-<short description>`

Example:
`mreeve-22-filter-events`

## Pull Requests (PR)

If you choose to submit a pull request, it will be required to pass various sanity checks in our continuous integration (CI) pipeline, before we merge it. Your pull request may fail these checks, and that's OK. If you want you can stop there and wait for us to make the necessary corrections to ensure your code passes the CI checks, you're more than within your rights; however, it helps our team greatly if you fix the issues found by our CI pipeline.
Expand All @@ -26,9 +34,9 @@ Below are some loose requirements we'd like all PR's to follow. Our release proc
All PRs will be tested, vetted, and reviewed by our team before being merged with the main code base. All should be pull requested into whatever the upcoming release branch is. Find that by searching for the highest SEMVER `release-X.Y.Z` branch or following our release documentation.

### Steps to submit a PR
- All PRs should request merges back into LME's *CLOSEST* Major or Minor upcoming release branch `release-X.Y.Z`. This will be viewable in the branch list on Github. You can also refer to our release documentation for guidance.
- All PRs should request merges back into LME's *CLOSEST* Major or Minor upcoming release branch `release-X.Y.Z`. This will be viewable in the branch list on Github. You can also refer to our release documentation for guidance.
- If the PR corresponds to an issue we are already tracking on LME's public Github [project](https://github.com/orgs/cisagov/projects/68), please comment the PR in the issue, and we will update the issue.
- If the PR does not have an issue, please add a comment at the top of the pull request describing the PR and how it fits into LME's project/code. If the PR follows our other requirements listed here, we'll add it into our public project linked previously.
- If the PR does not have an issue, please create a new issue and name your branch according to the conventions [here](#branch-naming-conventions). Add a comment at the top of the pull request describing the PR and how it fits into LME's project/code. If the PR follows our other requirements listed here, we'll add it into our public project linked previously.
- We'll work with you to mold it to our development goals/process, so your work can be merged into LME and your Github profile gets credit for the contributions.
- Before merging we request that all commits be squashed into one commit. This way your changes to the repository are tracked, but our `git log` history does not rapidly expand.
- Thanks for wanting to submit and develop improvements for LME!!
Expand Down
9 changes: 7 additions & 2 deletions Chapter 3 Files/dashboard_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ IFS=$'\n'
Dashboards="$(ls -1 ${LME_DIR}Chapter\ 4\ Files/dashboards/*.ndjson)"
echo $Dashboards


if [ -r /opt/lme/lme.conf ]; then
#reference this file as a source
. /opt/lme/lme.conf
#check if the version number is equal to the one we want
if [ "$version" == "1.2.0" ]; then
if [ "$version" == "1.3.0" ]; then
echo -e "\e[32m[X]\e[0m Updating from git repo"
git -C /opt/lme/ pull
#make sure the hostname variable is present
Expand All @@ -18,10 +19,14 @@ if [ -r /opt/lme/lme.conf ]; then
echo -e "\e[32m[X]\e[0m Uploading the new dashboards to Kibana"
for db in ${Dashboards};
do
echo -e "\e[32m[X]\e[0m Uploading ${db%%*.} dashboard"
echo -e "\e[32m[X]\e[0m Uploading ${db%%*.} dashboard\n"
curl -X POST -k --user dashboard_update:dashboardupdatepassword -H 'kbn-xsrf: true' --form file="@${dashbaord_dir}/${db}" "https://127.0.0.1/api/saved_objects/_import?overwrite=true"
echo
done

fi
else
echo "!!Upgrade to 1.3.0!!"
fi

fi
Loading
Loading