Commit graph

43 commits

Author SHA1 Message Date
f5fb729ce7 port bot to rust, upgrade response, and cut away some of the tf cruft 2022-02-06 19:16:08 -05:00
0a37eff047 switch all interactions registrations to global 2022-02-04 21:32:22 -05:00
68b2b7323b fix tests, add /roleypoly and /pickable-roles handlers 2022-02-04 11:16:18 -05:00
544ef1b2f0 fix interactions, apparently cfw doesn't speak Buffer 2022-02-03 22:57:37 -05:00
5123fba74d fix ui_public_uri in prod 2022-02-01 18:13:32 -05:00
a008dbcc42 add DISCORD_PUBLIC_KEY binding 2022-01-31 21:50:26 -05:00
3291f9aacc
big overhaul (#474)
* miniflare init

* feat(api): add tests

* chore: more tests, almost 100%

* add sessions/state spec

* add majority of routes and datapaths, start on interactions

* nevermind, no interactions

* nevermind x2, tweetnacl is bad but SubtleCrypto has what we need apparently

* simplify interactions verify

* add brute force interactions tests

* every primary path API route is refactored!

* automatically import from legacy, or die trying.

* check that we only fetch legacy once, ever

* remove old-src, same some historic pieces

* remove interactions & worker-utils package, update misc/types

* update some packages we don't need specific pinning for anymore

* update web references to API routes since they all changed

* fix all linting issues, upgrade most packages

* fix tests, divorce enzyme where-ever possible

* update web, fix integration issues

* pre-build api

* fix tests

* move api pretest to api package.json instead of CI

* remove interactions from terraform, fix deploy side configs

* update to tf 1.1.4

* prevent double writes to worker in GCS, port to newer GCP auth workflow

* fix api.tf var refs, upgrade node action

* change to curl-based script upload for worker script due to terraform provider limitations

* oh no, cloudflare freaked out :(
2022-01-31 20:35:22 -05:00
26bc74bcbc fix(interactions): add async responses 2021-08-07 18:00:20 -04:00
3601d435b2 chore: update discord-interactions terraform module 2021-08-02 20:21:53 -04:00
066f68ffef
feat: Slash Commands (#337)
* feat: add discord interactions worker

* feat(interactions): update CI/CD and terraform to add interactions

* chore: fix lint issues

* chore: fix build & emulation

* fix(interactions): deployment + handler

* chore: remove worker-dist via gitignore

* feat: add /pickable-roles and /pick-role basis

* feat: add pick, remove, and update the general /roleypoly command

* fix: lint missing Member import
2021-08-01 20:26:47 -04:00
b6172b4af0 chore: deploy bot to stage 2021-07-09 04:37:03 -05:00
94ab6d9907 chore: bump terraform version to 1.0.1 + packages 2021-06-30 07:57:20 -04:00
bfc96b0750
feat(api): add /sync-from-legacy route (#192)
* feat(api): add /sync-from-legacy route

* chore: remove extraneous dockerfile

* chore: remove extraneous dockerfile build

* chore: remove extraneous dockerfile build matrix
2021-03-22 16:54:33 -04:00
8431df784f chore: commit forgotten terraform changes for allowed_callback_hosts 2021-03-13 16:02:10 -05:00
2ff6588030
Refactor node packages to yarn workspaces & ditch next.js for CRA. (#161)
* chore: restructure project into yarn workspaces, remove next

* fix tests, remove webapp from terraform

* remove more ui deployment bits

* remove pages, fix FUNDING.yml

* remove isomorphism

* remove next providers

* fix linting issues

* feat: start basis of new web ui system on CRA

* chore: move types to @roleypoly/types package

* chore: move src/common/utils to @roleypoly/misc-utils

* chore: remove roleypoly/ path remappers

* chore: renmove vercel config

* chore: re-add worker-types to api package

* chore: fix type linting scope for api

* fix(web): craco should include all of packages dir

* fix(ci): change api webpack path for wrangler

* chore: remove GAR actions from CI

* chore: update codeql job

* chore: test better github dar matcher in lint-staged
2021-03-12 18:04:49 -05:00
df05e23303 chore: bump terraform providers 2021-01-10 15:21:58 -05:00
8c9243b736 infra: set public_uri vars in repo instead of from secrets 2020-12-21 05:37:36 -05:00
c7381c3d66 chore(tf): rename url_map due to upstream bugs, attempt to not modify it 2020-12-18 15:53:38 -05:00
8ddf8e6aac chore(tf): bump google provider 2020-12-18 13:43:55 -05:00
ba52f7229d fix(tf): regex for matching domain suffix 2020-12-18 13:17:13 -05:00
d9508b0b41 blackhole non-roleypoly traffic 2020-12-13 13:13:13 -05:00
63a377867b tf fmt upon cf origin cert.tf 2020-12-11 00:21:46 -05:00
18583f145a add cf origin certs, swap LB to HTTPS 2020-12-11 00:16:58 -05:00
961989197c add bot deploy 2020-12-11 00:16:03 -05:00
473031150b terraform fmt 2020-12-07 22:53:02 -05:00
afdf331070 fix default tagging for cloud run 2020-12-07 22:49:54 -05:00
e4b80db558 removing trailing slash from mappings 2020-12-06 23:26:10 -05:00
853aa3ca00 use region mapper for artifact urls 2020-12-06 23:12:56 -05:00
6ed7bda678 fix tags.tfvars pathname 2020-12-06 22:57:43 -05:00
d8bda6fb43 try pulling secrets from gcloud for tf 2020-12-06 22:36:11 -05:00
146269944a terraform fmt 2020-12-06 18:07:44 -05:00
95a5732457 more ci/cd work, build worker and publish 2020-12-06 17:59:24 -05:00
c25943dfa0 adjust tf to support digest tags 2020-12-06 08:46:16 -05:00
ab8ae622eb fix terraform web lb IP mappings 2020-12-06 07:25:21 -05:00
4ef4badec3 expose public URI routes in ui 2020-12-06 07:24:46 -05:00
b62166abda ui container fixes 2020-12-06 06:26:43 -05:00
7ad719895d add GAR docker push for google cloud stuff 2020-12-06 05:41:18 -05:00
8870f6b640 make terraform stuff 2020-12-06 04:20:12 -05:00
9eeb946389 initial port to cfworkers i guess 2020-12-03 00:32:07 -05:00
ab9fe30b42 start redoing ci/cd and devops 2020-12-02 21:44:49 -05:00
c7afd84e1e chore: prettier shell stuff 2020-10-11 19:10:05 -04:00
70fa51d4a1 chore: prettier 2020-10-10 04:36:22 -04:00
ec505739c8 temp tf 2020-10-09 10:54:55 -04:00