sev-2 / raiden

A Framework for Supabase
MIT License
24 stars 2 forks source link

FEAT: Follow Supabase Security Advisor to Use set_path in Functions #66

Closed toopay closed 2 months ago

toopay commented 2 months ago

Description

This PR implements changes to follow the Supabase security advisory regarding the usage of set_path within database functions. Supabase recommends setting the search path explicitly within functions to prevent unintended security issues that may arise from the default search path configuration.

Type of change

Please delete options that are not relevant.

Checklist

Screenshots (if applicable)

Screenshot 2024-09-09 at 18 39 58
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Flag Coverage Δ
-race 71.89% <100.00%> (+0.02%) :arrow_up:
-tags "sonic avx" 71.90% <100.00%> (+0.05%) :arrow_up:
-tags go_json 71.82% <100.00%> (+<0.01%) :arrow_up:
-tags nomsgpack 71.84% <100.00%> (-0.02%) :arrow_down:
go-1.21 71.17% <100.00%> (-0.01%) :arrow_down:
go-1.22 71.92% <100.00%> (+0.10%) :arrow_up:
macos-latest 71.91% <100.00%> (+0.09%) :arrow_up:
ubuntu-latest 71.90% <100.00%> (-0.02%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
pkg/resource/import.go 78.94% <100.00%> (ø)
pkg/state/state.go 79.82% <100.00%> (+0.17%) :arrow_up:

... and 1 file with indirect coverage changes