Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goauthentik/terraform-provider-authentik
Manage https://goauthentik.io with terraform.
https://github.com/goauthentik/terraform-provider-authentik
authentication authentik identity oauth oidc saml sso terraform terraform-provider
Last synced: 6 days ago
JSON representation
Manage https://goauthentik.io with terraform.
- Host: GitHub
- URL: https://github.com/goauthentik/terraform-provider-authentik
- Owner: goauthentik
- License: gpl-3.0
- Created: 2021-07-15T08:28:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T11:15:59.000Z (18 days ago)
- Last Synced: 2025-01-08T09:07:17.156Z (13 days ago)
- Topics: authentication, authentik, identity, oauth, oidc, saml, sso, terraform, terraform-provider
- Language: Go
- Homepage: https://registry.terraform.io/providers/goauthentik/authentik/latest/docs
- Size: 2.12 MB
- Stars: 73
- Watchers: 7
- Forks: 23
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
---
[![](https://img.shields.io/discord/809154715984199690?label=Discord&style=for-the-badge)](https://discord.gg/jg33eMhnj6)
[![Code Coverage](https://img.shields.io/codecov/c/gh/goauthentik/terraform-provider-authentik?style=for-the-badge)](https://codecov.io/gh/goauthentik/terraform-provider-authentik)
[![Latest version](https://img.shields.io/github/v/tag/goauthentik/terraform-provider-authentik?style=for-the-badge)](https://registry.terraform.io/providers/goauthentik/authentik/latest)
[![CI Build status](https://img.shields.io/github/actions/workflow/status/goauthentik/terraform-provider-authentik/test.yml?branch=main&style=for-the-badge)](https://github.com/goauthentik/terraform-provider-authentik/actions)# Terraform Provider authentik
Tested against authentik main and stable, on terraform 1.2.1
Run the following command to build the provider
```shell
make build
```### Generate Documentation
Run `make` from the project root to regenerate the latest provider documentation
## Run tests using a Dev Container
Running the included Dev Container will create a full authentik development environment automatically as if following the instructions found here: https://goauthentik.io/docs/installation/docker-compose
Once the Dev Container is running, simply use the VS Code Command Palette or Test UI to run any tests as needed.
Note: If running all tests, this is very CPU-intensive on your local authentik environment, so depending on your hardware they can take several minutes to complete.
## Run tests using a local environment
Start a local authentik instance by following https://goauthentik.io/docs/installation/docker-compose
Before starting the instance, add this static token to the `.env` file:
```
AUTHENTIK_TOKEN=this-token-is-for-testing-dont-use
```Afterwards, tests can be run from VS Code with the Command Palette or Test UI, or via CLI like so:
```
export TF_ACC=1
export AUTHENTIK_URL=http://localhost:9000
export AUTHENTIK_TOKEN=this-token-is-for-testing-dont-use
go test -timeout 30m ./... -count=1
```If you're trying to run tests with VS Code in your local environment, be sure to change `AUTHENTIK_URL` in `.vscode/settings.json` to: `"AUTHENTIK_URL": "http://localhost:9000"`
Note: If running all tests, this is very CPU-intensive on your local authentik environment, so depending on your hardware they can take several minutes to complete.
## Versioning
This provider's version is based on the authentik version it's tested against.
Provider version 2021.8.1 is tested against 2021.8.x.
Provider version 2021.8.2 is tested against 2021.8.x but has some bugfixes.