Skip to content

Commit

Permalink
feat: add cira timestamps to db
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrache committed Nov 13, 2023
1 parent efd8523 commit 8df42b1
Show file tree
Hide file tree
Showing 21 changed files with 550 additions and 363 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
name: "CodeQL"

on:
workflow_dispatch:
release:
types:
- created
push:
branches: [ main ]
pull_request:
Expand Down Expand Up @@ -77,3 +81,15 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
- name: Generate Security Report
uses: rsdmike/github-security-report-action@a149b24539044c92786ec39af8ba38c93496495d # v3.0.4
continue-on-error: true
with:
template: report
token: ${{ secrets.SECURITY_TOKEN }}
- name: GitHub Upload Release Artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
continue-on-error: true
with:
name: report
path: ./*.pdf
2 changes: 1 addition & 1 deletion .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

run: docker build . --file Dockerfile --tag vprodemo.azurecr.io/mps:${{ github.sha }} --tag vprodemo.azurecr.io/mps:latest
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@f78e9ecf42a1271402d4f484518b9313235990e1 # master
uses: aquasecurity/trivy-action@2b6a709cf9c4025c5438138008beaddbb02086f0 # master
with:
image-ref: 'vprodemo.azurecr.io/mps:${{ github.sha }}'
format: 'table'
Expand Down
3 changes: 2 additions & 1 deletion .mpsrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
"consul_enabled": false,
"consul_host": "localhost",
"consul_port": "8500",
"consul_key_prefix": "MPS"
"consul_key_prefix": "MPS",
"cira_last_seen": true
}
3 changes: 3 additions & 0 deletions data/initMPS.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ CREATE TABLE IF NOT EXISTS devices(
tenantid varchar(36) NOT NULL,
friendlyname varchar(256),
dnssuffix varchar(256),
lastconnected timestamp with time zone,
lastseen timestamp with time zone,
lastdisconnected timestamp with time zone,
deviceinfo JSON,
CONSTRAINT device_guid UNIQUE(guid),
PRIMARY KEY (guid,tenantid)
Expand Down
156 changes: 78 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8df42b1

Please sign in to comment.