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

Assign a user to submission #9

Merged
merged 8 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 0 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ plugins:
enabled: false
nodesecurity:
enabled: true
sass-lint:
enabled: true
rules:
nesting-depth:
- 2
- max-depth: 5
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Maintainability](https://api.codeclimate.com/v1/badges/77078c9bd93bd99d5840/maintainability)](https://codeclimate.com/github/bcgov/nr-permitconnect-navigator-service/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/77078c9bd93bd99d5840/test_coverage)](https://codeclimate.com/github/bcgov/nr-permitconnect-navigator-service/test_coverage)

A clean Vue 3 frontend & backend scaffold example
NR PermitConnect Navigator Service

To learn more about the **Common Services** available visit the [Common Services Showcase](https://bcgov.github.io/common-service-showcase/) page.

Expand All @@ -21,6 +21,8 @@ app/ - Application Root
├── src/ - Node.js web application
│ ├── components/ - Components Layer
│ ├── controllers/ - Controller Layer
│ ├── db/ - Database Layer
│ ├── interfaces/ - Typescript interface definitions
│ ├── middleware/ - Middleware Layer
│ ├── routes/ - Routes Layer
│ ├── services/ - Services Layer
Expand All @@ -39,7 +41,7 @@ frontend/ - Frontend Root
│ ├── types/ - Typescript type definitions
│ ├── utils/ - Utility components
│ └── views/ - View Layer
└── tests/ - Node.js web application tests
└── tests/ - Vitest web application tests
CODE-OF-CONDUCT.md - Code of Conduct
COMPLIANCE.yaml - BCGov PIA/STRA compliance status
CONTRIBUTING.md - Contributing Guidelines
Expand All @@ -50,18 +52,23 @@ SECURITY.md - Security Policy and Reporting

## Documentation

- [Application Readme](frontend/README.md)
- [Application Readme](app/README.md)
- [Frontend Readme](frontend/README.md)
- [Product Roadmap](https://github.com/bcgov/nr-permitconnect-navigator-service/wiki/Product-Roadmap)
- [Product Wiki](https://github.com/bcgov/nr-permitconnect-navigator-service/wiki)
- [Security Reporting](SECURITY.md)

## Quick Start Dev Guide

You can quickly run this application in development mode after cloning by opening two terminal windows and running the following commands (assuming you have already set up local configuration as well). Refer to the [Application Readme](app/README.md) and [Frontend Readme](app/frontend/README.md) for more details.
You can quickly run this application in development mode after cloning by opening two terminal windows and running the following commands (assuming you have already set up local configuration as well). Refer to the [Application Readme](app/README.md) and [Frontend Readme](/frontend/README.md) for more details.

- Create `.env` in the root directory with the following
- `DATABASE_URL="your_connection_string"`

```
cd app
npm i
npm run prisma:migrate
npm run serve
```

Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security Policies and Procedures

This document outlines security procedures and general policies for the NR Permitting Navigator Service
This document outlines security procedures and general policies for the NR PermitConnect Navigator Service
project.

- [Supported Versions](#supported-versions)
Expand All @@ -10,7 +10,7 @@ project.

## Supported Versions

At this time, only the latest version of NR Permitting Navigator Service is supported.
At this time, only the latest version of NR PermitConnect Navigator Service is supported.

| Version | Supported |
| ------- | ------------------ |
Expand All @@ -19,8 +19,8 @@ At this time, only the latest version of NR Permitting Navigator Service is supp

## Reporting a Bug

The `CSS` team and community take all security bugs in `NR Permitting Navigator Service` seriously.
Thank you for improving the security of `NR Permitting Navigator Service`. We appreciate your efforts and
The `CSS` team and community take all security bugs in `NR PermitConnect Navigator Service` seriously.
Thank you for improving the security of `NR PermitConnect Navigator Service`. We appreciate your efforts and
responsible disclosure and will make every effort to acknowledge your
contributions.

Expand Down
13 changes: 12 additions & 1 deletion app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ app.use(compression());
app.use(cors(DEFAULTCORS));
app.use(express.json({ limit: config.get('server.bodyLimit') }));
app.use(express.urlencoded({ extended: true }));
app.use(helmet());
app.use(
helmet({
contentSecurityPolicy: {
directives: {
'default-src': [
"'self'", // eslint-disable-line
new URL(config.get('frontend.oidc.authority')).origin
]
}
}
})
);

// Skip if running tests
if (process.env.NODE_ENV !== 'test') {
Expand Down
Loading
Loading