forked from baron/baron-sso
테넌트 목록 조회 cursor기반으로 재구성. 사용자 metadata 미사용 필드 제거
This commit is contained in:
15
test/kratos_identity_schema_policy_test.sh
Normal file
15
test/kratos_identity_schema_policy_test.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
schema_file="docker/ory/kratos/identity.schema.json"
|
||||
|
||||
forbidden_traits="hanmacFamily userType"
|
||||
|
||||
for trait in $forbidden_traits; do
|
||||
if grep -Fq "\"$trait\"" "$schema_file"; then
|
||||
echo "forbidden Kratos trait in $schema_file: $trait" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "kratos identity schema policy checks passed"
|
||||
Reference in New Issue
Block a user