From 6cdec5d551506c2acd88e143ce0d213dd7d20533 Mon Sep 17 00:00:00 2001 From: Corey Goodfred Date: Thu, 25 Apr 2024 10:13:47 -0400 Subject: [PATCH] [COST-4807] Masu trino query readonly user --- koku/masu/api/trino.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koku/masu/api/trino.py b/koku/masu/api/trino.py index bb51b8b765..9ce2791678 100644 --- a/koku/masu/api/trino.py +++ b/koku/masu/api/trino.py @@ -50,7 +50,7 @@ def trino_query(request): LOG.info(msg) with trino.dbapi.connect( - host=settings.TRINO_HOST, port=settings.TRINO_PORT, user="admin", catalog="hive", schema=schema_name + host=settings.TRINO_HOST, port=settings.TRINO_PORT, user="readonly", catalog="hive", schema=schema_name ) as conn: cur = conn.cursor() cur.execute(query)