Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/soerenschneider/tf-keycloak


https://github.com/soerenschneider/tf-keycloak

auth-provider iac infrastructure-as-code keycloak oauth2 openid-connect opentofu terraform

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

# tf-keycloak

![gitleaks](https://github.com/soerenschneider/tf-keycloak/actions/workflows/gitleaks.yaml/badge.svg)
![lint-workflow](https://github.com/soerenschneider/tf-keycloak/actions/workflows/lint.yaml/badge.svg)
![security-workflow](https://github.com/soerenschneider/tf-keycloak/actions/workflows/security.yaml/badge.svg)
![terratest](https://github.com/soerenschneider/tf-keycloak/actions/workflows/terratest.yaml/badge.svg)

This repository implements Infrastructure as Code (IaC) using [OpenTofu](https://opentofu.org/) to configure Keycloak and write OpenID client secrets to Hashicorp Vault.

## Table of Contents

- [Overview](#overview)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)

## Getting Started

Follow these instructions to set up the repository and start managing your Keycloak and Vault resources.

### Prerequisites

- [OpenTofu](https://opentofu.org/)
- Terragrunt
- Docker-compose

### Running the code

1. **Clone the repository:**
```bash
git clone https://github.com/soerenschneider/tf-keycloak.git
cd tf-keycloak
```

2. **Provisioning resources:**
```bash
cd envs/dev
bash run.sh
```

### Tests

This repository utilizes Terratest for automated testing of OpenTofu modules and configurations.

1. **Running the tests:**
```bash
$ make tests
```