mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 02:27:37 +00:00
improvement: hide secret path/enviornment in conditional tooltip
This commit is contained in:
+4
@@ -89,6 +89,10 @@ export const FolderNodeTooltipContent = ({ action, access, actionRuleMap, subjec
|
|||||||
<span className="italic">{rule.inverted ? "Forbids" : "Allows"}</span>
|
<span className="italic">{rule.inverted ? "Forbids" : "Allows"}</span>
|
||||||
<span> when:</span>
|
<span> when:</span>
|
||||||
{Object.entries(rule.conditions).map(([key, condition]) => {
|
{Object.entries(rule.conditions).map(([key, condition]) => {
|
||||||
|
if (key.match(/secretPath|environment/)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul key={`${action}_${index + 1}_${key}`} className="list-[square] pl-4">
|
<ul key={`${action}_${index + 1}_${key}`} className="list-[square] pl-4">
|
||||||
{Object.entries(condition as object).map(([operator, value]) => {
|
{Object.entries(condition as object).map(([operator, value]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user