Skip to content

Commit

Permalink
fix: validate managed reverse proxy domain
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 4, 2024
1 parent 8b483e2 commit 05a8f0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/scenes/settings/environment/proxyLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export const proxyLogic = kea<proxyLogicType>([
? 'Domains cannot include wildcards'
: !isDomain('http://' + domain)
? 'Do not include the protocol e.g. https://'
: !domain.match(/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/)
? "Invalid domain. Please provide a lowercase RFC 1123 subdomain. It must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
: undefined,
}),
submit: ({ domain }) => {
Expand Down

0 comments on commit 05a8f0a

Please sign in to comment.