An open API service indexing awesome lists of open source software.

https://github.com/navikt/basta

An orchestration system for self-service infrastructure setup (servers, DNS, databases...)
https://github.com/navikt/basta

aura

Last synced: about 1 year ago
JSON representation

An orchestration system for self-service infrastructure setup (servers, DNS, databases...)

Awesome Lists containing this project

README

          

Basta
=====

## Environments

| Service | URL |
| -------------- | ---------------------------------------------- |
| Pre-production | https://basta.intern.dev.nav.no |
| Production | https://basta.intern.nav.no |

## Deployment

Deployed using [github actions](https://github.com/navikt/basta/actions). The action uses a self hosted runner on-premises. The setup for basta includes a separate settings.xml and environment variables for the runner service. Beyond that, the runner uses the default setup from Github.

## Development

The application can be started by running the `StandaloneBastaJettyRunner` class/main method. You can log in
with username "prodadmin" and password "prodadmin". The app will listen on http://localhost:1337.

When compiling and building in environments without access to Oracle Database Server the DatabaseScriptsTest test needs to be disabled.
This can be done by adding -Dtest=\!DatabaseScriptsTest.java to the maven command: `mvn -Dtest=\!DatabaseScriptsTest.java clean install`

## Security

Access levels are controlled through AD groups. These map to access to the environment classes `u`, `t`, `q` and `p`.
This is implemented in the class `no.nav.aura.basta.User`.

Currently this is the setup:

| Class | Role | Role-group-mapping in Fasit
| ----- | -------------------- | ------------------------------------------------------------------------- |
| u | ROLE_USER | None (authenticated user) |
| t | ROLE_OPERATIONS | http://fasit.adeo.no/resources?10&resourceAlias=env-config.operations |
| q | ROLE_PROD_OPERATIONS | http://fasit.adeo.no/resources?12&resourceAlias=env-config.prodoperations |
| p | ROLE_PROD_OPERATIONS | http://fasit.adeo.no/resources?12&resourceAlias=env-config.prodoperations |

## Sources

| /src/main/java | Java stuff |
| /src/main/resources | Java-config stuff |