Skip to content

Commit

Permalink
Adds support for Keycloak / Generic Auth Providers (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei committed Dec 27, 2023
1 parent 4f6686e commit 1055779
Show file tree
Hide file tree
Showing 41 changed files with 3,203 additions and 336 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ Our mission is to help developers build better, more resilient applications whil
2. A platform that can anonymize sensitive data or automatically generate synthetic data from a schema and sync that across all environments
3. An open source approach that allows you to keep your most sensitive data in your infrastructure

## Table of Contents

- [Features](#features)
- [Getting Started](#get-started-for-free)
- [Running Neosync Locally](#run-neosync-locally)
- [Resources](#docs-and-support)
- [Contributing](#contributing)
- [Licensing](#licensing)
- [Triggering a Release](#triggering-a-release)

## Features

- Automatically generate synthetic data based on your schema
Expand Down Expand Up @@ -210,6 +200,16 @@ Work to be done:

- inherit the temporal compose inside of the neosync compose, separate with compose profiles.

#### Running Compose with Authentication

Note, a compose file with authentication pre-configured can be found [here](./compose/compose-auth.yml).
This will stand up Keycloak with a pre-configured realm that will allow logging in to Neosync with a standard username and password, competely offline!

```
$ docker compose -f temporal/compose.yml up -d
$ docker compose -f compose/compose-auth.yml up -d
```

## Resources

Some resources to help you along the way:
Expand Down
8 changes: 8 additions & 0 deletions backend/charts/api/templates/api-env-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ stringData:
AUTH_BASEURL: {{ .Values.auth.baseUrl }}
{{- end }}

{{- if and .Values.auth .Values.auth.expectedIss }}
AUTH_EXPECTED_ISS: {{ .Values.auth.expectedIss }}
{{- end }}

{{- if and .Values.auth .Values.auth.audience }}
AUTH_AUDIENCE: {{ .Values.auth.audience }}
{{- end }}
Expand All @@ -50,6 +54,10 @@ stringData:
AUTH_CLI_AUDIENCE: {{ .Values.auth.cliAudience }}
{{- end }}

{{- if and .Values.auth .Values.auth.signatureAlgorithm }}
AUTH_SIGNATURE_ALGORITHM: {{ .Values.auth.signatureAlgorithm }}
{{- end }}

{{- if and .Values.temporal .Values.temporal.url }}
TEMPORAL_URL: {{ .Values.temporal.url }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion backend/dev/helm/api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ servicePort: 80
containerPort: 8080

auth:
baseUrl: https://auth.nucleuscloud.dev
baseUrl: https://auth.nucleuscloud.dev/
audience: https://api.nucleuscloud.com

temporal:
Expand Down
160 changes: 136 additions & 24 deletions backend/gen/go/protos/mgmt/v1alpha1/auth.pb.go

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

Loading

1 comment on commit 1055779

@vercel
Copy link

@vercel vercel bot commented on 1055779 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.