docs: fix issue template (#5541)

Fixes an issue with the issue templates.

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
pull/5544/head
James Elliott 2023-06-08 09:18:35 +10:00 committed by GitHub
parent 19de724937
commit 4adefd3ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 130 additions and 105 deletions

View File

@ -29,9 +29,9 @@ body:
id: 'version' id: 'version'
attributes: attributes:
label: | label: |
Version Version
description: | description: |
What version(s) of Authelia can you reproduce this bug on? What version(s) of Authelia can you reproduce this bug on?
multiple: true multiple: true
options: options:
- 'v4.37.5' - 'v4.37.5'
@ -76,9 +76,9 @@ body:
id: 'deployment' id: 'deployment'
attributes: attributes:
label: | label: |
Deployment Method Deployment Method
description: | description: |
How are you deploying Authelia? How are you deploying Authelia?
options: options:
- 'Docker' - 'Docker'
- 'Kubernetes' - 'Kubernetes'
@ -90,9 +90,9 @@ body:
id: 'proxy' id: 'proxy'
attributes: attributes:
label: | label: |
Reverse Proxy Reverse Proxy
description: | description: |
What reverse proxy are you using? What reverse proxy are you using?
options: options:
- 'Caddy' - 'Caddy'
- 'Traefik' - 'Traefik'
@ -108,9 +108,9 @@ body:
id: 'proxy-version' id: 'proxy-version'
attributes: attributes:
label: | label: |
Reverse Proxy Version Reverse Proxy Version
description: | description: |
What is the version of your reverse proxy? What is the version of your reverse proxy?
placeholder: 'x.x.x' placeholder: 'x.x.x'
validations: validations:
required: false required: false
@ -118,36 +118,36 @@ body:
id: 'description' id: 'description'
attributes: attributes:
label: | label: |
Description Description
description: | description: |
Describe the bug. Describe the bug.
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'reproduction' id: 'reproduction'
attributes: attributes:
label: | label: |
Reproduction Reproduction
description: | description: |
Describe how we can reproduce this issue. This should be step by step and should include detailed and specific information. Abstract or generic information should be avoided. For example this should include specific application names and versions if relevant. Reproducing the issue is important so we can verify it exists, add relevant tests, and verify it is solved. Describe how we can reproduce this issue. This should be step by step and should include detailed and specific information. Abstract or generic information should be avoided. For example this should include specific application names and versions if relevant. Reproducing the issue is important so we can verify it exists, add relevant tests, and verify it is solved.
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'expectations' id: 'expectations'
attributes: attributes:
label: | label: |
Expectations Expectations
description: | description: |
Describe the desired or expected results. Describe the desired or expected results.
validations: validations:
required: false required: false
- type: 'textarea' - type: 'textarea'
id: 'configuration' id: 'configuration'
attributes: attributes:
label: | label: |
Configuration (Authelia) Configuration (Authelia)
description: | description: |
Provide a complete configuration file (the template will automatically put this content in a code block). Provide a complete configuration file (the template will automatically put this content in a code block).
render: 'yaml' render: 'yaml'
validations: validations:
required: false required: false
@ -155,7 +155,7 @@ body:
id: 'logs' id: 'logs'
attributes: attributes:
label: | label: |
Logs (Authelia) Logs (Authelia)
description: | description: |
Provide complete logs with the log level set to debug or trace. Complete means from application start until the issue occurring. This is clearly explained in the [Logs](https://www.authelia.com/r/troubleshooting#logs) section of the troubleshooting guide. Provide complete logs with the log level set to debug or trace. Complete means from application start until the issue occurring. This is clearly explained in the [Logs](https://www.authelia.com/r/troubleshooting#logs) section of the troubleshooting guide.
@ -167,9 +167,9 @@ body:
id: 'logs-other' id: 'logs-other'
attributes: attributes:
label: | label: |
Logs (Proxy / Application) Logs (Proxy / Application)
description: | description: |
Provide complete debug logs for the affected proxy and/or application if available and relevant (the template will automatically put this content in a code block). Provide complete debug logs for the affected proxy and/or application if available and relevant (the template will automatically put this content in a code block).
render: 'shell' render: 'shell'
validations: validations:
required: false required: false
@ -177,38 +177,38 @@ body:
id: 'documentation' id: 'documentation'
attributes: attributes:
label: | label: |
Documentation Documentation
description: | description: |
Provide any relevant specification or other documentation if applicable. Provide any relevant specification or other documentation if applicable.
validations: validations:
required: false required: false
- type: 'checkboxes' - type: 'checkboxes'
id: 'checklist' id: 'checklist'
attributes: attributes:
label: | label: |
Pre-Submission Checklist Pre-Submission Checklist
description: | description: |
By submitting this issue confirm all of the following. By submitting this issue confirm all of the following.
options: options:
- label: | - label: |
I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct) I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct)
required: true required: true
- label: | - label: |
This is a bug report and not a support request This is a bug report and not a support request
required: true required: true
- label: | - label: |
I have read the security policy and this bug report is not a security issue or security related issue I have read the security policy and this bug report is not a security issue or security related issue
required: true required: true
- label: | - label: |
I have either included the complete configuration file or I am sure it's unrelated to the configuration I have either included the complete configuration file or I am sure it's unrelated to the configuration
required: true required: true
- label: | - label: |
I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the [Troubleshooting Sanitization](https://www.authelia.com/r/sanitize) reference guide I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the [Troubleshooting Sanitization](https://www.authelia.com/r/sanitize) reference guide
required: true required: true
- label: | - label: |
I have checked for related proxy or application logs and included them if available I have checked for related proxy or application logs and included them if available
required: true required: true
- label: | - label: |
I have checked for related issues and checked the documentation I have checked for related issues and checked the documentation
required: true required: true
... ...

View File

@ -20,50 +20,50 @@ body:
id: 'description' id: 'description'
attributes: attributes:
label: | label: |
Description Description
description: | description: |
Describe the feature Describe the feature
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'use-case' id: 'use-case'
attributes: attributes:
label: | label: |
Use Case Use Case
description: | description: |
Provide a use case Provide a use case
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'details' id: 'details'
attributes: attributes:
label: | label: |
Details Details
description: | description: |
Describe the feature in detail Describe the feature in detail
validations: validations:
required: false required: false
- type: 'textarea' - type: 'textarea'
id: 'documentation' id: 'documentation'
attributes: attributes:
label: | label: |
Documentation Documentation
description: | description: |
Provide any relevant specification or other documentation if applicable Provide any relevant specification or other documentation if applicable
validations: validations:
required: false required: false
- type: 'checkboxes' - type: 'checkboxes'
id: 'checklist' id: 'checklist'
attributes: attributes:
label: | label: |
Pre-Submission Checklist Pre-Submission Checklist
description: | description: |
By submitting this issue confirm all of the following By submitting this issue confirm all of the following
options: options:
- label: | - label: |
I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct) I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct)
required: true required: true
- label: | - label: |
I have checked for related issues and checked the documentation I have checked for related issues and checked the documentation
required: true required: true
... ...

View File

@ -29,23 +29,23 @@ body:
id: 'version' id: 'version'
attributes: attributes:
label: | label: |
Version Version
description: | description: |
What version(s) of Authelia can you reproduce this bug on? What version(s) of Authelia can you reproduce this bug on?
multiple: true multiple: true
options: options:
{{- range .Versions }} {{- range .Versions }}
- '{{ . }}' - '{{ . }}'
{{- end }} {{- end }}
validations: validations:
required: true required: true
- type: 'dropdown' - type: 'dropdown'
id: 'deployment' id: 'deployment'
attributes: attributes:
label: | label: |
Deployment Method Deployment Method
description: | description: |
How are you deploying Authelia? How are you deploying Authelia?
options: options:
- 'Docker' - 'Docker'
- 'Kubernetes' - 'Kubernetes'
@ -57,9 +57,9 @@ body:
id: 'proxy' id: 'proxy'
attributes: attributes:
label: | label: |
Reverse Proxy Reverse Proxy
description: | description: |
What reverse proxy are you using? What reverse proxy are you using?
options: options:
{{- range .Proxies }} {{- range .Proxies }}
- '{{ . }}' - '{{ . }}'
@ -70,9 +70,9 @@ body:
id: 'proxy-version' id: 'proxy-version'
attributes: attributes:
label: | label: |
Reverse Proxy Version Reverse Proxy Version
description: | description: |
What is the version of your reverse proxy? What is the version of your reverse proxy?
placeholder: 'x.x.x' placeholder: 'x.x.x'
validations: validations:
required: false required: false
@ -80,36 +80,36 @@ body:
id: 'description' id: 'description'
attributes: attributes:
label: | label: |
Description Description
description: | description: |
Describe the bug. Describe the bug.
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'reproduction' id: 'reproduction'
attributes: attributes:
label: | label: |
Reproduction Reproduction
description: | description: |
Describe how we can reproduce this issue. This should be step by step and should include detailed and specific information. Abstract or generic information should be avoided. For example this should include specific application names and versions if relevant. Reproducing the issue is important so we can verify it exists, add relevant tests, and verify it is solved. Describe how we can reproduce this issue. This should be step by step and should include detailed and specific information. Abstract or generic information should be avoided. For example this should include specific application names and versions if relevant. Reproducing the issue is important so we can verify it exists, add relevant tests, and verify it is solved.
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'expectations' id: 'expectations'
attributes: attributes:
label: | label: |
Expectations Expectations
description: | description: |
Describe the desired or expected results. Describe the desired or expected results.
validations: validations:
required: false required: false
- type: 'textarea' - type: 'textarea'
id: 'configuration' id: 'configuration'
attributes: attributes:
label: | label: |
Configuration (Authelia) Configuration (Authelia)
description: | description: |
Provide a complete configuration file (the template will automatically put this content in a code block). Provide a complete configuration file (the template will automatically put this content in a code block).
render: 'yaml' render: 'yaml'
validations: validations:
required: false required: false
@ -117,7 +117,7 @@ body:
id: 'logs' id: 'logs'
attributes: attributes:
label: | label: |
Logs (Authelia) Logs (Authelia)
description: | description: |
Provide complete logs with the log level set to debug or trace. Complete means from application start until the issue occurring. This is clearly explained in the [Logs](https://www.authelia.com/r/troubleshooting#logs) section of the troubleshooting guide. Provide complete logs with the log level set to debug or trace. Complete means from application start until the issue occurring. This is clearly explained in the [Logs](https://www.authelia.com/r/troubleshooting#logs) section of the troubleshooting guide.
@ -129,9 +129,9 @@ body:
id: 'logs-other' id: 'logs-other'
attributes: attributes:
label: | label: |
Logs (Proxy / Application) Logs (Proxy / Application)
description: | description: |
Provide complete debug logs for the affected proxy and/or application if available and relevant (the template will automatically put this content in a code block). Provide complete debug logs for the affected proxy and/or application if available and relevant (the template will automatically put this content in a code block).
render: 'shell' render: 'shell'
validations: validations:
required: false required: false
@ -139,38 +139,38 @@ body:
id: 'documentation' id: 'documentation'
attributes: attributes:
label: | label: |
Documentation Documentation
description: | description: |
Provide any relevant specification or other documentation if applicable. Provide any relevant specification or other documentation if applicable.
validations: validations:
required: false required: false
- type: 'checkboxes' - type: 'checkboxes'
id: 'checklist' id: 'checklist'
attributes: attributes:
label: | label: |
Pre-Submission Checklist Pre-Submission Checklist
description: | description: |
By submitting this issue confirm all of the following. By submitting this issue confirm all of the following.
options: options:
- label: | - label: |
I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct) I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct)
required: true required: true
- label: | - label: |
This is a bug report and not a support request This is a bug report and not a support request
required: true required: true
- label: | - label: |
I have read the security policy and this bug report is not a security issue or security related issue I have read the security policy and this bug report is not a security issue or security related issue
required: true required: true
- label: | - label: |
I have either included the complete configuration file or I am sure it's unrelated to the configuration I have either included the complete configuration file or I am sure it's unrelated to the configuration
required: true required: true
- label: | - label: |
I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the [Troubleshooting Sanitization](https://www.authelia.com/r/sanitize) reference guide I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the [Troubleshooting Sanitization](https://www.authelia.com/r/sanitize) reference guide
required: true required: true
- label: | - label: |
I have checked for related proxy or application logs and included them if available I have checked for related proxy or application logs and included them if available
required: true required: true
- label: | - label: |
I have checked for related issues and checked the documentation I have checked for related issues and checked the documentation
required: true required: true
... ...

View File

@ -20,50 +20,50 @@ body:
id: 'description' id: 'description'
attributes: attributes:
label: | label: |
Description Description
description: | description: |
Describe the feature Describe the feature
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'use-case' id: 'use-case'
attributes: attributes:
label: | label: |
Use Case Use Case
description: | description: |
Provide a use case Provide a use case
validations: validations:
required: true required: true
- type: 'textarea' - type: 'textarea'
id: 'details' id: 'details'
attributes: attributes:
label: | label: |
Details Details
description: | description: |
Describe the feature in detail Describe the feature in detail
validations: validations:
required: false required: false
- type: 'textarea' - type: 'textarea'
id: 'documentation' id: 'documentation'
attributes: attributes:
label: | label: |
Documentation Documentation
description: | description: |
Provide any relevant specification or other documentation if applicable Provide any relevant specification or other documentation if applicable
validations: validations:
required: false required: false
- type: 'checkboxes' - type: 'checkboxes'
id: 'checklist' id: 'checklist'
attributes: attributes:
label: | label: |
Pre-Submission Checklist Pre-Submission Checklist
description: | description: |
By submitting this issue confirm all of the following By submitting this issue confirm all of the following
options: options:
- label: | - label: |
I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct) I agree to follow the [Code of Conduct](http://www.authelia.com/code-of-conduct)
required: true required: true
- label: | - label: |
I have checked for related issues and checked the documentation I have checked for related issues and checked the documentation
required: true required: true
... ...

View File

@ -6,7 +6,6 @@ import (
"net/url" "net/url"
"strconv" "strconv"
"strings" "strings"
"syscall"
) )
// NewAddress returns an *Address and error depending on the ability to parse the string as an Address. // NewAddress returns an *Address and error depending on the ability to parse the string as an Address.
@ -381,25 +380,6 @@ func (a *Address) NetworkAddress() string {
return a.url.Host return a.url.Host
} }
// Listener creates and returns a net.Listener.
func (a *Address) Listener() (ln net.Listener, err error) {
if a.url == nil {
return nil, fmt.Errorf("address url is nil")
}
if a.socket && a.umask != -1 {
umask := syscall.Umask(a.umask)
ln, err = net.Listen(a.Network(), a.NetworkAddress())
_ = syscall.Umask(umask)
return ln, err
}
return net.Listen(a.Network(), a.NetworkAddress())
}
// Dial creates and returns a dialed net.Conn. // Dial creates and returns a dialed net.Conn.
func (a *Address) Dial() (net.Conn, error) { func (a *Address) Dial() (net.Conn, error) {
if !a.valid || a.url == nil { if !a.valid || a.url == nil {

View File

@ -0,0 +1,28 @@
//go:build linux || freebsd || darwin || netbsd || solaris
package schema
import (
"fmt"
"net"
"syscall"
)
// Listener creates and returns a net.Listener.
func (a *Address) Listener() (ln net.Listener, err error) {
if a.url == nil {
return nil, fmt.Errorf("address url is nil")
}
if a.socket && a.umask != -1 {
umask := syscall.Umask(a.umask)
ln, err = net.Listen(a.Network(), a.NetworkAddress())
_ = syscall.Umask(umask)
return ln, err
}
return net.Listen(a.Network(), a.NetworkAddress())
}

View File

@ -0,0 +1,17 @@
//go:build !linux && !freebsd && !darwin && !netbsd && !solaris
package schema
import (
"fmt"
"net"
)
// Listener creates and returns a net.Listener.
func (a *Address) Listener() (ln net.Listener, err error) {
if a.url == nil {
return nil, fmt.Errorf("address url is nil")
}
return net.Listen(a.Network(), a.NetworkAddress())
}