Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to tealbase Postgres contributing guide
# Welcome to Tealbase Postgres contributing guide

## Adding a new extension

Expand Down
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
The PostgreSQL License

Copyright (c) 2020, tealbase
Copyright (c) 2020, Tealbase

Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL tealbase BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF tealbase HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
IN NO EVENT SHALL Tealbase BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF Tealbase HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

tealbase SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND tealbase HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Tealbase SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND Tealbase HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,26 +129,26 @@ See all installation instructions in the [repo wiki](https://github.com/tealbase
TODO: find way to automate this
| | Postgres & Extensions | PgBouncer | PostgREST | WAL-G |
|---|:---:|:---:|:---:|:---:|
| tealbase Postgres | ✔️ | ❌ | ❌ | ✔️ |
| tealbase Postgres: PgBouncer Bundle | ✔️ | ✔️ | ❌ | ✔️ |
| tealbase Postgres: PostgREST Bundle | ✔️ | ❌ | ✔️ | ✔️ |
| tealbase Postgres: Complete Bundle | ✔️ | ✔️ | ✔️ | ✔️ |
| Tealbase Postgres | ✔️ | ❌ | ❌ | ✔️ |
| Tealbase Postgres: PgBouncer Bundle | ✔️ | ✔️ | ❌ | ✔️ |
| Tealbase Postgres: PostgREST Bundle | ✔️ | ❌ | ✔️ | ✔️ |
| Tealbase Postgres: Complete Bundle | ✔️ | ✔️ | ✔️ | ✔️ |

#### Availability
| | AWS ARM | AWS x86 | Digital Ocean x86 |
|---|:---:|:---:|:---:|
| tealbase Postgres | Coming Soon | Coming Soon | Coming Soon |
| tealbase Postgres: PgBouncer Bundle | Coming Soon | Coming Soon | Coming Soon |
| tealbase Postgres: PostgREST Bundle | Coming Soon | Coming Soon | Coming Soon |
| tealbase Postgres: Complete Bundle | Coming Soon | Coming Soon | Coming Soon |
| Tealbase Postgres | Coming Soon | Coming Soon | Coming Soon |
| Tealbase Postgres: PgBouncer Bundle | Coming Soon | Coming Soon | Coming Soon |
| Tealbase Postgres: PostgREST Bundle | Coming Soon | Coming Soon | Coming Soon |
| Tealbase Postgres: Complete Bundle | Coming Soon | Coming Soon | Coming Soon |

``` -->

## Motivation

- Make it fast and simple to get started with Postgres.
- Show off a few of Postgres' most exciting features.
- This is the same build we offer at [tealbase](https://tealbase.io).
- This is the same build we offer at [Tealbase](https://tealbase.io).
- Open a github issue if you have a feature request

## License
Expand Down
2 changes: 1 addition & 1 deletion amazon-arm64-nix.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ build {
"DOCKER_PASSWD=${var.docker_passwd}",
"DOCKER_IMAGE=${var.docker_image}",
"DOCKER_IMAGE_TAG=${var.docker_image_tag}",
"POSTGRES_tealbase_VERSION=${var.postgres-version}"
"POSTGRES_TEALBASE_VERSION=${var.postgres-version}"
]
use_env_var_file = true
script = "ebssurrogate/scripts/surrogate-bootstrap-nix.sh"
Expand Down
2 changes: 1 addition & 1 deletion ansible/files/envoy_config/lds.tealbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ resources:
json_format:
message: >-
`apikey` request header or query parameter is either
missing or invalid. Double check your tealbase `anon`
missing or invalid. Double check your Tealbase `anon`
or `service_role` API key.
hint: '%RESPONSE_CODE_DETAILS%'
json_format_options:
Expand Down
2 changes: 1 addition & 1 deletion ansible/files/envoy_config/lds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ resources:
json_format:
message: >-
`apikey` request header or query parameter is either
missing or invalid. Double check your tealbase `anon`
missing or invalid. Double check your Tealbase `anon`
or `service_role` API key.
hint: '%RESPONSE_CODE_DETAILS%'
json_format_options:
Expand Down
2 changes: 1 addition & 1 deletion ansible/files/permission_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def check_postgresql_mount():

def main():
parser = argparse.ArgumentParser(
prog="tealbase Postgres Artifact Permissions Checker",
prog="Tealbase Postgres Artifact Permissions Checker",
description="Checks the Postgres Artifact for the appropriate users and group memberships",
)
parser.add_argument(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Run tealbase tealbase-admin-agent salt on a schedule
Description=Run Tealbase tealbase-admin-agent salt on a schedule
Requires=tealbase-admin-agent_salt.service

[Timer]
Expand Down
2 changes: 1 addition & 1 deletion ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
- install-tealbase-internal
when: debpkg_mode or nixpkg_mode

- name: Install tealbase specific content
- name: Install Tealbase specific content
import_tasks: tasks/setup-tealbase-internal.yml
tags:
- install-tealbase-internal
Expand Down
2 changes: 1 addition & 1 deletion ansible/tasks/test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# cmd: sed -i.bak -e "s/pg_net,\ pgsodium,\ timescaledb/pg_net,\ timescaledb/g" -e "s/pgsodium.getkey_script=/#pgsodium.getkey_script=/g" /etc/postgresql/postgresql.conf
# when: debpkg_mode or stage2_nix

- name: Temporarily disable PG Sodium and tealbase Vault references in config
- name: Temporarily disable PG Sodium and Tealbase Vault references in config
become: yes
become_user: postgres
shell:
Expand Down
2 changes: 1 addition & 1 deletion ebssurrogate/scripts/chroot-bootstrap-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ cat << EOF > /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_TIMEOUT_STYLE="hidden"
GRUB_DISTRIBUTOR="tealbase postgresql"
GRUB_DISTRIBUTOR="Tealbase postgresql"
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset console=tty1 console=ttyS0 ipv6.disable=0"
EOF
}
Expand Down
2 changes: 1 addition & 1 deletion ebssurrogate/scripts/surrogate-bootstrap-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function setup_chroot_environment {
cp /tmp/chroot-bootstrap-nix.sh /mnt/tmp/chroot-bootstrap-nix.sh
chroot /mnt /tmp/chroot-bootstrap-nix.sh
rm -f /mnt/tmp/chroot-bootstrap-nix.sh
echo "${POSTGRES_tealbase_VERSION}" > /mnt/root/tealbase-release
echo "${POSTGRES_TEALBASE_VERSION}" > /mnt/root/tealbase-release

# Copy the nvme identification script into /sbin inside the chroot
mkdir -p /mnt/sbin
Expand Down
2 changes: 1 addition & 1 deletion migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Additionally, [tealbase/postgres](https://github.com/tealbase/postgres/blob/deve
- Migrations are append only. Never edit existing migrations once they are on master.
- Migrations in `migrations/db/migrations` have to be idempotent.
- Self contained components (gotrue, storage, realtime) may contain their own migrations.
- Self hosted tealbase users should update role passwords separately after running all migrations.
- Self hosted Tealbase users should update role passwords separately after running all migrations.
- Prod release is done by publishing a new GitHub release on master branch.

## Requirements
Expand Down
6 changes: 3 additions & 3 deletions migrations/db/init-scripts/00000000000000-initial-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
-- defaults to empty publication
create publication tealbase_realtime;

-- tealbase super admin
-- Tealbase super admin
alter user tealbase_admin with superuser createdb createrole replication bypassrls;

-- tealbase replication user
-- Tealbase replication user
create user tealbase_replication_admin with login replication;

-- tealbase read-only user
-- Tealbase read-only user
create role tealbase_read_only_user with login bypassrls;
grant pg_read_all_data to tealbase_read_only_user;

Expand Down
2 changes: 1 addition & 1 deletion migrations/db/init-scripts/00000000000001-auth-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ $$ language sql stable;
-- usage on auth functions to API roles
GRANT USAGE ON SCHEMA auth TO anon, authenticated, service_role;

-- tealbase super admin
-- Tealbase super admin
CREATE USER tealbase_auth_admin NOINHERIT CREATEROLE LOGIN NOREPLICATION;
GRANT ALL PRIVILEGES ON SCHEMA auth TO tealbase_auth_admin;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA auth TO tealbase_auth_admin;
Expand Down
2 changes: 1 addition & 1 deletion migrations/db/init-scripts/00000000000003-post-setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ BEGIN
END
$$;

-- tealbase dashboard user
-- Tealbase dashboard user
CREATE ROLE dashboard_user NOSUPERUSER CREATEDB CREATEROLE REPLICATION;
GRANT ALL ON DATABASE postgres TO dashboard_user;
GRANT ALL ON SCHEMA auth TO dashboard_user;
Expand Down
2 changes: 1 addition & 1 deletion migrations/schema-15.sql
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CREATE EXTENSION IF NOT EXISTS tealbase_vault WITH SCHEMA vault;
-- Name: EXTENSION tealbase_vault; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION tealbase_vault IS 'tealbase Vault Extension';
COMMENT ON EXTENSION tealbase_vault IS 'Tealbase Vault Extension';


--
Expand Down
2 changes: 1 addition & 1 deletion migrations/schema-17.sql
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ CREATE EXTENSION IF NOT EXISTS tealbase_vault WITH SCHEMA vault;
-- Name: EXTENSION tealbase_vault; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION tealbase_vault IS 'tealbase Vault Extension';
COMMENT ON EXTENSION tealbase_vault IS 'Tealbase Vault Extension';


--
Expand Down
2 changes: 1 addition & 1 deletion migrations/schema-orioledb-17.sql
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CREATE EXTENSION IF NOT EXISTS tealbase_vault WITH SCHEMA vault;
-- Name: EXTENSION tealbase_vault; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION tealbase_vault IS 'tealbase Vault Extension';
COMMENT ON EXTENSION tealbase_vault IS 'Tealbase Vault Extension';


--
Expand Down
2 changes: 1 addition & 1 deletion migrations/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ CREATE EXTENSION IF NOT EXISTS tealbase_vault WITH SCHEMA vault;
-- Name: EXTENSION tealbase_vault; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION tealbase_vault IS 'tealbase Vault Extension';
COMMENT ON EXTENSION tealbase_vault IS 'Tealbase Vault Extension';


--
Expand Down
32 changes: 32 additions & 0 deletions nix/apps.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ ... }:
{
perSystem =
{ self', ... }:
let
mkApp = attrName: binName: {
type = "app";
program = "${self'.packages."${attrName}"}/bin/${binName}";
};
in
{
# Apps is a list of names of things that can be executed with 'nix run';
# these are distinct from the things that can be built with 'nix build',
# so they need to be listed here too.
apps = {
start-server = mkApp "start-server" "start-postgres-server";
start-client = mkApp "start-client" "start-postgres-client";
start-replica = mkApp "start-replica" "start-postgres-replica";
# migrate-postgres = mkApp "migrate-tool" "migrate-postgres";
# sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
pg-restore = mkApp "pg-restore" "pg-restore";
local-infra-bootstrap = mkApp "local-infra-bootstrap" "local-infra-bootstrap";
dbmate-tool = mkApp "dbmate-tool" "dbmate-tool";
update-readme = mkApp "update-readme" "update-readme";
show-commands = mkApp "show-commands" "show-commands";
build-test-ami = mkApp "build-test-ami" "build-test-ami";
run-testinfra = mkApp "run-testinfra" "run-testinfra";
cleanup-ami = mkApp "cleanup-ami" "cleanup-ami";
trigger-nix-build = mkApp "trigger-nix-build" "trigger-nix-build";
};
};
}
Loading
Loading