#!/usr/bin/env bash
# Lab step 4: the YAML policy matches the action NAME. Arguments and resources are not consulted.
source /lab/env.sh
authz '{"actor":"lab-agent","action":"delete_all_records","resource":{"table":"customer_database"},"confidence":0.99}'
authz '{"actor":"lab-agent","action":"create_cleanup_job","resource":{"table":"customer_database"},"args":{"statement":"DROP TABLE customers"},"confidence":0.99}'
authz '{"actor":"lab-agent","action":"read_record","resource":{"path":"/home/app/.env"},"confidence":0.99}'
authz '{"actor":"lab-agent","action":"read_dot_env","resource":{"path":".env"},"confidence":0.99}'
authz '{"actor":"lab-agent","action":"read_secrets","resource":{"path":".env"},"confidence":0.99}'
authz '{"actor":"lab-agent","action":"clear_all_records","resource":{"table":"customer_database"},"confidence":0.99}'
