Commit Graph
100 Commits
Author SHA1 Message Date
Gabe Kangas 3a401991cf Explicitly set AP post as public. Closes #2112 2022-11-14 20:16:45 -08:00
Gabe KangasandGitHub 3fb1bb575b Tweak Renovate options for automerge 2022-10-26 19:00:50 -07:00
Gabe Kangas 0af1db73a4 Revert "Tweak Renovate options for automerge"
This reverts commit 1e0d1575d5.
2022-10-26 19:00:02 -07:00
Gabe KangasandGitHub 1e0d1575d5 Tweak Renovate options for automerge 2022-10-26 18:58:47 -07:00
Gabe KangasandGitHub cade15ea1b Run API tests on pull requests 2022-10-12 15:34:35 -07:00
Gabe KangasandGitHub f7ced7bb58 Fetch all branches in webv2 build 2022-10-02 13:30:49 -07:00
Gabe Kangas 128d6c011d Set script as +x 2022-10-02 13:17:49 -07:00
Gabe KangasandGitHub e24b431cfc Add nightly build of the webv2 branch 2022-10-02 13:11:34 -07:00
Gabe Kangas 2ff5f31597 Revert "Add va-api support in docker (#2072)"
This reverts commit 8e786a47f0.
2022-10-01 20:16:15 -07:00
Gabe KangasandGitHub 99d034b1a5 Replace -> ReplaceAll 2022-09-21 10:24:16 -07:00
Gabe KangasandGitHub 4ed563beed Make linter run on pull_request events 2022-09-21 10:22:44 -07:00
Gabe KangasandGitHub f1f85fb3e3 Update link in comment. 2022-09-13 23:08:47 -07:00
Gabe KangasandGitHub e87ece6711 Mention t-shirts. 2022-09-12 15:33:40 -07:00
Gabe KangasandGitHub a7e8fb6659 Update message 2022-09-12 14:56:12 -07:00
Gabe KangasandGitHub cc0c48a9a5 Add workflow to auto-comment good first issues. 2022-09-12 14:53:14 -07:00
Gabe Kangas 20e6b87a35 Remove package-comments rule 2022-08-26 19:30:35 -07:00
Gabe Kangas 7541250d8e Remove unused linter 2022-08-26 19:20:45 -07:00
Gabe KangasandGitHub 87ca4c9434 Do not run go linting on web-only changes 2022-08-26 14:27:37 -07:00
Gabe Kangas 9a1d1873ac Migrate issue template to be a form 2022-08-21 22:58:58 -07:00
Gabe KangasandGitHub 94d52dde57 Update bug-report-feature-request.md 2022-08-21 16:16:05 -07:00
Gabe KangasandGitHub 8bd222e847 Do not run tests on web-only changes 2022-08-20 12:08:18 -07:00
Gabe Kangas 0e470d205a Add product definition to repo for reference 2022-08-15 15:05:31 -07:00
Gabe Kangas f3c608c937 Move baseBranches config option to top level 2022-08-15 08:39:44 -07:00
Gabe Kangas d32d741abf Limit chat display names to 30 characters. Closes #1919 2022-08-14 18:09:16 -07:00
Gabe Kangas c93d4fca08 Allow dependency updates to WIP webv2 branch 2022-08-14 17:48:11 -07:00
Gabe Kangas 9d45b0edf4 Host our own musl build toolchain 2022-08-05 12:18:21 -07:00
Gabe Kangas c7a35e9d02 Revert "Change how musl is downloaded/unarchived" as the problem is a
Github problem.

This reverts commit 59fab1b137.
2022-08-04 15:19:43 -07:00
Gabe Kangas 59fab1b137 Change how musl is downloaded/unarchived 2022-08-04 15:08:13 -07:00
Gabe Kangas 2402914000 Explicitly set an alpine build version + install tar into build env 2022-08-04 14:21:09 -07:00
Gabe Kangas 0a48492462 Remove unused query 2022-08-04 13:25:02 -07:00
Gabe KangasandGitHub ffd24ccccb Run test builds using recent Go 2022-08-04 08:53:12 -07:00
Gabe Kangas 0470403b71 Function has been re-exported for use 2022-08-03 11:30:06 -07:00
Gabe Kangas b2b77f5eb9 Fix creating table indexes 2022-08-03 10:31:14 -07:00
Gabe Kangas 5d34279862 Add util for ungraceful sql execs 2022-08-03 10:31:11 -07:00
Gabe KangasandGitHub eda62a91dc Messages table fixes to improve query performance (#2026)
* Move to yaml sqlc config

* Add util for ungraceful sql execs

* Fix messages schema + add indexes

* Add migration to drop+recreate messages table

* Create index only if does not exist

* Fix typo

* Unexport function
2022-08-03 10:21:55 -07:00
Gabe Kangas 0b5ddf433b Limit OTP requests to one per expiry window. Closes #2000 2022-08-02 13:31:41 -07:00
Gabe Kangas c40eaa47e9 Force origin test to always pass. Closes #2003 2022-08-02 13:04:23 -07:00
Gabe Kangas 643b54037b Do not log inactionable error. Closes #1992 2022-08-02 12:44:24 -07:00
Gabe KangasandGitHub 3951f23b55 Run BSD tests under macos-latest 2022-07-27 14:17:35 -07:00
Gabe Kangas 4b7367fdcc Set sqlite_omit_load_extension flag when building to disable sqlite feature 2022-07-27 14:09:41 -07:00
Gabe KangasandGitHub aead748c0d Use the race detector when running automated tests. 2022-07-19 21:09:45 -07:00
Gabe Kangas b75cb1784b Set ReadHeaderTimeout in http server 2022-07-18 11:08:49 -07:00
Gabe Kangas 2d44f86035 Add additional information to key verification error 2022-07-06 21:46:03 -07:00
Gabe Kangas 14f405bf58 Fix followers pagination UI 2022-07-05 12:53:21 -07:00
Gabe Kangas 3741196de6 Standardize endpoint name and fix doc. Closes #1966 2022-06-20 08:46:53 -07:00
Gabe Kangas 6ff8c89246 Move to the Eartlhy job for the nightly Docker build. Closes #1953 2022-06-20 08:08:03 -07:00
Gabe Kangas 2baad77c5a Support running tests within Earthly container 2022-06-20 08:04:04 -07:00
Gabe Kangas 62a580b72c Use Earthly setup action instead of manually downloading 2022-06-19 10:41:15 -07:00
Gabe Kangas 078462b246 Remove additional branching 2022-06-19 10:32:12 -07:00
Gabe Kangas a137d7ebb9 Support multi-platform docker builds with qemu 2022-06-18 23:05:50 -07:00
Gabe Kangas 233a2ccb2f Point to most recent earthly + cd to root on build 2022-06-18 20:46:05 -07:00
Gabe Kangas fce3672bc1 Add nightly build action that uses Earthly. Another step in #1953 2022-06-18 20:23:23 -07:00
Gabe Kangas d214f2390e Pass in the image and tag names separately from the version 2022-06-18 20:19:43 -07:00
Gabe Kangas ee118e905c Add Prometheus endpoint to OpenAPI spec 2022-06-13 13:33:35 -07:00
Gabe Kangas 0f4aab24a8 Tweaks for sig verify error message 2022-06-11 15:17:43 -07:00
Gabe Kangas d6814b516a Require auth middleware only on GET requests 2022-06-05 22:46:46 -07:00
Gabe Kangas 26eebf47d5 Pass back actual error payload 2022-06-05 22:45:20 -07:00
Gabe Kangas c841e4d32d Fix middleware attached to wrong endpoint 2022-06-04 22:41:25 -07:00
Gabe Kangas ab0a46cbd2 Change text to clarify following is on the fediverse 2022-06-04 11:36:09 -07:00
Gabe Kangas 677700414b Allow adjusting latency targets based on buffering events 2022-06-02 23:37:20 -07:00
Gabe KangasandGitHub af1e786c99 Limit seeking to live edge on play event to only if not previously playing. 2022-05-27 12:55:01 -07:00
Gabe KangasandGitHub 1bc12da73a Remove reference to unused var 2022-05-26 12:40:50 -07:00
Gabe KangasandGitHub 73cf043ed7 Reduce max rebuffer events + update log messages 2022-05-26 09:12:53 -07:00
Gabe Kangas afeef6f276 Return and pass around clock skew to be used in latency calculations.
Closes #1920
2022-05-23 15:17:41 -07:00
Gabe Kangas ade4d68c0d Return explicit http 200 2022-05-23 15:12:59 -07:00
Gabe Kangas 677bd9efe3 Re-add missing required auth middleware to callback 2022-05-23 12:34:47 -07:00
Gabe Kangas f097238e24 Remove log message 2022-05-23 12:27:09 -07:00
Gabe Kangas dcac6783dd Remove extra newline 2022-05-16 11:43:57 -07:00
Gabe Kangas d43e3d4e47 Completely give up latency compensation when the latency seems too wrong 2022-05-12 14:21:05 -07:00
Gabe Kangas c1b614ed49 Fix up the wasted CPU transcoding alert message 2022-05-11 17:00:23 -07:00
Gabe Kangas ed0e376bae Do not return a stream health overview if it is zero 2022-05-08 15:58:39 -07:00
Gabe Kangas 21b82ebb2c Fix invalid field name 2022-05-08 15:28:06 -07:00
Gabe KangasandGitHub d1cebb0d88 Increase linter timeout even more to try to fix github workflow error. 2022-05-02 07:01:55 -07:00
Gabe KangasandGitHub e95cf6bc72 Increase linter timeout 2022-05-01 11:53:57 -07:00
Gabe Kangas 2c47ddeef0 Optimize chat history query. Helps #1890 2022-05-01 00:07:33 -07:00
Gabe Kangas 8a343d0324 Remove extranious response 2022-04-30 23:16:48 -07:00
Gabe Kangas b6d575a286 Set value on cache miss 2022-04-30 23:16:08 -07:00
Gabe Kangas e6804d0233 Fix cache warming not firing. Closes #1889 2022-04-30 23:15:57 -07:00
Gabe KangasandGitHub 339d596fd3 Reduce the amount of chat backlog we keep. 2022-04-29 18:30:54 -07:00
Gabe KangasandGitHub cbbf2970c1 Fix typo 2022-04-27 23:16:09 -07:00
Gabe Kangas b378728eba Add mediaType to federated attachments + fix image description. For #1840 2022-04-27 16:35:36 -07:00
Gabe Kangas a1377c3338 Fix text 2022-04-27 15:09:28 -07:00
Gabe Kangas 7a503fc282 Add auth icon to chat menu. Closes #1879 2022-04-25 15:34:19 -07:00
Gabe Kangas 6ee88f8a7d Throw away latency values that seem invalid 2022-04-25 14:52:33 -07:00
Gabe Kangas b2b791b365 Migrate forbidden and suggested usernames list to string slice. Closes #1873 2022-04-25 14:31:29 -07:00
Gabe Kangas a29d6450cb Add stream health tip of latency buffer level 2022-04-25 14:31:28 -07:00
Gabe Kangas f34cc13225 Add link. Closes #1878 2022-04-25 14:31:28 -07:00
Gabe Kangas 465aeb5c38 Disable chat settings dropdown if chat is disabled. Closes #1875 2022-04-24 19:07:33 -07:00
Gabe Kangas 1e1faec982 Reduce the bandwidth ratio requirement to fire compensator 2022-04-23 18:50:18 -07:00
Gabe Kangas 529cba84fd Refactor migration to loop over each user instead of bulk inserts 2022-04-23 18:12:59 -07:00
Gabe Kangas 514fd17ed9 Access token migration 2022-04-23 18:12:58 -07:00
Gabe KangasandGitHub a082cf3a77 Fediverse-based authentication (#1846)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* Fediverse chat auth via OTP

* Increase validity time just in case

* Add fediverse auth into auth modal

* Text, validation, cleanup updates for fedi auth

* Fix typo

* Remove unused images

* Remove unused file

* Add chat display name to auth modal text
2022-04-22 17:23:14 -07:00
Gabe Kangas 7935bcf5f3 Guard against possible invalid tech usage 2022-04-22 10:49:13 -07:00
Gabe Kangas f173b8deca do not make migration failure fatal temporarily 2022-04-21 21:05:49 -07:00
b835de2dc4 IndieAuth support (#1811)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* don't redirect unless a URL is present

avoids redirecting to `undefined` if there was an error

* improve error message if owncast server URL isn't set

* fix IndieAuth PKCE implementation

use SHA256 instead of SHA1, generates a longer code verifier (must be 43-128 chars long), fixes URL-safe SHA256 encoding

* return real profile data for IndieAuth response

* check the code verifier in the IndieAuth server

* Linting

* Add new chat settings modal anad split up indieauth ui

* Remove logging error

* Update the IndieAuth modal UI. For #1273

* Add IndieAuth repsonse error checking

* Disable IndieAuth client if server URL is not set.

* Add explicit error messages for specific error types

* Fix bad logic

* Return OAuth-keyed error responses for indieauth server

* Display IndieAuth error in plain text with link to return to main page

* Remove redundant check

* Add additional detail to error

* Hide IndieAuth details behind disclosure details

* Break out migration into two steps because some people have been runing dev in production

* Add auth option to user dropdown

Co-authored-by: Aaron Parecki <aaron@parecki.com>
2022-04-21 14:55:26 -07:00
Gabe Kangas b86537fa91 Restore isModerator bool 2022-04-21 13:48:46 -07:00
Gabe Kangas dc4c905dd1 Allow specifying scroll behavior on initial chat history load 2022-04-18 23:48:05 -07:00
Gabe Kangas 61b07ab544 Lint 2022-04-18 23:48:05 -07:00
Gabe Kangas e6b5aecc8f Fix single column chat not scrolling. Closes #1830 2022-04-18 23:48:05 -07:00
Gabe Kangas e306c74520 Increase z-index 2022-04-17 12:47:07 -07:00