Commit Graph

3390 Commits (5e43e0fcfb02c0b7d4a293307949d3d66e93f48e)

Author SHA1 Message Date
Amir Zarrinkafsh 6daeaf4e47
ci(buildkite): add concurrency limits to build and test steps (#1751)
Due to the unpredictability of changes that Renovate can submit this PR will allow us to control the number of jobs that will run simultaneously per step.
2021-02-22 11:13:51 +11:00
Amir Zarrinkafsh 74721a9f41
feat: go:embed static assets (#1733)
* feat: go:embed static assets

Go 1.16 introduced the ability to embed files within a generated binary directly with the go tool chain. This simplifies our dependencies and the significantly improves the development workflow for future developers.

Key points to note:

Due to the inability to embed files that do not reside within the local package we need to duplicate our `config.template.yml` within `internal/configuration`.

To avoid issues with the development workflow empty mock files have been included within `internal/server/public_html`. These are substituted with the respective generated files during the CI/CD and build workflows.

* fix(suites): increase ldap suite test timeout

* fix(server): fix swagger asset CSP
2021-02-22 10:07:06 +11:00
James Elliott 8bc7ef5d8f
release: v4.26.2 (#1736) 2021-02-22 09:02:15 +11:00
renovate[bot] c343e53dd6
build(deps): update dependency @types/node to v14.14.31 (#1734)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-20 14:55:11 +11:00
renovate[bot] afc2af86ed
build(deps): update dependency @types/node to v14.14.30 (#1732)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-19 14:34:29 +11:00
renovate[bot] f411abac1b
build(deps): update dependency @types/node to v14.14.29 (#1731)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-19 14:13:22 +11:00
renovate[bot] 1f16f0945a
build(deps): update arm64v8/alpine docker tag to v3.13.2 (#1727)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-18 14:09:39 +11:00
renovate[bot] e8e030ad2f
build(deps): update arm32v7/alpine docker tag to v3.13.2 (#1729)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-18 12:52:08 +11:00
renovate[bot] 79b2b742a8
build(deps): update alpine docker tag to v3.13.2 (#1728)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-18 10:49:39 +11:00
renovate[bot] a6215c03b7
build(deps): update dependency @types/node to v14.14.28 (#1725)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-15 09:45:42 +11:00
Amir Zarrinkafsh 2502b40cd6
fix(web): fix otp input box with themes (#1723)
#1584 introduced a regression due to the way layouts are addressed with [CSS normalization](https://material-ui.com/components/css-baseline/#layout).

This PR ensures that the OTP input box will remain a `content-box` to avoid any text display and box sizing issues caused by padding.

The OTP input has also been changed to only accept numbers.

Fixes #1720.
2021-02-13 15:31:57 +11:00
renovate[bot] 361705738a
build(deps): update dependency @types/react-dom to v17.0.1 (#1722)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 12:26:56 +11:00
renovate[bot] 056faf8857
build(deps): update dependency @types/react to v17.0.2 (#1721) 2021-02-13 11:57:32 +11:00
renovate[bot] 53c5529d28
build(deps): update dependency @types/node to v14.14.27 (#1719)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-13 00:30:19 +11:00
Amir Zarrinkafsh 2c32343885
release: v4.26.1 (#1718) 2021-02-12 22:15:01 +11:00
Amir Zarrinkafsh 59fa332088
build(deps): update swagger-ui to v3.43.0 (#1717) 2021-02-12 21:16:46 +11:00
Amir Zarrinkafsh 683c4a70bf
fix(web): improve 2fa enrollment process (#1706)
* refactor(web): improve 2fa enrollment process

This PR will change some of the wording and colours for the 2FA processes in order to provide more clarity and address some accessibility issues for end users.

The following is a summary of the changes:

* One-Time Password ⭢ Time-based One-Time Password
* Security Key ⭢ Security Key - U2F

![Screenshot_2021-02-02-09-36-17](https://user-images.githubusercontent.com/3339418/107138185-17656100-6967-11eb-8fac-9e75c7a82d09.png)


* QRCode ⭢ QR Code

![Screenshot_2021-02-07-05-07-25](https://user-images.githubusercontent.com/3339418/107138196-29df9a80-6967-11eb-811f-d77c9bb0159e.png)

* `Not registered yet?` text to display `Lost device?` if a user has already registered a device of said type

![Screenshot_2021-02-02-10-24-54](https://user-images.githubusercontent.com/3339418/107138205-395ee380-6967-11eb-8826-83e1438dd146.png)

* Change button and text colour in e-mails that Authelia generates
* Change Authelia email footer to be more security conscious

![Screenshot_2021-02-07-04-51-40](https://user-images.githubusercontent.com/3339418/107138211-4085f180-6967-11eb-890b-9d931bd1ce76.png)

The docs have also been updated to clarify the 2fa device enrollment limitation which only allows users to register one of each device type concurrently.

Closes #1560.
2021-02-12 16:59:42 +11:00
renovate[bot] f188bfb1dc
build(deps): update dependency @types/node to v14.14.26 (#1716)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 14:32:41 +11:00
Amir Zarrinkafsh 8c79e6beca
ci(buildkite): utilise conventional-changelog for release notes (#1714)
Instead of generating our changelog based on crude modifications utilising git log we now utilise conventional-changelog.

conventional-changelog utilises the angular commit structure to categorise and display the changelog for 3 types (fix,feat,perf) and each of the change scopes are identified in the changelog too.

An example of the output for v4.26.0 can be found below:

# [4.26.0](https://github.com/authelia/authelia/compare/v4.25.2...v4.26.0) (2021-02-02)

### Bug Fixes

* **handlers:** refresh user details on all domains ([#1642](https://github.com/authelia/authelia/issues/1642)) ([60ff16b](60ff16b518))

### Docker Container
* `docker pull authelia/authelia:4.26.0`
2021-02-12 14:00:36 +11:00
renovate[bot] 371d252ff6
build(deps): update dependency typescript to v4.1.5 (#1713)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 09:56:47 +11:00
renovate[bot] de3a67d300
build(deps): update dependency @types/chai to v4.2.15 (#1712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 09:33:21 +11:00
renovate[bot] 7b328e729d
build(deps): update dependency typescript to v4.1.4 (#1710)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 14:11:41 +11:00
renovate[bot] 2d978f6032
build(deps): update dependency @craco/craco to v6.1.1 (#1705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-07 12:55:54 +11:00
allcontributors[bot] 1733762f68
docs: add knnnrd as a contributor (#1703)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-02-05 14:41:39 +11:00
allcontributors[bot] b963e3c9a0
docs: add laurivosandi as a contributor (#1702)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-02-05 14:37:34 +11:00
allcontributors[bot] eec6a626af
docs: add TheCatLady as a contributor (#1701)
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
* fix skipCi option

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-02-05 14:30:44 +11:00
James Elliott 9e1b6ba82e
ci: consider .all-contributorsrc a docs file for the pipeline (#1704)
* ci: consider .all-contributorsrc a docs file for the pipeline

This change prevents the unit/integration testing and image deployment similar to other docs only changes.
2021-02-05 14:26:16 +11:00
Amir Zarrinkafsh f60af69187
build(deps): update swagger-ui to v3.42.0 (#1700) 2021-02-05 10:21:18 +11:00
renovate[bot] a1eb547620
build(deps): update dependency @types/node to v14.14.25 (#1697) 2021-02-05 07:50:25 +11:00
renovate[bot] 6ec73901db
build(deps): update dependency chai to v4.3.0 (#1698)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 06:36:08 +11:00
Amir Zarrinkafsh aac5170ddc
ci: remove dependabot (#1696)
da5892faad introduced renovate to Authelia.
Now that it has been evaluated dependabot is no longer necessary and can be removed.
2021-02-04 13:06:23 +11:00
renovate[bot] 0b4f54081e
build(deps): update dependency @types/node to v14.14.24 (#1695)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 12:19:50 +11:00
renovate[bot] 244d6eab2a
build(deps): update dependency @types/node to v14.14.23 (#1693)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 11:10:16 +11:00
renovate[bot] 4802b096d5
build(deps): update dependency react-scripts to v4.0.2 (#1691)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 08:38:18 +11:00
renovate[bot] f5f2bbf129
build(deps): update dependency @types/react to v17.0.1 (#1687)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 12:06:58 +11:00
Amir Zarrinkafsh ac92643212
test(handlers): add health check to coverage build (#1684)
* test(handlers): add health check to coverage build

This change ensures that the integration test container also utilises the health check script to ensure coverage for this area of code.

* update health check script for coverage container

* remove start period and ignore cert check
2021-02-03 10:17:46 +11:00
renovate[bot] 23f8a059fe
build(deps): update traefik docker tag to v2.4.2 (#1685)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 09:42:29 +11:00
Amir Zarrinkafsh 5eebeb68fc
build(deps): update swagger-ui to v3.41.1 (#1683) 2021-02-02 19:21:03 +11:00
Amir Zarrinkafsh 182ada6fff
release: v4.26.0 (#1682) 2021-02-02 12:23:37 +11:00
James Elliott 60ff16b518
fix(handlers): refresh user details on all domains (#1642)
* fix(handlers): refresh user details on all domains 

* previously sessions only got checked for updated details if the domain had group subjects attached
* this meant disabled or deleted accounts did not get detected until the session expired or the user visited a domain protected by a group subject
* this patch fixes this issue and simplifies some logic surrounding the check

* add tests

simplify IsStringSlicesDifferent so it only iterates once

* add another test for IsStringSlicesDifferent
2021-02-02 12:01:46 +11:00
renovate[bot] 3d6a9dfca4
build(deps): update traefik docker tag to v2.4.1 (#1681)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-02 10:35:49 +11:00
Amir Zarrinkafsh d17c7e7fc0
refactor(suites): simplify kubernetes suite (#1680)
This PR achieves the following goals:
* Utilise upstream version of kind instead of a patched version which allows binding to networks other than the default "kind"
* Utilises the registry cache which is setup one level above the kind cluster

The former point was required to successfully run our integration tests in a Kubernetes environment, however this is now possible without running a patched version of kind.

The second point is because DockerHub has introduced rate limiting for container downloads. If there are a large number of CI jobs nodes may occasionally be rejected due to the Kubernetes suite not pulling down from the registry cache.
2021-02-02 09:53:44 +11:00
Amir Zarrinkafsh 968fffb7fe
ci(renovate): enable auto rebase (#1679)
The initial deps backlog has mostly been addressed now, this along with some reshuffling and changes to node jobs/priority means we should be able to turn auto rebase back on.
2021-01-31 20:43:32 +11:00
renovate[bot] f1664fea00
build(deps): update module spf13/cobra to v1 (#1676)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 20:27:06 +11:00
renovate[bot] d2c1e6afa5
build(deps): update module yaml to v2.4.0 (#1671)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 14:18:46 +11:00
renovate[bot] 895b69d871
build(deps): update module sirupsen/logrus to v1.7.0 (#1667)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 14:00:57 +11:00
renovate[bot] cfb1ee020e
build(deps): update module pquerna/otp to v1.3.0 (#1665)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 13:44:15 +11:00
renovate[bot] 6a0ed57196
build(deps): update module otiai10/copy to v1.4.2 (#1664)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 13:30:22 +11:00
renovate[bot] c53e590585
build(deps): update module jackc/pgx/v4 to v4.10.1 (#1663)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 13:12:26 +11:00
renovate[bot] 0baf8b808a
build(deps): update module fasthttp/router to v1.3.5 (#1662)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 12:57:08 +11:00