Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to configure authentication provider #22

Merged
merged 2 commits into from
Oct 28, 2024
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
2 changes: 1 addition & 1 deletion charts/perses/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: perses
description: Perses helm chart
icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4
type: application
version: 0.5.0
version: 0.6.0
appVersion: "v0.48.0"
sources:
- https://github.com/perses/perses
Expand Down
2 changes: 1 addition & 1 deletion charts/perses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Perses helm chart

![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.48.0](https://img.shields.io/badge/AppVersion-v0.48.0-informational?style=flat-square)
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.48.0](https://img.shields.io/badge/AppVersion-v0.48.0-informational?style=flat-square)

## Installing the Chart

Expand Down
5 changes: 4 additions & 1 deletion charts/perses/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ data:
cookie:
{{- toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.config.security.authentication }}
authentication:
{{- toYaml . | nindent 8 }}
{{- end }}
database:
{{- with .Values.config.database.file }}
file:
Expand Down
143 changes: 142 additions & 1 deletion charts/perses/values.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/schema#",
"type": "object",
"title": "Values",
"additionalProperties": false,
Expand Down Expand Up @@ -195,6 +195,147 @@
"disable_sign_up": {
"type": "boolean",
"default": false
},
"providers": {
"type": "object",
"properties": {
"oidc": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"slug_id": {
"type": "string"
},
"name": {
"type": "string"
},
"client_id":{
"type": "string"
},
"client_secret": {
"type": "string"
},
"device_code": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
}
}
},
"redirect_uri": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"issuer": {
"type": "string"
},
"discovery_url": {
"type": "string"
},
"disable_pkce": {
"type":"boolean",
"default": false
},
"url_params": {
"type": "string"
}
}
}
},
"oauth": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"slug_id": {
"type": "string"
},
"name": {
"type": "string"
},
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"device_code": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"client_credentials": {
"type": "object",
"additionalProperties": false,
"properties": {
"client_id": {
"type": "string"
},
"client_secret": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"redirect_url": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"auth_url": {
"type": "string"
},
"token_url": {
"type": "string"
},
"user_infos_url": {
"type": "string"
},
"device_auth_url": {
"type": "string"
},
"custom_login_property": {
"type": "string"
}
}
}
}
}
}
}
}
Expand Down
Loading