Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Dougherty <[email protected]>
  • Loading branch information
brendar committed Nov 27, 2023
1 parent ab9da01 commit f107370
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/local/scripts/vtgate-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ vtgate \
--tablet_types_to_wait PRIMARY,REPLICA \
--service_map 'grpc-vtgateservice' \
--pid_file $VTDATAROOT/tmp/vtgate.pid \
--mysql_auth_server_impl none \
--mysql_auth_server_impl static \
--mysql_auth_server_static_file /home/spin/src/github.com/Shopify/vitess/examples/local/mysql_auth_server_static_creds.json \
--mysql_auth_static_reload_interval 5s \
--schema_change_signal_user mysql_user \
> $VTDATAROOT/tmp/vtgate.out 2>&1 &

# Block waiting for vtgate to be listening
Expand Down
4 changes: 4 additions & 0 deletions examples/local/scripts/vttablet-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ vttablet \
--pid_file $VTDATAROOT/$tablet_dir/vttablet.pid \
--vtctld_addr http://$hostname:$vtctld_web_port/ \
--disable_active_reparents \
--enforce-tableacl-config \
--table-acl-config-reload-interval 5s \
--queryserver-config-strict-table-acl \
--table-acl-config /home/spin/src/github.com/Shopify/vitess/examples/local/table_acl.json \
> $VTDATAROOT/$tablet_dir/vttablet.out 2>&1 &

# Block waiting for the tablet to be listening
Expand Down
19 changes: 19 additions & 0 deletions examples/local/table_acl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"table_groups": [
{
"name": "all-tables",
"table_names_or_prefixes": [
"%"
],
"admins": [
"mysql_user"
],
"readers": [
"mysql_user"
],
"writers": [
"mysql_user"
]
}
]
}

0 comments on commit f107370

Please sign in to comment.