Commit Graph

66 Commits

Author SHA1 Message Date
Gustavo Trott
520c76007a Move Hasura password path from /usr/share/bbb-graphql-server/admin-secret to /etc/default/bbb-graphql-server-admin-pass
It was recommended by Danimo because /etc is for mutable stuff

It also adds comments with context about this file

The owner is set to root:root and permission 600 to be only readable by root (also Danimo suggestion)
2024-09-10 15:01:57 -03:00
Gustavo Trott
88057f5bc8 add a messaged to confirm it finished after-install 2024-09-02 15:07:28 -03:00
Gustavo Trott
ac043b93a5 try to fix tests timeout error 2024-09-02 15:03:08 -03:00
Gustavo Trott
48c891450a
build: relax bbb-graphql-server dir permission (#21085)
* relax bbb-graphql-server dir permission

* move gql-server dir permission
2024-08-30 18:08:51 -04:00
Gustavo Trott
4f22dca3de
build: relax bbb-graphql-server dir permission (#21084) 2024-08-30 17:56:58 -04:00
Gustavo Trott
f96a400ca4
build: remove permission for /usr/share/bbb-graphql-server/ (#21083) 2024-08-30 17:27:56 -04:00
Gustavo Trott
acff8ba0f8
refactor (build/gql-server): Introduce Hasura override config and a file to store Adm Password (#20993)
* Introduce Hasura override config and a password file

* Add message when set a password to Hasura

* add logs to inspect errors

* fix config file name

* test changing key file owner

* test without override file

* fix print status

* store password as env var

* changes suggested in PR
2024-08-30 10:49:58 -04:00
Gustavo Trott
7e0295d0a9 Removes old PG user/tabled created for Meteor auth 2024-07-19 11:38:46 -03:00
Gustavo Trott
b14c643def
build(gql): Upgrade Hasura and refactor sh scripts (#20699) 2024-07-12 13:32:20 -04:00
Gustavo Trott
7f68928790
build(fix): force Hasura to always restart on upgrade (#20689) 2024-07-12 10:53:21 -04:00
Gustavo Trott
2c2d595212 Big refactor on Graphql authentication 2024-07-10 18:30:01 -03:00
Gustavo Trott
e92dacd039
fix (build/gql-server): Hasura trying to apply metadata using wrong password (#20637)
* fix: Hasura trying to use wrong password to apply metadata

* Print password was set only when it generated a new one
2024-07-05 10:26:54 -04:00
Gustavo Trott
8943e22564
Increase Hasura keepalive delay to 10 (was 5) (#20599) 2024-06-28 16:50:44 -03:00
Tiago Jacobs
b3a108fba4 Increase maximum number of open files 2024-06-20 19:02:24 -03:00
Gustavo Trott
1465d3dca3
refactor (gql-server): Set some configs for Max PG connections and Nginx max workers aiming to support more users (#20549)
* Set hasura max connections with pg to 100

* set nginx worker_connections from 4k to 10k

* Update bbb-graphql-server/metadata/databases/databases.yaml

* remove deprecated config

* set pg max connections up to 300

---------

Co-authored-by: Tiago Jacobs <tiago.jacobs@gmail.com>
2024-06-20 16:41:47 -03:00
Gustavo Trott
24219ea5c8 Upgrade Hasura to version v2.40.0 2024-06-10 10:59:13 -03:00
Gustavo Trott
ca4717c92d set hasura cli config with correct password 2024-05-08 11:44:44 -03:00
Gustavo Trott
2cc54680af fix echo with error 2024-05-07 15:10:31 -03:00
Gustavo Trott
deea562e23 Avoid changing hasura password on every upgrade 2024-05-07 14:57:19 -03:00
Gustavo Trott
6d100cd19e Add yq as graphql-server dependency 2024-05-07 14:29:59 -03:00
Gustavo Trott
ff9bcc774b Generate a Hasura random password on after-install.sh 2024-05-07 14:29:35 -03:00
Gustavo Trott
2bbc850093 set password on correct file 2024-05-07 13:45:26 -03:00
Gustavo Trott
a1d80e8c8f use sed to change config.yaml 2024-05-07 13:35:12 -03:00
Gustavo Trott
76e6b731bf set yq as dependency for bbb-graphql-server build 2024-05-07 13:23:38 -03:00
Gustavo Trott
ac4608ca65 Set a different password for Hasura admin 2024-05-07 11:39:34 -03:00
Gustavo Trott
d74db21037 Set postgres host as 127.0.0.1 instead of localhost 2024-05-07 10:16:14 -03:00
Gustavo Trott
d3d12c7bf1 Move building files to /build/... directory 2024-05-03 15:56:37 -03:00
Gustavo Trott
62da41ab90 Create staging/etc/default/bbb-graphql-server in case its missing 2024-05-03 11:12:55 -03:00
Gustavo Trott
ea82508b5d introduces a nginx cache for /api/rest/(clientStartupSettings|clientSettings) 2024-05-03 10:27:26 -03:00
Gustavo Trott
020101d96c Force hasura cli v2.36.2 to avoid error 2024-03-25 10:36:52 -03:00
Anton Georgiev
c9ce945aa5
Merge branch 'v3.0.x-release' into cleanup/runuser 2024-02-20 13:38:33 -05:00
Gustavo Trott
4e3a28f227
Merge pull request #19562 from gustavotrott/bump-hasura-2.37.0
Bump Hasura from 2.36.0 to 2.37.0
2024-02-02 11:41:56 -03:00
Gustavo Trott
b1c90f3733 Bump Hasura from 2.36.0 to 2.37.0 2024-02-02 11:14:47 -03:00
Gustavo Trott
8ac28cfe81 Always give permisson for Frontend user in db 2024-02-02 10:52:50 -03:00
Gustavo Trott
6e43c0b05c
Graphql: Create a db user (read-only) for Frontend (#19537) 2024-01-30 12:35:39 -03:00
Gustavo Trott
33a177b841 Bump Hasura to v2.36.0 2023-12-13 10:31:33 -03:00
Daniel Molkentin
4f5b773798 cleanup: use runuser instead of sudo
In a lot of place where sudo is used, it is meant to drop privileges
coming from root, instead of gaining privileges or lateral privilege
moves (e.g. postgres). This is what runuser is for, so use that.
2023-11-28 15:26:12 +00:00
Gustavo Trott
73ed4ad294
refactor (graphql-server): Hasura cli skip update check (#18853)
* Hasura-cli add param --skip-update-check

* Upgrade Hasura version to 2.33.4
2023-09-26 14:24:36 -03:00
Gustavo Trott
be8f224eea
Improve graphql database install (#18821) 2023-09-21 10:53:13 -03:00
Gustavo Trott
503ddf0565
graphql-server requires net-tools 2023-09-19 13:32:43 -03:00
Anton Georgiev
8919c3cbf6
build: start bbb-graphql-server before bbb-apps-akka (#18773)
* build: start bbb-graphql-server before bbb-apps-akka

* build: drop yq 3 requirement on "develop"

* build: add netstat as a dependency for grapghql-server
2023-09-19 11:53:15 -04:00
Gustavo Trott
6c97385823
Improve delay for Hasura metadata apply (#18791) 2023-09-15 12:51:47 -03:00
Gustavo Trott
61c4792b8a
Merge pull request #18779 from gustavotrott/fix-userlist-sorting
fix (graphql): Userlist sorting uppercase wrongly (introduces user.nameSortable)
2023-09-14 15:51:02 -03:00
Gustavo Trott
6132656daf Avoid applying metadata before Hasura is ready 2023-09-14 10:41:40 -03:00
Gustavo Trott
2f53dea4a4 Use nameSortable to orderBy userlist 2023-09-14 09:31:49 -03:00
Gustavo Trott
94328e7e77 Upgrade Hasura to version 2.32.1 and change hasura-cli path 2023-08-29 11:01:23 -03:00
Gustavo Trott
8d3f8be6ff Fix creating database hasura_app twice 2023-08-23 09:26:32 -03:00
Anton Georgiev
a2a9041993
build: /.dockerenv tweak for bbb-graphql-server
continuation from #18548
2023-08-14 16:01:52 -04:00
Anton Georgiev
e1f8117146
build: /.dockerenv tweak for bbb-graphql-server 2023-08-14 15:37:22 -04:00
Gustavo Trott
77b784446c Set all date columns as timestamp with time zone 2023-08-08 10:41:16 -03:00