Skip to content

SECURITY_SENSITIVE

Mark endpoint as security-sensitive to obfuscate parameter values in logs.

Keywords

sensitive, security, security_sensitive

Syntax

sensitive

Examples

Password Change Endpoint

sql
create function change_password(_old_password text, _new_password text)
returns boolean
language sql
as $$...$$;

comment on function change_password(text, text) is
'HTTP POST
authorize
sensitive';

Login Endpoint

sql
create function authenticate(_username text, _password text)
returns json
language sql
as $$...$$;

comment on function authenticate(text, text) is
'HTTP POST
login
sensitive';

Payment Processing

sql
create function process_payment(_card_number text, _cvv text, _amount numeric)
returns json
language sql
as $$...$$;

comment on function process_payment(text, text, numeric) is
'HTTP POST
authorize
security_sensitive';

Behavior

  • Parameter values are replaced with *** in logs
  • Helps prevent sensitive data from appearing in log files
  • Applies to all parameters of the endpoint

Released under the MIT License.