Skip to content
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
19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ only required to manage documents on the server or validate against the
To build the application run:

```shell
./mvn package
./mvnw package
```

The resulting jar file in the `target` folder can then be run with
Expand Down Expand Up @@ -129,7 +129,7 @@ only and should not be used in production.

- run `docker compose up`
- After Keycloak is up, open a second terminal window and run
`docker compose up csaf-keycloak-cli` to import a realm with all the users
`docker compose up keycloak-cli` to import a realm with all the users
and roles already set up.
- To set up our CouchDB server open `http://127.0.0.1:5984/_utils/#/setup`
and run the [Single Node Setup](https://docs.couchdb.org/en/stable/setup/single-node.html). This creates databases like **_users** and stops CouchDB from spamming our logs (Admin credentials from .env)
Expand All @@ -140,7 +140,7 @@ only and should not be used in production.
- On the left side, navigate to "Clients" and select the Secvisogram client.
- Select the **Credentials** tab and copy the Secret. This is our
`CSAF_CLIENT_SECRET` environment variable.
- [Generate a cookie secret](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview/#generating-a-cookie-secret)
- [Generate a cookie secret](https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#generating-a-cookie-secret)
and paste it in `CSAF_COOKIE_SECRET`.
- restart compose
- (required for exports) install [pandoc (tested with version 2.18)](https://pandoc.org/installing.html)
Expand All @@ -154,6 +154,7 @@ response from the server.

You should now be able to access Secvisogram, navigate to `http://localhost/`.
There are the following default users:

|User |Password |Roles |
|----- |-------- |----- |
|registered |registered |**registered** |
Expand All @@ -178,12 +179,12 @@ When hostnames are changed, this has to adapted.

### build and execute tests

./mvnw clean verify
`` ./mvnw clean verify``


### start application

./mvnw spring-boot:run
`` ./mvnw spring-boot:run``

with main class: de.bsi.secvisogram.csaf_cms_backend.SecvisogramApplication

Expand All @@ -199,7 +200,7 @@ http://localhost:8081/swagger-ui/index.html

OpenAPI specification

http://localhost:8081/api-docs/
http://localhost:8081/api-docs

### access couchDB

Expand All @@ -221,10 +222,10 @@ You can find our guidelines here [CONTRIBUTING.md](https://github.com/secvisogra

### Check for Maven Plugin update

`` mvn versions:display-plugin-updates ``
`` ./mvnw versions:display-plugin-updates ``

## Check for dependency update
`` mvn versions:display-dependency-updates `
`` ./mvnw versions:display-dependency-updates ``

### Spring Boot

Expand Down
259 changes: 259 additions & 0 deletions mvnw

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

Loading