@kong-ui-public/entities-vaults 4.9.7 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { BookIcon as
|
|
4
|
-
import { useAxios as
|
|
5
|
-
import { createI18n as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as ye, computed as k, ref as D, watch as Ue, onBeforeMount as Ge, resolveComponent as Q, openBlock as v, createElementBlock as N, createVNode as u, unref as e, createSlots as Ze, withCtx as y, createTextVNode as ve, toDisplayString as O, createElementVNode as M, createBlock as H, Teleport as pt, createCommentVNode as j, reactive as Ee, resolveDynamicComponent as Be, TransitionGroup as mt, Fragment as tt, renderList as _t, mergeProps as at, normalizeClass as vt, nextTick as gt, renderSlot as yt } from "vue";
|
|
2
|
+
import { useRouter as je } from "vue-router";
|
|
3
|
+
import { BookIcon as Le, AddIcon as Ke, SecurityIcon as bt, FolderIcon as ht, ConjourIcon as wt, AzureIcon as Je, HashicorpIcon as Vt, GoogleCloudIcon as kt, AwsIcon as Ct, CodeIcon as At, KongIcon as St } from "@kong/icons";
|
|
4
|
+
import { useAxios as Ce, useTableState as Rt, useFetcher as lt, useDeleteUrlBuilder as ot, FetcherStatus as it, EntityBaseTable as rt, PermissionsWrapper as ke, TableTags as Et, EntityFilter as nt, EntityDeleteModal as st, EntityTypes as dt, useErrors as ut, EntityBaseFormType as ge, useGatewayFeatureSupported as xt, EntityBaseForm as ct, SupportedEntityType as qe, EntityFormSection as Oe, SensitiveInput as Te, useStringHelpers as It, useHelpers as Ut, ConfigurationSchemaType as Ht, ConfigurationSchemaSection as Qe, EntityBaseConfigCard as Tt, ConfigCardItem as Mt, useDebouncedFilter as Ye } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { createI18n as Gt, i18nTComponent as $t } from "@kong-ui-public/i18n";
|
|
6
|
+
const Pt = {
|
|
7
7
|
create: "New vault",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -11,18 +11,18 @@ const Mt = {
|
|
|
11
11
|
delete: "Delete",
|
|
12
12
|
view: "View details",
|
|
13
13
|
loading: "Loading..."
|
|
14
|
-
},
|
|
14
|
+
}, Ft = {
|
|
15
15
|
general: "Vaults could not be retrieved",
|
|
16
16
|
delete: "The vault could not be deleted at this time.",
|
|
17
17
|
copy: "Failed to copy to clipboard"
|
|
18
|
-
},
|
|
18
|
+
}, Nt = {
|
|
19
19
|
placeholder_for_vaults: {
|
|
20
20
|
konnect: "Filter by exact prefix or ID"
|
|
21
21
|
},
|
|
22
22
|
placeholder_for_secrets: {
|
|
23
23
|
konnect: "Filter by exact key"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, Kt = {
|
|
26
26
|
title: "Vaults",
|
|
27
27
|
list: {
|
|
28
28
|
toolbar_actions: {
|
|
@@ -48,7 +48,7 @@ const Mt = {
|
|
|
48
48
|
learn_more: "Learn more"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, Ot = {
|
|
52
52
|
title: "Secrets",
|
|
53
53
|
list: {
|
|
54
54
|
toolbar_actions: {
|
|
@@ -80,14 +80,14 @@ const Mt = {
|
|
|
80
80
|
},
|
|
81
81
|
hint: "Once saved, the secret value will not be visible"
|
|
82
82
|
}
|
|
83
|
-
},
|
|
83
|
+
}, Wt = {
|
|
84
84
|
success: "Copied {val} to clipboard",
|
|
85
85
|
success_brief: "Successfully copied to clipboard"
|
|
86
|
-
},
|
|
86
|
+
}, jt = {
|
|
87
87
|
vault_type: "Vault type",
|
|
88
88
|
vault_type_ai_gateway: "Type",
|
|
89
89
|
vault_name_ai_gateway: "Name"
|
|
90
|
-
},
|
|
90
|
+
}, qt = {
|
|
91
91
|
sections: {
|
|
92
92
|
general: {
|
|
93
93
|
title: "General information",
|
|
@@ -472,7 +472,7 @@ const Mt = {
|
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
unavailable: "This vault provider is available on Enterprise."
|
|
475
|
-
},
|
|
475
|
+
}, zt = {
|
|
476
476
|
title: "Look up key in vault",
|
|
477
477
|
vault: {
|
|
478
478
|
label: "Vault",
|
|
@@ -501,65 +501,65 @@ const Mt = {
|
|
|
501
501
|
complete_action: "Look up {cta}",
|
|
502
502
|
cta: "key in vault"
|
|
503
503
|
}
|
|
504
|
-
},
|
|
505
|
-
actions:
|
|
504
|
+
}, Dt = {
|
|
505
|
+
actions: Pt,
|
|
506
506
|
delete: {
|
|
507
507
|
title: "Delete a vault",
|
|
508
508
|
title_for_secret: "Delete a secret",
|
|
509
509
|
description: "This action cannot be reversed."
|
|
510
510
|
},
|
|
511
|
-
errors:
|
|
512
|
-
search:
|
|
513
|
-
vaults:
|
|
514
|
-
secrets:
|
|
515
|
-
copy:
|
|
516
|
-
labels:
|
|
517
|
-
form:
|
|
518
|
-
vault_secret_picker:
|
|
511
|
+
errors: Ft,
|
|
512
|
+
search: Nt,
|
|
513
|
+
vaults: Kt,
|
|
514
|
+
secrets: Ot,
|
|
515
|
+
copy: Wt,
|
|
516
|
+
labels: jt,
|
|
517
|
+
form: qt,
|
|
518
|
+
vault_secret_picker: zt
|
|
519
519
|
};
|
|
520
|
-
function
|
|
521
|
-
const l =
|
|
520
|
+
function Zt() {
|
|
521
|
+
const l = Gt("en-us", Dt);
|
|
522
522
|
return {
|
|
523
523
|
i18n: l,
|
|
524
|
-
i18nT:
|
|
524
|
+
i18nT: $t(l)
|
|
525
525
|
// Translation component <i18n-t>
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
|
-
const
|
|
529
|
-
useI18n:
|
|
530
|
-
},
|
|
528
|
+
const Ae = {
|
|
529
|
+
useI18n: Zt
|
|
530
|
+
}, Pe = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Xe = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Fe = "/{workspace}", Ie = "/v1/ai-gateways/{aiGatewayId}", fe = {
|
|
531
531
|
list: {
|
|
532
532
|
konnect: {
|
|
533
|
-
getAll: `${
|
|
534
|
-
deleteConfigStore: `${
|
|
533
|
+
getAll: `${Pe}/vaults`,
|
|
534
|
+
deleteConfigStore: `${Xe}/{id}?force=true`
|
|
535
535
|
},
|
|
536
536
|
kongManager: {
|
|
537
|
-
getAll: `${
|
|
537
|
+
getAll: `${Fe}/vaults`
|
|
538
538
|
},
|
|
539
539
|
aiGateway: {
|
|
540
|
-
getAll: `${
|
|
541
|
-
deleteConfigStore: `${
|
|
540
|
+
getAll: `${Ie}/vaults`,
|
|
541
|
+
deleteConfigStore: `${Ie}/config-stores/{id}?force=true`
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
form: {
|
|
545
545
|
konnect: {
|
|
546
|
-
create: `${
|
|
547
|
-
createConfigStore:
|
|
548
|
-
edit: `${
|
|
546
|
+
create: `${Pe}/vaults`,
|
|
547
|
+
createConfigStore: Xe,
|
|
548
|
+
edit: `${Pe}/vaults/{id}`
|
|
549
549
|
},
|
|
550
550
|
kongManager: {
|
|
551
|
-
create: `${
|
|
552
|
-
edit: `${
|
|
551
|
+
create: `${Fe}/vaults`,
|
|
552
|
+
edit: `${Fe}/vaults/{id}`
|
|
553
553
|
},
|
|
554
554
|
aiGateway: {
|
|
555
|
-
create: `${
|
|
556
|
-
edit: `${
|
|
557
|
-
createConfigStore: `${
|
|
555
|
+
create: `${Ie}/vaults`,
|
|
556
|
+
edit: `${Ie}/vaults/{id}`,
|
|
557
|
+
createConfigStore: `${Ie}/config-stores`
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
var t = /* @__PURE__ */ ((l) => (l.AWS = "aws", l.GCP = "gcp", l.HCV = "hcv", l.ENV = "env", l.AZURE = "azure", l.AZURE_CERTS = "azure-certs", l.KONNECT = "konnect", l.CONJUR = "conjur", l.FS = "fs", l))(t || {}), _ = /* @__PURE__ */ ((l) => (l.TOKEN = "token", l.K8S = "kubernetes", l.APP_ROLE = "approle", l.CERT = "cert", l.JWT = "jwt", l.AWS_IAM = "aws_iam", l.AWS_EC2 = "aws_ec2", l.AZURE = "azure", l.GCP_GCE = "gcp_gce", l.GCP_IAM = "gcp_iam", l))(_ || {});
|
|
562
|
-
const
|
|
562
|
+
const ft = {
|
|
563
563
|
[_.TOKEN]: {
|
|
564
564
|
token: "token"
|
|
565
565
|
},
|
|
@@ -616,7 +616,7 @@ const dt = {
|
|
|
616
616
|
azure_auth_role: "role",
|
|
617
617
|
azure_login_path: "login_path"
|
|
618
618
|
}
|
|
619
|
-
},
|
|
619
|
+
}, Bt = [
|
|
620
620
|
"protocol",
|
|
621
621
|
"host",
|
|
622
622
|
"port",
|
|
@@ -629,49 +629,49 @@ const dt = {
|
|
|
629
629
|
"ttl",
|
|
630
630
|
"neg_ttl",
|
|
631
631
|
"resurrect_ttl"
|
|
632
|
-
],
|
|
633
|
-
const
|
|
634
|
-
for (const d of
|
|
632
|
+
], Lt = (l) => Object.fromEntries(Object.entries(l).map(([b, s]) => [s, b])), Jt = (l) => l == null, We = (l) => Object.fromEntries(Object.entries(l).filter(([, b]) => !Jt(b))), Qt = (l) => {
|
|
633
|
+
const b = ft[l.auth_method] ?? {}, s = {};
|
|
634
|
+
for (const d of Bt)
|
|
635
635
|
d in l && (s[d] = l[d]);
|
|
636
|
-
for (const [d, p] of Object.entries(
|
|
636
|
+
for (const [d, p] of Object.entries(b))
|
|
637
637
|
d in l && (s[p] = l[d]);
|
|
638
|
-
return
|
|
639
|
-
},
|
|
640
|
-
const
|
|
638
|
+
return We(s);
|
|
639
|
+
}, Yt = (l) => {
|
|
640
|
+
const b = l.name;
|
|
641
641
|
let s = l.config ?? {};
|
|
642
|
-
if (
|
|
643
|
-
s =
|
|
644
|
-
else if (
|
|
642
|
+
if (b === t.HCV)
|
|
643
|
+
s = Qt(s);
|
|
644
|
+
else if (b === t.CONJUR) {
|
|
645
645
|
const d = { ...s };
|
|
646
|
-
delete d.auth_method, s =
|
|
646
|
+
delete d.auth_method, s = We(d);
|
|
647
647
|
} else
|
|
648
|
-
s =
|
|
648
|
+
s = We(s);
|
|
649
649
|
return {
|
|
650
|
-
type:
|
|
650
|
+
type: b,
|
|
651
651
|
name: l.prefix,
|
|
652
652
|
// AI Gateway description is a non-nullable string; coerce the gateway's `null`
|
|
653
653
|
// (used for an empty description) to an empty string.
|
|
654
654
|
description: l.description ?? "",
|
|
655
655
|
config: s
|
|
656
656
|
};
|
|
657
|
-
},
|
|
658
|
-
const
|
|
657
|
+
}, Xt = (l) => {
|
|
658
|
+
const b = Lt(ft[l.auth_method] ?? {}), s = {};
|
|
659
659
|
for (const [d, p] of Object.entries(l))
|
|
660
|
-
s[
|
|
660
|
+
s[b[d] ?? d] = p;
|
|
661
661
|
return s;
|
|
662
|
-
},
|
|
663
|
-
const
|
|
662
|
+
}, He = (l) => {
|
|
663
|
+
const b = l == null ? void 0 : l.type;
|
|
664
664
|
let s = l != null && l.config ? { ...l.config } : {};
|
|
665
|
-
return
|
|
665
|
+
return b === t.HCV ? s = Xt(s) : b === t.CONJUR && (s = { ...s, auth_method: "api_key" }), {
|
|
666
666
|
id: l == null ? void 0 : l.id,
|
|
667
667
|
created_at: l == null ? void 0 : l.created_at,
|
|
668
668
|
updated_at: l == null ? void 0 : l.updated_at,
|
|
669
|
-
name:
|
|
669
|
+
name: b,
|
|
670
670
|
prefix: l == null ? void 0 : l.name,
|
|
671
671
|
description: (l == null ? void 0 : l.description) ?? "",
|
|
672
672
|
config: s
|
|
673
673
|
};
|
|
674
|
-
},
|
|
674
|
+
}, ea = { class: "kong-ui-entities-vaults-list" }, ta = { class: "button-row" }, aa = { class: "table-content-overflow-wrapper" }, la = { class: "table-content-overflow-wrapper" }, oa = /* @__PURE__ */ ye({
|
|
675
675
|
__name: "VaultList",
|
|
676
676
|
props: {
|
|
677
677
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -716,9 +716,9 @@ const dt = {
|
|
|
716
716
|
}
|
|
717
717
|
},
|
|
718
718
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
|
|
719
|
-
setup(l, { emit:
|
|
720
|
-
var
|
|
721
|
-
const s =
|
|
719
|
+
setup(l, { emit: b }) {
|
|
720
|
+
var W;
|
|
721
|
+
const s = b, d = l, { i18n: { t: p } } = Ae.useI18n(), i = je(), K = k(() => d.config.apiType === "aiGateway"), G = k(() => K.value ? "aiGateway" : d.config.app), w = (h) => h.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), { axiosInstance: R } = Ce((W = d.config) == null ? void 0 : W.axiosRequestConfig), { hasRecords: I, handleStateChange: x } = Rt(() => J.value), g = k(() => I.value && d.config.app === "konnect"), n = k(() => d.config.app !== "kongManager" || !!d.config.disableSorting), U = {
|
|
722
722
|
// the Prefix column is non-hidable
|
|
723
723
|
prefix: { label: p("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0, hidable: !1 },
|
|
724
724
|
// it's "Vault Type" on display, but we still use "name" to fit API schema
|
|
@@ -727,181 +727,181 @@ const dt = {
|
|
|
727
727
|
tags: { label: p("vaults.list.table_headers.tags"), sortable: !1 }
|
|
728
728
|
}, f = k(() => {
|
|
729
729
|
if (K.value) {
|
|
730
|
-
const { description:
|
|
730
|
+
const { description: h, name: E, prefix: F } = U;
|
|
731
731
|
return {
|
|
732
|
-
prefix: { ...
|
|
733
|
-
name:
|
|
734
|
-
description:
|
|
732
|
+
prefix: { ...F, label: p("vaults.list.table_headers.prefix_ai_gateway") },
|
|
733
|
+
name: E,
|
|
734
|
+
description: h
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
return U;
|
|
738
|
-
}),
|
|
739
|
-
var
|
|
740
|
-
let
|
|
741
|
-
return d.config.app === "konnect" && (
|
|
742
|
-
}), J =
|
|
738
|
+
}), oe = k(() => {
|
|
739
|
+
var E, F;
|
|
740
|
+
let h = `${d.config.apiBaseUrl}${fe.list[G.value].getAll}`;
|
|
741
|
+
return d.config.app === "konnect" && (h = h.replace(/{controlPlaneId}/gi, ((E = d.config) == null ? void 0 : E.controlPlaneId) || "")), w(h).replace(/\/{workspace}/gi, (F = d.config) != null && F.workspace ? `/${d.config.workspace}` : "");
|
|
742
|
+
}), J = D(""), ne = k(() => {
|
|
743
743
|
if (d.config.app === "konnect" || d.config.isExactMatch)
|
|
744
744
|
return {
|
|
745
745
|
isExactMatch: !0,
|
|
746
746
|
placeholder: p("search.placeholder_for_vaults.konnect")
|
|
747
747
|
};
|
|
748
|
-
const { prefix:
|
|
748
|
+
const { prefix: E, name: F } = U;
|
|
749
749
|
return {
|
|
750
750
|
isExactMatch: !1,
|
|
751
|
-
fields: { name:
|
|
751
|
+
fields: { name: F, prefix: E },
|
|
752
752
|
schema: d.config.filterSchema
|
|
753
753
|
};
|
|
754
754
|
}), {
|
|
755
|
-
fetcher:
|
|
756
|
-
fetcherState:
|
|
755
|
+
fetcher: pe,
|
|
756
|
+
fetcherState: $,
|
|
757
757
|
fetcherCacheKey: a
|
|
758
|
-
} =
|
|
759
|
-
const
|
|
760
|
-
return { ...
|
|
761
|
-
} :
|
|
758
|
+
} = lt(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), oe), se = K.value ? async (h) => {
|
|
759
|
+
const E = await pe(h);
|
|
760
|
+
return { ...E, data: (E.data ?? []).map(He) };
|
|
761
|
+
} : pe, V = () => {
|
|
762
762
|
J.value = "";
|
|
763
|
-
},
|
|
763
|
+
}, Y = () => {
|
|
764
764
|
a.value++;
|
|
765
|
-
},
|
|
766
|
-
const
|
|
767
|
-
if (!await
|
|
765
|
+
}, ie = D(null), me = async (h, E) => {
|
|
766
|
+
const F = h.id;
|
|
767
|
+
if (!await E(F)) {
|
|
768
768
|
s("copy:error", {
|
|
769
|
-
entity:
|
|
769
|
+
entity: h,
|
|
770
770
|
field: "id",
|
|
771
771
|
message: p("errors.copy")
|
|
772
772
|
});
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
775
|
s("copy:success", {
|
|
776
|
-
entity:
|
|
776
|
+
entity: h,
|
|
777
777
|
field: "id",
|
|
778
|
-
message: p("copy.success", { val:
|
|
778
|
+
message: p("copy.success", { val: F })
|
|
779
779
|
});
|
|
780
|
-
},
|
|
781
|
-
const
|
|
782
|
-
if (!await
|
|
780
|
+
}, re = async (h, E) => {
|
|
781
|
+
const F = JSON.stringify(h);
|
|
782
|
+
if (!await E(F)) {
|
|
783
783
|
s("copy:error", {
|
|
784
|
-
entity:
|
|
784
|
+
entity: h,
|
|
785
785
|
message: p("errors.copy")
|
|
786
786
|
});
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
789
|
s("copy:success", {
|
|
790
|
-
entity:
|
|
790
|
+
entity: h,
|
|
791
791
|
message: p("copy.success_brief")
|
|
792
792
|
});
|
|
793
|
-
},
|
|
794
|
-
var
|
|
795
|
-
await ((
|
|
796
|
-
},
|
|
793
|
+
}, L = async (h) => {
|
|
794
|
+
var F;
|
|
795
|
+
await ((F = d.canRetrieve) == null ? void 0 : F.call(d, h)) && i.push(d.config.getViewRoute(h.id));
|
|
796
|
+
}, be = (h) => ({
|
|
797
797
|
label: p("actions.view"),
|
|
798
|
-
to: d.config.getViewRoute(
|
|
799
|
-
}),
|
|
798
|
+
to: d.config.getViewRoute(h)
|
|
799
|
+
}), q = (h) => ({
|
|
800
800
|
label: p("actions.edit"),
|
|
801
|
-
to: d.config.getEditRoute(
|
|
802
|
-
}),
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
},
|
|
807
|
-
var
|
|
808
|
-
const { apiBaseUrl:
|
|
801
|
+
to: d.config.getEditRoute(h)
|
|
802
|
+
}), T = D(void 0), le = D(!1), X = D(!1), ee = D(""), we = ot(d.config, oe.value), Se = (h) => {
|
|
803
|
+
T.value = h, le.value = !0;
|
|
804
|
+
}, C = () => {
|
|
805
|
+
le.value = !1;
|
|
806
|
+
}, A = async (h) => {
|
|
807
|
+
var c;
|
|
808
|
+
const { apiBaseUrl: E, controlPlaneId: F } = d.config, de = w(`${E}${fe.list[K.value ? "aiGateway" : "konnect"].deleteConfigStore}`).replace(/{controlPlaneId}/gi, F || "").replace(/\/{workspace}/gi, (c = d.config) != null && c.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, h);
|
|
809
809
|
try {
|
|
810
|
-
await
|
|
810
|
+
await R.delete(de);
|
|
811
811
|
} catch {
|
|
812
812
|
}
|
|
813
|
-
},
|
|
814
|
-
var
|
|
815
|
-
if ((
|
|
816
|
-
|
|
813
|
+
}, P = async () => {
|
|
814
|
+
var h, E, F, de;
|
|
815
|
+
if ((h = T.value) != null && h.id) {
|
|
816
|
+
X.value = !0;
|
|
817
817
|
try {
|
|
818
|
-
await
|
|
819
|
-
} catch (
|
|
820
|
-
|
|
818
|
+
await R.delete(we(T.value.id)), d.config.app === "konnect" && ((E = T.value.config) != null && E.config_store_id) && A(T.value.config.config_store_id), X.value = !1, le.value = !1, a.value++, s("delete:success", T.value);
|
|
819
|
+
} catch (c) {
|
|
820
|
+
ee.value = ((de = (F = c.response) == null ? void 0 : F.data) == null ? void 0 : de.message) || c.message || p("errors.delete"), s("error", c);
|
|
821
821
|
} finally {
|
|
822
|
-
|
|
822
|
+
X.value = !1;
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
},
|
|
826
|
-
|
|
825
|
+
}, z = () => {
|
|
826
|
+
i.push(d.config.createRoute);
|
|
827
827
|
};
|
|
828
|
-
|
|
829
|
-
var
|
|
830
|
-
if (
|
|
831
|
-
|
|
828
|
+
Ue($, (h) => {
|
|
829
|
+
var E, F, de;
|
|
830
|
+
if (h.status === it.Error) {
|
|
831
|
+
ie.value = {
|
|
832
832
|
title: p("errors.general")
|
|
833
|
-
}, (
|
|
833
|
+
}, (de = (F = (E = h.error) == null ? void 0 : E.response) == null ? void 0 : F.data) != null && de.message && (ie.value.message = h.error.response.data.message), s("error", h.error);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
|
|
836
|
+
ie.value = null;
|
|
837
837
|
});
|
|
838
|
-
const
|
|
838
|
+
const te = D({
|
|
839
839
|
ctaPath: d.config.createRoute,
|
|
840
840
|
ctaText: void 0,
|
|
841
841
|
message: `${p("vaults.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
|
|
842
842
|
title: p("vaults.title")
|
|
843
|
-
}), B =
|
|
844
|
-
return
|
|
845
|
-
B.value = await d.canCreate(), B.value && (
|
|
846
|
-
}), (
|
|
847
|
-
const
|
|
848
|
-
return
|
|
849
|
-
u(e(
|
|
843
|
+
}), B = D(!1);
|
|
844
|
+
return Ge(async () => {
|
|
845
|
+
B.value = await d.canCreate(), B.value && (te.value.title = p("vaults.list.empty_state.title"), te.value.ctaText = p("actions.create"));
|
|
846
|
+
}), (h, E) => {
|
|
847
|
+
const F = Q("KButton"), de = Q("KEmptyState"), c = Q("KDropdownItem"), o = Q("KClipboardProvider");
|
|
848
|
+
return v(), N("div", ea, [
|
|
849
|
+
u(e(rt), {
|
|
850
850
|
"cache-identifier": l.cacheIdentifier,
|
|
851
851
|
"disable-sorting": n.value,
|
|
852
|
-
"empty-state-options":
|
|
852
|
+
"empty-state-options": te.value,
|
|
853
853
|
"enable-entity-actions": "",
|
|
854
|
-
"error-message":
|
|
855
|
-
fetcher: e(
|
|
854
|
+
"error-message": ie.value,
|
|
855
|
+
fetcher: e(se),
|
|
856
856
|
"fetcher-cache-key": e(a),
|
|
857
857
|
"pagination-type": "offset",
|
|
858
858
|
"preferences-storage-key": "kong-ui-entities-vaults-list",
|
|
859
859
|
query: J.value,
|
|
860
860
|
"table-headers": f.value,
|
|
861
861
|
onClearSearchInput: V,
|
|
862
|
-
"onClick:row":
|
|
863
|
-
onSort:
|
|
864
|
-
onState: e(
|
|
865
|
-
},
|
|
866
|
-
"toolbar-filter":
|
|
867
|
-
u(e(
|
|
862
|
+
"onClick:row": E[3] || (E[3] = (S) => L(S)),
|
|
863
|
+
onSort: Y,
|
|
864
|
+
onState: e(x)
|
|
865
|
+
}, Ze({
|
|
866
|
+
"toolbar-filter": y(() => [
|
|
867
|
+
u(e(nt), {
|
|
868
868
|
modelValue: J.value,
|
|
869
|
-
"onUpdate:modelValue":
|
|
870
|
-
config:
|
|
869
|
+
"onUpdate:modelValue": E[0] || (E[0] = (S) => J.value = S),
|
|
870
|
+
config: ne.value
|
|
871
871
|
}, null, 8, ["modelValue", "config"])
|
|
872
872
|
]),
|
|
873
|
-
"toolbar-button":
|
|
874
|
-
(
|
|
873
|
+
"toolbar-button": y(() => [
|
|
874
|
+
(v(), H(pt, {
|
|
875
875
|
disabled: !l.useActionOutside,
|
|
876
876
|
to: "#kong-ui-app-page-header-action-button"
|
|
877
877
|
}, [
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
M("div", ta, [
|
|
879
|
+
g.value ? (v(), H(F, {
|
|
880
880
|
key: 0,
|
|
881
881
|
appearance: "secondary",
|
|
882
882
|
class: "open-learning-hub",
|
|
883
883
|
"data-testid": "vault-learn-more-button",
|
|
884
884
|
icon: "",
|
|
885
|
-
onClick:
|
|
885
|
+
onClick: E[1] || (E[1] = (S) => h.$emit("click:learn-more"))
|
|
886
886
|
}, {
|
|
887
|
-
default:
|
|
888
|
-
u(e(
|
|
887
|
+
default: y(() => [
|
|
888
|
+
u(e(Le), { decorative: "" })
|
|
889
889
|
]),
|
|
890
890
|
_: 1
|
|
891
|
-
})) :
|
|
892
|
-
u(e(
|
|
891
|
+
})) : j("", !0),
|
|
892
|
+
u(e(ke), {
|
|
893
893
|
"auth-function": () => l.canCreate()
|
|
894
894
|
}, {
|
|
895
|
-
default:
|
|
896
|
-
u(
|
|
895
|
+
default: y(() => [
|
|
896
|
+
u(F, {
|
|
897
897
|
appearance: "primary",
|
|
898
898
|
"data-testid": "toolbar-add-vault",
|
|
899
899
|
size: l.useActionOutside ? "medium" : "large",
|
|
900
900
|
to: l.config.createRoute
|
|
901
901
|
}, {
|
|
902
|
-
default:
|
|
903
|
-
u(e(
|
|
904
|
-
|
|
902
|
+
default: y(() => [
|
|
903
|
+
u(e(Ke)),
|
|
904
|
+
ve(" " + O(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
|
|
905
905
|
]),
|
|
906
906
|
_: 1
|
|
907
907
|
}, 8, ["size", "to"])
|
|
@@ -911,84 +911,84 @@ const dt = {
|
|
|
911
911
|
])
|
|
912
912
|
], 8, ["disabled"]))
|
|
913
913
|
]),
|
|
914
|
-
prefix:
|
|
915
|
-
|
|
916
|
-
|
|
914
|
+
prefix: y(({ rowValue: S }) => [
|
|
915
|
+
M("div", aa, [
|
|
916
|
+
M("b", null, O(S ?? "-"), 1)
|
|
917
917
|
])
|
|
918
918
|
]),
|
|
919
|
-
name:
|
|
920
|
-
|
|
919
|
+
name: y(({ rowValue: S }) => [
|
|
920
|
+
M("b", null, O(S ?? "-"), 1)
|
|
921
921
|
]),
|
|
922
|
-
description:
|
|
923
|
-
|
|
922
|
+
description: y(({ rowValue: S }) => [
|
|
923
|
+
M("div", la, O(S ?? "-"), 1)
|
|
924
924
|
]),
|
|
925
|
-
tags:
|
|
926
|
-
u(e(
|
|
925
|
+
tags: y(({ rowValue: S }) => [
|
|
926
|
+
u(e(Et), { tags: S }, null, 8, ["tags"])
|
|
927
927
|
]),
|
|
928
|
-
actions:
|
|
929
|
-
u(
|
|
930
|
-
default:
|
|
931
|
-
u(
|
|
928
|
+
actions: y(({ row: S }) => [
|
|
929
|
+
u(o, null, {
|
|
930
|
+
default: y(({ copyToClipboard: Z }) => [
|
|
931
|
+
u(c, {
|
|
932
932
|
"data-testid": "action-entity-copy-id",
|
|
933
|
-
onClick: (
|
|
933
|
+
onClick: (m) => me(S, Z)
|
|
934
934
|
}, {
|
|
935
|
-
default:
|
|
936
|
-
|
|
935
|
+
default: y(() => [
|
|
936
|
+
ve(O(e(p)("actions.copy_id")), 1)
|
|
937
937
|
]),
|
|
938
938
|
_: 1
|
|
939
939
|
}, 8, ["onClick"])
|
|
940
940
|
]),
|
|
941
941
|
_: 2
|
|
942
942
|
}, 1024),
|
|
943
|
-
u(
|
|
944
|
-
default:
|
|
945
|
-
u(
|
|
943
|
+
u(o, null, {
|
|
944
|
+
default: y(({ copyToClipboard: Z }) => [
|
|
945
|
+
u(c, {
|
|
946
946
|
"data-testid": "action-entity-copy-json",
|
|
947
|
-
onClick: (
|
|
947
|
+
onClick: (m) => re(S, Z)
|
|
948
948
|
}, {
|
|
949
|
-
default:
|
|
950
|
-
|
|
949
|
+
default: y(() => [
|
|
950
|
+
ve(O(e(p)("actions.copy_json")), 1)
|
|
951
951
|
]),
|
|
952
952
|
_: 1
|
|
953
953
|
}, 8, ["onClick"])
|
|
954
954
|
]),
|
|
955
955
|
_: 2
|
|
956
956
|
}, 1024),
|
|
957
|
-
u(e(
|
|
958
|
-
"auth-function": () => l.canRetrieve(
|
|
957
|
+
u(e(ke), {
|
|
958
|
+
"auth-function": () => l.canRetrieve(S)
|
|
959
959
|
}, {
|
|
960
|
-
default:
|
|
961
|
-
u(
|
|
960
|
+
default: y(() => [
|
|
961
|
+
u(c, {
|
|
962
962
|
"data-testid": "action-entity-view",
|
|
963
963
|
"has-divider": "",
|
|
964
|
-
item:
|
|
964
|
+
item: be(S.id)
|
|
965
965
|
}, null, 8, ["item"])
|
|
966
966
|
]),
|
|
967
967
|
_: 2
|
|
968
968
|
}, 1032, ["auth-function"]),
|
|
969
|
-
u(e(
|
|
970
|
-
"auth-function": () => l.canEdit(
|
|
969
|
+
u(e(ke), {
|
|
970
|
+
"auth-function": () => l.canEdit(S)
|
|
971
971
|
}, {
|
|
972
|
-
default:
|
|
973
|
-
u(
|
|
972
|
+
default: y(() => [
|
|
973
|
+
u(c, {
|
|
974
974
|
"data-testid": "action-entity-edit",
|
|
975
|
-
item:
|
|
975
|
+
item: q(S.id)
|
|
976
976
|
}, null, 8, ["item"])
|
|
977
977
|
]),
|
|
978
978
|
_: 2
|
|
979
979
|
}, 1032, ["auth-function"]),
|
|
980
|
-
u(e(
|
|
981
|
-
"auth-function": () => l.canDelete(
|
|
980
|
+
u(e(ke), {
|
|
981
|
+
"auth-function": () => l.canDelete(S)
|
|
982
982
|
}, {
|
|
983
|
-
default:
|
|
984
|
-
u(
|
|
983
|
+
default: y(() => [
|
|
984
|
+
u(c, {
|
|
985
985
|
danger: "",
|
|
986
986
|
"data-testid": "action-entity-delete",
|
|
987
987
|
"has-divider": "",
|
|
988
|
-
onClick: (
|
|
988
|
+
onClick: (Z) => Se(S)
|
|
989
989
|
}, {
|
|
990
|
-
default:
|
|
991
|
-
|
|
990
|
+
default: y(() => [
|
|
991
|
+
ve(O(e(p)("actions.delete")), 1)
|
|
992
992
|
]),
|
|
993
993
|
_: 1
|
|
994
994
|
}, 8, ["onClick"])
|
|
@@ -1000,48 +1000,48 @@ const dt = {
|
|
|
1000
1000
|
}, [
|
|
1001
1001
|
!J.value && l.config.app === "konnect" ? {
|
|
1002
1002
|
name: "empty-state",
|
|
1003
|
-
fn:
|
|
1004
|
-
var
|
|
1003
|
+
fn: y(() => {
|
|
1004
|
+
var S;
|
|
1005
1005
|
return [
|
|
1006
|
-
u(
|
|
1006
|
+
u(de, {
|
|
1007
1007
|
"data-testid": "vaults-entity-empty-state",
|
|
1008
1008
|
"icon-background": "",
|
|
1009
1009
|
message: e(p)("vaults.list.empty_state_v2.description"),
|
|
1010
1010
|
title: e(p)("vaults.list.empty_state_v2.title")
|
|
1011
|
-
},
|
|
1012
|
-
icon:
|
|
1013
|
-
u(e(
|
|
1011
|
+
}, Ze({
|
|
1012
|
+
icon: y(() => [
|
|
1013
|
+
u(e(bt), { decorative: "" })
|
|
1014
1014
|
]),
|
|
1015
|
-
action:
|
|
1016
|
-
B.value ? (
|
|
1015
|
+
action: y(() => [
|
|
1016
|
+
B.value ? (v(), H(F, {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
"data-testid": "entity-create-button",
|
|
1019
|
-
onClick:
|
|
1019
|
+
onClick: z
|
|
1020
1020
|
}, {
|
|
1021
|
-
default:
|
|
1022
|
-
u(e(
|
|
1023
|
-
|
|
1021
|
+
default: y(() => [
|
|
1022
|
+
u(e(Ke), { decorative: "" }),
|
|
1023
|
+
ve(" " + O(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 1
|
|
1026
|
-
})) :
|
|
1027
|
-
u(
|
|
1026
|
+
})) : j("", !0),
|
|
1027
|
+
u(F, {
|
|
1028
1028
|
appearance: "secondary",
|
|
1029
1029
|
"data-testid": "entity-learn-more-button",
|
|
1030
|
-
onClick:
|
|
1030
|
+
onClick: E[2] || (E[2] = (Z) => h.$emit("click:learn-more"))
|
|
1031
1031
|
}, {
|
|
1032
|
-
default:
|
|
1033
|
-
u(e(
|
|
1034
|
-
|
|
1032
|
+
default: y(() => [
|
|
1033
|
+
u(e(Le), { decorative: "" }),
|
|
1034
|
+
ve(" " + O(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 1
|
|
1037
1037
|
})
|
|
1038
1038
|
]),
|
|
1039
1039
|
_: 2
|
|
1040
1040
|
}, [
|
|
1041
|
-
(
|
|
1041
|
+
(S = l.config) != null && S.isControlPlaneGroup ? {
|
|
1042
1042
|
name: "default",
|
|
1043
|
-
fn:
|
|
1044
|
-
|
|
1043
|
+
fn: y(() => [
|
|
1044
|
+
ve(O(e(p)("vaults.list.empty_state_v2.group")), 1)
|
|
1045
1045
|
]),
|
|
1046
1046
|
key: "0"
|
|
1047
1047
|
} : void 0
|
|
@@ -1051,59 +1051,59 @@ const dt = {
|
|
|
1051
1051
|
key: "0"
|
|
1052
1052
|
} : void 0
|
|
1053
1053
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
1054
|
-
u(e(
|
|
1055
|
-
"action-pending":
|
|
1054
|
+
u(e(st), {
|
|
1055
|
+
"action-pending": X.value,
|
|
1056
1056
|
description: e(p)("delete.description"),
|
|
1057
|
-
"entity-name":
|
|
1058
|
-
"entity-type": e(
|
|
1059
|
-
error:
|
|
1057
|
+
"entity-name": T.value && (T.value.prefix || T.value.id),
|
|
1058
|
+
"entity-type": e(dt).Vault,
|
|
1059
|
+
error: ee.value,
|
|
1060
1060
|
title: e(p)("delete.title"),
|
|
1061
|
-
visible:
|
|
1062
|
-
onCancel:
|
|
1063
|
-
onProceed:
|
|
1061
|
+
visible: le.value,
|
|
1062
|
+
onCancel: C,
|
|
1063
|
+
onProceed: P
|
|
1064
1064
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
1065
1065
|
]);
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
}),
|
|
1068
|
+
}), he = (l, b) => {
|
|
1069
1069
|
const s = l.__vccOpts || l;
|
|
1070
|
-
for (const [d, p] of
|
|
1070
|
+
for (const [d, p] of b)
|
|
1071
1071
|
s[d] = p;
|
|
1072
1072
|
return s;
|
|
1073
|
-
},
|
|
1073
|
+
}, ol = /* @__PURE__ */ he(oa, [["__scopeId", "data-v-374c7841"]]), ia = { class: "kong-ui-entities-vault-form" }, ra = { class: "vault-form-provider-cards-container" }, na = ["data-testid"], sa = { class: "provider-item-title-container" }, da = { class: "provider-item-title" }, ua = { class: "provider-item-description" }, ca = {
|
|
1074
1074
|
key: "kong-vault-config-fields",
|
|
1075
1075
|
class: "vault-form-config-fields-container"
|
|
1076
|
-
},
|
|
1076
|
+
}, fa = {
|
|
1077
1077
|
key: 1,
|
|
1078
1078
|
class: "vault-form-config-auth-method-container"
|
|
1079
|
-
},
|
|
1079
|
+
}, pa = {
|
|
1080
1080
|
key: 2,
|
|
1081
1081
|
class: "vault-form-config-auth-method-container"
|
|
1082
|
-
},
|
|
1082
|
+
}, ma = {
|
|
1083
1083
|
key: 3,
|
|
1084
1084
|
class: "vault-form-config-auth-method-container"
|
|
1085
|
-
},
|
|
1085
|
+
}, _a = {
|
|
1086
1086
|
key: 4,
|
|
1087
1087
|
class: "vault-form-config-auth-method-container"
|
|
1088
|
-
},
|
|
1088
|
+
}, va = {
|
|
1089
1089
|
key: 5,
|
|
1090
1090
|
class: "vault-form-config-auth-method-container"
|
|
1091
|
-
},
|
|
1091
|
+
}, ga = {
|
|
1092
1092
|
key: 6,
|
|
1093
1093
|
class: "vault-form-config-auth-method-container"
|
|
1094
|
-
},
|
|
1094
|
+
}, ya = {
|
|
1095
1095
|
key: 7,
|
|
1096
1096
|
class: "vault-form-config-auth-method-container"
|
|
1097
|
-
},
|
|
1097
|
+
}, ba = {
|
|
1098
1098
|
key: 8,
|
|
1099
1099
|
class: "vault-form-config-auth-method-container"
|
|
1100
|
-
},
|
|
1100
|
+
}, ha = {
|
|
1101
1101
|
key: 9,
|
|
1102
1102
|
class: "vault-form-config-auth-method-container"
|
|
1103
|
-
},
|
|
1103
|
+
}, wa = {
|
|
1104
1104
|
key: 10,
|
|
1105
1105
|
class: "vault-form-config-auth-method-container"
|
|
1106
|
-
},
|
|
1106
|
+
}, Va = { key: 8 }, ka = { class: "wrapper" }, Ca = { class: "item-50" }, Aa = { class: "item-50" }, Sa = { class: "wrapper" }, Ra = { class: "item-100" }, Ea = /* @__PURE__ */ ye({
|
|
1107
1107
|
__name: "VaultForm",
|
|
1108
1108
|
props: {
|
|
1109
1109
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1120,9 +1120,9 @@ const dt = {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
},
|
|
1122
1122
|
emits: ["update", "error", "loading"],
|
|
1123
|
-
setup(l, { emit:
|
|
1124
|
-
var
|
|
1125
|
-
const s = l, d =
|
|
1123
|
+
setup(l, { emit: b }) {
|
|
1124
|
+
var de;
|
|
1125
|
+
const s = l, d = b, { i18nT: p, i18n: { t: i } } = Ae.useI18n(), K = je(), { axiosInstance: G } = Ce((de = s.config) == null ? void 0 : de.axiosRequestConfig), { getMessageFromError: w } = ut(), R = k(() => s.config.apiType === "aiGateway"), I = k(() => R.value ? "aiGateway" : s.config.app), x = (c) => c.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || ""), g = R.value ? "https" : "http", n = Ee({
|
|
1126
1126
|
fields: {
|
|
1127
1127
|
prefix: "",
|
|
1128
1128
|
description: "",
|
|
@@ -1130,81 +1130,81 @@ const dt = {
|
|
|
1130
1130
|
},
|
|
1131
1131
|
isReadonly: !1,
|
|
1132
1132
|
errorMessage: ""
|
|
1133
|
-
}), U =
|
|
1133
|
+
}), U = Ee({
|
|
1134
1134
|
prefix: "",
|
|
1135
1135
|
description: "",
|
|
1136
1136
|
tags: ""
|
|
1137
|
-
}), f =
|
|
1138
|
-
{ label:
|
|
1139
|
-
{ label:
|
|
1140
|
-
{ label:
|
|
1141
|
-
{ label:
|
|
1142
|
-
{ label:
|
|
1143
|
-
{ label:
|
|
1144
|
-
{ label:
|
|
1137
|
+
}), f = D(s.config.app === "konnect" ? t.KONNECT : t.ENV), oe = D(null), J = D(), ne = k(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR, t.FS, t.AZURE_CERTS].includes(f.value)), pe = k(() => R.value ? [
|
|
1138
|
+
{ label: i("form.config.konnect.label"), value: t.KONNECT },
|
|
1139
|
+
{ label: i("form.config.env.label"), value: t.ENV },
|
|
1140
|
+
{ label: i("form.config.aws.label"), value: t.AWS },
|
|
1141
|
+
{ label: i("form.config.gcp.label"), value: t.GCP },
|
|
1142
|
+
{ label: i("form.config.hcv.label"), value: t.HCV },
|
|
1143
|
+
{ label: i("form.config.azure.label"), value: t.AZURE },
|
|
1144
|
+
{ label: i("form.config.conjur.label"), value: t.CONJUR }
|
|
1145
1145
|
] : [
|
|
1146
1146
|
...s.config.app === "konnect" ? [{
|
|
1147
|
-
label:
|
|
1147
|
+
label: i("form.config.konnect.label"),
|
|
1148
1148
|
value: t.KONNECT
|
|
1149
1149
|
}] : [],
|
|
1150
1150
|
{
|
|
1151
|
-
label:
|
|
1151
|
+
label: i("form.config.env.label"),
|
|
1152
1152
|
value: t.ENV
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
|
-
label:
|
|
1155
|
+
label: i("form.config.aws.label"),
|
|
1156
1156
|
value: t.AWS,
|
|
1157
|
-
disabled: !
|
|
1157
|
+
disabled: !T.value
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
1160
|
-
label:
|
|
1160
|
+
label: i("form.config.gcp.label"),
|
|
1161
1161
|
value: t.GCP,
|
|
1162
|
-
disabled: !
|
|
1162
|
+
disabled: !T.value
|
|
1163
1163
|
},
|
|
1164
1164
|
{
|
|
1165
|
-
label:
|
|
1165
|
+
label: i("form.config.hcv.label"),
|
|
1166
1166
|
value: t.HCV,
|
|
1167
|
-
disabled: !
|
|
1167
|
+
disabled: !T.value
|
|
1168
1168
|
},
|
|
1169
1169
|
...s.config.azureVaultProviderAvailable ? [{
|
|
1170
|
-
label:
|
|
1170
|
+
label: i("form.config.azure.label"),
|
|
1171
1171
|
value: t.AZURE,
|
|
1172
|
-
disabled: !
|
|
1172
|
+
disabled: !T.value
|
|
1173
1173
|
}] : [],
|
|
1174
1174
|
...s.config.conjurVaultProviderAvailable ? [{
|
|
1175
|
-
label:
|
|
1175
|
+
label: i("form.config.conjur.label"),
|
|
1176
1176
|
value: t.CONJUR,
|
|
1177
|
-
disabled: !
|
|
1177
|
+
disabled: !T.value
|
|
1178
1178
|
}] : [],
|
|
1179
1179
|
...s.config.fsVaultProviderAvailable ? [{
|
|
1180
|
-
label:
|
|
1180
|
+
label: i("form.config.fs.label"),
|
|
1181
1181
|
value: t.FS,
|
|
1182
|
-
disabled: !
|
|
1182
|
+
disabled: !T.value
|
|
1183
1183
|
}] : [],
|
|
1184
1184
|
...s.config.azureCertsVaultProviderAvailable ? [{
|
|
1185
|
-
label:
|
|
1185
|
+
label: i("form.config.azure-certs.label"),
|
|
1186
1186
|
value: t.AZURE_CERTS,
|
|
1187
|
-
disabled: !
|
|
1187
|
+
disabled: !T.value
|
|
1188
1188
|
}] : []
|
|
1189
|
-
]),
|
|
1189
|
+
]), $ = s.config.base64FieldAvailable ? { base64_decode: !1 } : {}, a = Ee({
|
|
1190
1190
|
[t.KONNECT]: {},
|
|
1191
1191
|
[t.ENV]: {
|
|
1192
1192
|
prefix: "",
|
|
1193
|
-
|
|
1193
|
+
...$
|
|
1194
1194
|
},
|
|
1195
1195
|
[t.AWS]: {
|
|
1196
1196
|
region: "",
|
|
1197
1197
|
endpoint_url: "",
|
|
1198
1198
|
assume_role_arn: "",
|
|
1199
1199
|
role_session_name: "KongVault",
|
|
1200
|
-
|
|
1200
|
+
...$
|
|
1201
1201
|
},
|
|
1202
1202
|
[t.GCP]: {
|
|
1203
1203
|
project_id: "",
|
|
1204
|
-
|
|
1204
|
+
...$
|
|
1205
1205
|
},
|
|
1206
1206
|
[t.HCV]: {
|
|
1207
|
-
protocol:
|
|
1207
|
+
protocol: g,
|
|
1208
1208
|
host: "127.0.0.1",
|
|
1209
1209
|
port: 8200,
|
|
1210
1210
|
mount: "secret",
|
|
@@ -1244,7 +1244,7 @@ const dt = {
|
|
|
1244
1244
|
jwt_role: "",
|
|
1245
1245
|
oauth2_token_endpoint: "",
|
|
1246
1246
|
oauth2_audiences: "",
|
|
1247
|
-
|
|
1247
|
+
...$
|
|
1248
1248
|
},
|
|
1249
1249
|
[t.AZURE]: {
|
|
1250
1250
|
location: "",
|
|
@@ -1253,7 +1253,7 @@ const dt = {
|
|
|
1253
1253
|
credentials_prefix: "AZURE",
|
|
1254
1254
|
client_id: "",
|
|
1255
1255
|
tenant_id: "",
|
|
1256
|
-
|
|
1256
|
+
...$
|
|
1257
1257
|
},
|
|
1258
1258
|
[t.AZURE_CERTS]: {
|
|
1259
1259
|
vault_uri: "",
|
|
@@ -1265,31 +1265,31 @@ const dt = {
|
|
|
1265
1265
|
[t.CONJUR]: {
|
|
1266
1266
|
endpoint_url: "",
|
|
1267
1267
|
auth_method: "api_key",
|
|
1268
|
-
|
|
1268
|
+
...$
|
|
1269
1269
|
},
|
|
1270
1270
|
[t.FS]: {
|
|
1271
1271
|
prefix: "",
|
|
1272
|
-
|
|
1272
|
+
...$
|
|
1273
1273
|
}
|
|
1274
|
-
}),
|
|
1274
|
+
}), se = Ee({
|
|
1275
1275
|
[t.KONNECT]: {},
|
|
1276
1276
|
[t.ENV]: {
|
|
1277
1277
|
prefix: "",
|
|
1278
|
-
|
|
1278
|
+
...$
|
|
1279
1279
|
},
|
|
1280
1280
|
[t.AWS]: {
|
|
1281
1281
|
region: "",
|
|
1282
1282
|
endpoint_url: "",
|
|
1283
1283
|
assume_role_arn: "",
|
|
1284
1284
|
role_session_name: "KongVault",
|
|
1285
|
-
|
|
1285
|
+
...$
|
|
1286
1286
|
},
|
|
1287
1287
|
[t.GCP]: {
|
|
1288
1288
|
project_id: "",
|
|
1289
|
-
|
|
1289
|
+
...$
|
|
1290
1290
|
},
|
|
1291
1291
|
[t.HCV]: {
|
|
1292
|
-
protocol:
|
|
1292
|
+
protocol: g,
|
|
1293
1293
|
host: "127.0.0.1",
|
|
1294
1294
|
port: 8200,
|
|
1295
1295
|
mount: "secret",
|
|
@@ -1329,7 +1329,7 @@ const dt = {
|
|
|
1329
1329
|
jwt_role: "",
|
|
1330
1330
|
oauth2_token_endpoint: "",
|
|
1331
1331
|
oauth2_audiences: "",
|
|
1332
|
-
|
|
1332
|
+
...$
|
|
1333
1333
|
},
|
|
1334
1334
|
[t.AZURE]: {
|
|
1335
1335
|
location: "",
|
|
@@ -1338,7 +1338,7 @@ const dt = {
|
|
|
1338
1338
|
credentials_prefix: "AZURE",
|
|
1339
1339
|
client_id: "",
|
|
1340
1340
|
tenant_id: "",
|
|
1341
|
-
|
|
1341
|
+
...$
|
|
1342
1342
|
},
|
|
1343
1343
|
[t.AZURE_CERTS]: {
|
|
1344
1344
|
vault_uri: "",
|
|
@@ -1350,104 +1350,104 @@ const dt = {
|
|
|
1350
1350
|
[t.CONJUR]: {
|
|
1351
1351
|
endpoint_url: "",
|
|
1352
1352
|
auth_method: "api_key",
|
|
1353
|
-
|
|
1353
|
+
...$
|
|
1354
1354
|
},
|
|
1355
1355
|
[t.FS]: {
|
|
1356
1356
|
prefix: "",
|
|
1357
|
-
|
|
1357
|
+
...$
|
|
1358
1358
|
}
|
|
1359
1359
|
}), V = [
|
|
1360
|
-
{ label: `${
|
|
1361
|
-
{ label: `${
|
|
1362
|
-
{ label: `${
|
|
1363
|
-
{ label: `${
|
|
1364
|
-
{ label: `${
|
|
1365
|
-
{ label: `${
|
|
1366
|
-
{ label: `${
|
|
1367
|
-
{ label: `${
|
|
1368
|
-
{ label: `${
|
|
1369
|
-
{ label: `${
|
|
1370
|
-
{ label: `${
|
|
1371
|
-
{ label: `${
|
|
1372
|
-
{ label: `${
|
|
1373
|
-
{ label: `${
|
|
1374
|
-
{ label: `${
|
|
1375
|
-
{ label: `${
|
|
1376
|
-
{ label: `${
|
|
1377
|
-
{ label: `${
|
|
1378
|
-
{ label: `${
|
|
1379
|
-
{ label: `${
|
|
1380
|
-
{ label: `${
|
|
1381
|
-
{ label: `${
|
|
1382
|
-
{ label: `${
|
|
1383
|
-
{ label: `${
|
|
1384
|
-
],
|
|
1360
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`, value: "us-east-1" },
|
|
1361
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`, value: "us-east-2" },
|
|
1362
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`, value: "us-west-1" },
|
|
1363
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`, value: "us-west-2" },
|
|
1364
|
+
{ label: `${i("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`, value: "af-south-1" },
|
|
1365
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`, value: "ap-east-1" },
|
|
1366
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`, value: "ap-southeast-3" },
|
|
1367
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`, value: "ap-south-1" },
|
|
1368
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`, value: "ap-northeast-1" },
|
|
1369
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`, value: "ap-northeast-2" },
|
|
1370
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`, value: "ap-northeast-3" },
|
|
1371
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`, value: "ap-southeast-1" },
|
|
1372
|
+
{ label: `${i("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`, value: "ap-southeast-2" },
|
|
1373
|
+
{ label: `${i("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`, value: "ca-central-1" },
|
|
1374
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`, value: "eu-central-1" },
|
|
1375
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`, value: "eu-west-1" },
|
|
1376
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`, value: "eu-west-2" },
|
|
1377
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`, value: "eu-west-3" },
|
|
1378
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`, value: "eu-south-1" },
|
|
1379
|
+
{ label: `${i("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`, value: "eu-north-1" },
|
|
1380
|
+
{ label: `${i("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`, value: "me-south-1" },
|
|
1381
|
+
{ label: `${i("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`, value: "sa-east-1" },
|
|
1382
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
|
|
1383
|
+
{ label: `${i("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
|
|
1384
|
+
], Y = [{ label: "secrets", value: "secrets" }], ie = [{ label: "http", value: "http" }, { label: "https", value: "https" }], me = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], re = k(() => s.vaultId ? ge.Edit : ge.Create), L = k(() => re.value === ge.Edit ? "edit" : "create"), be = k(() => {
|
|
1385
1385
|
var c;
|
|
1386
|
-
return
|
|
1387
|
-
}),
|
|
1386
|
+
return x((c = fe.form[I.value]) == null ? void 0 : c.edit);
|
|
1387
|
+
}), q = k(() => re.value === ge.Edit && (s.config.app === "kongManager" || R.value)), T = k(() => s.config.app === "konnect" || xt({
|
|
1388
1388
|
gatewayInfo: s.config.gatewayInfo,
|
|
1389
1389
|
// vault name can only be `env` in Gateway Community Edition
|
|
1390
1390
|
supportedRange: {
|
|
1391
1391
|
enterprise: []
|
|
1392
1392
|
}
|
|
1393
|
-
})),
|
|
1393
|
+
})), le = () => {
|
|
1394
1394
|
var c;
|
|
1395
1395
|
K.push(((c = s.config) == null ? void 0 : c.cancelRoute) || { name: "vault-list" });
|
|
1396
|
-
},
|
|
1396
|
+
}, X = (c) => {
|
|
1397
1397
|
d("loading", c);
|
|
1398
1398
|
}, ee = (c) => {
|
|
1399
1399
|
d("error", c);
|
|
1400
|
-
},
|
|
1400
|
+
}, we = (c) => {
|
|
1401
1401
|
switch (c) {
|
|
1402
1402
|
case t.KONNECT:
|
|
1403
|
-
return
|
|
1403
|
+
return St;
|
|
1404
1404
|
case t.ENV:
|
|
1405
|
-
return
|
|
1405
|
+
return At;
|
|
1406
1406
|
case t.AWS:
|
|
1407
|
-
return
|
|
1407
|
+
return Ct;
|
|
1408
1408
|
case t.GCP:
|
|
1409
|
-
return
|
|
1409
|
+
return kt;
|
|
1410
1410
|
case t.HCV:
|
|
1411
|
-
return
|
|
1411
|
+
return Vt;
|
|
1412
1412
|
case t.AZURE:
|
|
1413
|
-
return
|
|
1413
|
+
return Je;
|
|
1414
1414
|
case t.AZURE_CERTS:
|
|
1415
|
-
return
|
|
1415
|
+
return Je;
|
|
1416
1416
|
case t.CONJUR:
|
|
1417
|
-
return
|
|
1417
|
+
return wt;
|
|
1418
1418
|
case t.FS:
|
|
1419
|
-
return
|
|
1419
|
+
return ht;
|
|
1420
1420
|
}
|
|
1421
|
-
},
|
|
1421
|
+
}, Se = (c) => {
|
|
1422
1422
|
switch (c) {
|
|
1423
1423
|
case t.KONNECT:
|
|
1424
|
-
return
|
|
1424
|
+
return i("form.config.konnect.description");
|
|
1425
1425
|
case t.ENV:
|
|
1426
|
-
return
|
|
1426
|
+
return i("form.config.env.description");
|
|
1427
1427
|
case t.AWS:
|
|
1428
|
-
return
|
|
1428
|
+
return i("form.config.aws.description");
|
|
1429
1429
|
case t.GCP:
|
|
1430
|
-
return
|
|
1430
|
+
return i("form.config.gcp.description");
|
|
1431
1431
|
case t.HCV:
|
|
1432
|
-
return
|
|
1432
|
+
return i("form.config.hcv.description");
|
|
1433
1433
|
case t.AZURE:
|
|
1434
|
-
return
|
|
1434
|
+
return i("form.config.azure.description");
|
|
1435
1435
|
case t.AZURE_CERTS:
|
|
1436
|
-
return
|
|
1436
|
+
return i("form.config.azure-certs.description");
|
|
1437
1437
|
case t.CONJUR:
|
|
1438
|
-
return
|
|
1438
|
+
return i("form.config.conjur.description");
|
|
1439
1439
|
case t.FS:
|
|
1440
|
-
return
|
|
1440
|
+
return i("form.config.fs.description");
|
|
1441
1441
|
}
|
|
1442
|
-
},
|
|
1443
|
-
var m,
|
|
1444
|
-
const o =
|
|
1445
|
-
n.fields.prefix = ((m = o == null ? void 0 : o.item) == null ? void 0 : m.prefix) || (o == null ? void 0 : o.prefix) || "", n.fields.description = ((
|
|
1446
|
-
const
|
|
1447
|
-
n.fields.tags = (
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
-
},
|
|
1442
|
+
}, C = (c) => {
|
|
1443
|
+
var m, ae, _e, Ve, r, xe;
|
|
1444
|
+
const o = R.value ? He((c == null ? void 0 : c.item) ?? c) : c;
|
|
1445
|
+
n.fields.prefix = ((m = o == null ? void 0 : o.item) == null ? void 0 : m.prefix) || (o == null ? void 0 : o.prefix) || "", n.fields.description = ((ae = o == null ? void 0 : o.item) == null ? void 0 : ae.description) || (o == null ? void 0 : o.description) || "";
|
|
1446
|
+
const S = ((_e = o == null ? void 0 : o.item) == null ? void 0 : _e.tags) || (o == null ? void 0 : o.tags) || [];
|
|
1447
|
+
n.fields.tags = (S == null ? void 0 : S.join(", ")) || "", Object.assign(U, n.fields);
|
|
1448
|
+
const Z = ((Ve = o == null ? void 0 : o.item) == null ? void 0 : Ve.config) || (o == null ? void 0 : o.config) || null;
|
|
1449
|
+
Z && (Object.keys(Z).length || (o == null ? void 0 : o.name) === t.KONNECT) ? (f.value = ((r = o == null ? void 0 : o.item) == null ? void 0 : r.name) || (o == null ? void 0 : o.name) || "", oe.value = f.value, J.value = ((xe = o == null ? void 0 : o.config) == null ? void 0 : xe.config_store_id) || void 0, Object.assign(a[f.value], Z), Object.assign(se[f.value], Z)) : n.errorMessage = "Error loading vault config";
|
|
1450
|
+
}, A = (c) => c === "" || c == null, P = k(() => f.value === t.HCV ? !Object.keys(a[t.HCV]).filter((c) => [
|
|
1451
1451
|
"namespace",
|
|
1452
1452
|
"ttl",
|
|
1453
1453
|
"neg_ttl",
|
|
@@ -1463,12 +1463,12 @@ const dt = {
|
|
|
1463
1463
|
"aws_role_session_name",
|
|
1464
1464
|
"azure_login_path",
|
|
1465
1465
|
"gcp_login_path"
|
|
1466
|
-
].includes(c) || a[t.HCV].auth_method !== _.K8S && (c === "kube_role" || c === "kube_api_token_file") || !s.config.hcvCspAuthMethodsAvailable && ["aws_auth_role", "aws_auth_region", "aws_auth_nonce", "aws_access_key_id", "aws_secret_access_key", "aws_login_path", "aws_sts_endpoint_url", "aws_assume_role_arn", "aws_role_session_name", "azure_auth_role", "azure_login_path", "gcp_auth_role", "gcp_login_path", "gcp_service_account", "gcp_jwt_exp"].includes(c) || ![_.AWS_IAM, _.AWS_EC2].includes(a[t.HCV].auth_method) && c === "aws_auth_role" || a[t.HCV].auth_method !== _.AWS_IAM && ["aws_auth_region", "aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method === _.AWS_IAM && ["aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method !== _.AWS_EC2 && c === "aws_auth_nonce" || a[t.HCV].auth_method !== _.AZURE && c === "azure_auth_role" || ![_.GCP_GCE, _.GCP_IAM].includes(a[t.HCV].auth_method) && c === "gcp_auth_role" || a[t.HCV].auth_method !== _.GCP_IAM && ["gcp_service_account", "gcp_jwt_exp"].includes(c) || a[t.HCV].auth_method !== _.TOKEN && c === "token" || a[t.HCV].auth_method !== _.APP_ROLE && (c === "approle_role_id" || c === "approle_response_wrapping") || a[t.HCV].auth_method === _.APP_ROLE && c === "approle_response_wrapping" && typeof a[f.value][c] == "boolean" || a[t.HCV].auth_method !== _.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.JWT && ["oauth2_client_id", "oauth2_client_secret", "jwt_role", "oauth2_token_endpoint"].includes(c) ? !1 :
|
|
1467
|
-
var o,
|
|
1468
|
-
let c = `${s.config.apiBaseUrl}${
|
|
1469
|
-
return s.config.app === "konnect" && (c = c.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "")),
|
|
1470
|
-
}),
|
|
1471
|
-
var
|
|
1466
|
+
].includes(c) || a[t.HCV].auth_method !== _.K8S && (c === "kube_role" || c === "kube_api_token_file") || !s.config.hcvCspAuthMethodsAvailable && ["aws_auth_role", "aws_auth_region", "aws_auth_nonce", "aws_access_key_id", "aws_secret_access_key", "aws_login_path", "aws_sts_endpoint_url", "aws_assume_role_arn", "aws_role_session_name", "azure_auth_role", "azure_login_path", "gcp_auth_role", "gcp_login_path", "gcp_service_account", "gcp_jwt_exp"].includes(c) || ![_.AWS_IAM, _.AWS_EC2].includes(a[t.HCV].auth_method) && c === "aws_auth_role" || a[t.HCV].auth_method !== _.AWS_IAM && ["aws_auth_region", "aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method === _.AWS_IAM && ["aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method !== _.AWS_EC2 && c === "aws_auth_nonce" || a[t.HCV].auth_method !== _.AZURE && c === "azure_auth_role" || ![_.GCP_GCE, _.GCP_IAM].includes(a[t.HCV].auth_method) && c === "gcp_auth_role" || a[t.HCV].auth_method !== _.GCP_IAM && ["gcp_service_account", "gcp_jwt_exp"].includes(c) || a[t.HCV].auth_method !== _.TOKEN && c === "token" || R.value && re.value === ge.Edit && ["token", "oauth2_client_secret", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.APP_ROLE && (c === "approle_role_id" || c === "approle_response_wrapping") || a[t.HCV].auth_method === _.APP_ROLE && c === "approle_response_wrapping" && typeof a[f.value][c] == "boolean" || a[t.HCV].auth_method !== _.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.JWT && ["oauth2_client_id", "oauth2_client_secret", "jwt_role", "oauth2_token_endpoint"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AZURE ? !Object.keys(a[t.AZURE]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AZURE_CERTS ? !Object.keys(a[t.AZURE_CERTS]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AWS ? !Object.keys(a[t.AWS]).filter((c) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(c) ? !1 : A(a[f.value][c])).length : !Object.keys(a[f.value]).filter((c) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length), z = k(() => !!n.fields.prefix && P.value), te = k(() => JSON.stringify(n.fields) !== JSON.stringify(U) || f.value !== oe.value || JSON.stringify(a[f.value]) !== JSON.stringify(se[f.value])), B = k(() => {
|
|
1467
|
+
var o, S;
|
|
1468
|
+
let c = `${s.config.apiBaseUrl}${fe.form[I.value][re.value]}`;
|
|
1469
|
+
return s.config.app === "konnect" && (c = c.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "")), x(c).replace(/\/{workspace}/gi, (S = s.config) != null && S.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId ?? "");
|
|
1470
|
+
}), W = k(() => {
|
|
1471
|
+
var xe, ze;
|
|
1472
1472
|
const c = parseInt(String(a[t.HCV].gcp_jwt_exp), 10), o = {
|
|
1473
1473
|
protocol: a[t.HCV].protocol,
|
|
1474
1474
|
host: a[t.HCV].host,
|
|
@@ -1535,11 +1535,11 @@ const dt = {
|
|
|
1535
1535
|
jwt_role: a[t.HCV].jwt_role,
|
|
1536
1536
|
oauth2_token_endpoint: a[t.HCV].oauth2_token_endpoint
|
|
1537
1537
|
}
|
|
1538
|
-
},
|
|
1538
|
+
}, S = {
|
|
1539
1539
|
...a[f.value],
|
|
1540
1540
|
client_id: a[f.value].client_id || null,
|
|
1541
1541
|
tenant_id: a[f.value].tenant_id || null
|
|
1542
|
-
},
|
|
1542
|
+
}, Z = {
|
|
1543
1543
|
...a[f.value],
|
|
1544
1544
|
client_id: a[f.value].client_id || null,
|
|
1545
1545
|
tenant_id: a[f.value].tenant_id || null
|
|
@@ -1549,51 +1549,59 @@ const dt = {
|
|
|
1549
1549
|
assume_role_arn: a[f.value].assume_role_arn || null,
|
|
1550
1550
|
...s.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: a[f.value].sts_endpoint_url || null } : {}
|
|
1551
1551
|
};
|
|
1552
|
-
let
|
|
1553
|
-
f.value === t.HCV ?
|
|
1554
|
-
let
|
|
1552
|
+
let ae = a[f.value];
|
|
1553
|
+
f.value === t.HCV ? ae = o : f.value === t.AZURE ? ae = S : f.value === t.AZURE_CERTS ? ae = Z : f.value === t.AWS && (ae = m);
|
|
1554
|
+
let _e = {};
|
|
1555
1555
|
if (![t.KONNECT, t.ENV].includes(f.value)) {
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
ttl:
|
|
1559
|
-
neg_ttl:
|
|
1560
|
-
resurrect_ttl:
|
|
1556
|
+
const ue = a[f.value], $e = ue.ttl, Re = ue.neg_ttl, De = ue.resurrect_ttl;
|
|
1557
|
+
_e = {
|
|
1558
|
+
ttl: $e ? parseInt($e.toString(), 10) : null,
|
|
1559
|
+
neg_ttl: Re ? parseInt(Re.toString(), 10) : null,
|
|
1560
|
+
resurrect_ttl: De ? parseInt(De.toString(), 10) : null
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
|
-
const
|
|
1563
|
+
const Ve = {
|
|
1564
1564
|
prefix: n.fields.prefix,
|
|
1565
1565
|
description: n.fields.description || null,
|
|
1566
|
-
tags: (
|
|
1566
|
+
tags: (ze = (xe = n.fields.tags.split(",")) == null ? void 0 : xe.map((ue) => String(ue || "").trim())) == null ? void 0 : ze.filter((ue) => ue !== ""),
|
|
1567
1567
|
name: f.value,
|
|
1568
1568
|
config: {
|
|
1569
|
-
...
|
|
1570
|
-
...
|
|
1569
|
+
...ae,
|
|
1570
|
+
..._e
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1573
|
+
if (!R.value) return Ve;
|
|
1574
|
+
const r = Yt(Ve);
|
|
1575
|
+
if (re.value === ge.Edit) {
|
|
1576
|
+
const ue = { ...r.config };
|
|
1577
|
+
return ["token", "client_secret", "secret_access_key", "api_key", "key"].forEach((Re) => {
|
|
1578
|
+
Re in ue && A(ue[Re]) && delete ue[Re];
|
|
1579
|
+
}), { ...r, config: ue };
|
|
1580
|
+
}
|
|
1581
|
+
return r;
|
|
1582
|
+
}), h = k(() => ({
|
|
1583
|
+
...W.value,
|
|
1576
1584
|
config: {
|
|
1577
|
-
...
|
|
1585
|
+
...W.value.config,
|
|
1578
1586
|
config_store_id: J.value
|
|
1579
1587
|
}
|
|
1580
|
-
})),
|
|
1588
|
+
})), E = async () => {
|
|
1581
1589
|
var c, o;
|
|
1582
1590
|
try {
|
|
1583
1591
|
n.isReadonly = !0;
|
|
1584
|
-
const
|
|
1585
|
-
return
|
|
1586
|
-
} catch (
|
|
1587
|
-
n.errorMessage = w(
|
|
1592
|
+
const S = x(`${s.config.apiBaseUrl}${fe.form[R.value ? "aiGateway" : "konnect"].createConfigStore}`).replace(/{controlPlaneId}/gi, ((c = s.config) == null ? void 0 : c.controlPlaneId) || "").replace(/\/{workspace}/gi, (o = s.config) != null && o.workspace ? `/${s.config.workspace}` : ""), Z = await G.post(S);
|
|
1593
|
+
return Z == null ? void 0 : Z.data.id;
|
|
1594
|
+
} catch (S) {
|
|
1595
|
+
n.errorMessage = w(S), d("error", S);
|
|
1588
1596
|
} finally {
|
|
1589
1597
|
n.isReadonly = !1;
|
|
1590
1598
|
}
|
|
1591
|
-
},
|
|
1599
|
+
}, F = async () => {
|
|
1592
1600
|
var c;
|
|
1593
1601
|
try {
|
|
1594
1602
|
n.isReadonly = !0;
|
|
1595
1603
|
let o;
|
|
1596
|
-
|
|
1604
|
+
re.value === "create" ? f.value === t.KONNECT ? (J.value = await E(), o = await G.post(B.value, h.value)) : o = await G.post(B.value, W.value) : re.value === "edit" && (f.value === t.KONNECT && !J.value ? (J.value = await E(), o = await G.put(B.value, h.value)) : o = ((c = s.config) == null ? void 0 : c.app) === "konnect" ? await G.put(B.value, h.value) : await G.patch(B.value, W.value)), C(o == null ? void 0 : o.data), d("update", o == null ? void 0 : o.data);
|
|
1597
1605
|
} catch (o) {
|
|
1598
1606
|
n.errorMessage = w(o), d("error", o);
|
|
1599
1607
|
} finally {
|
|
@@ -1601,59 +1609,60 @@ const dt = {
|
|
|
1601
1609
|
}
|
|
1602
1610
|
};
|
|
1603
1611
|
return (c, o) => {
|
|
1604
|
-
const
|
|
1605
|
-
return
|
|
1606
|
-
u(e(
|
|
1607
|
-
"can-submit":
|
|
1612
|
+
const S = Q("KTooltip"), Z = Q("KSelect"), m = Q("KInput"), ae = Q("KCheckbox"), _e = Q("KTextArea"), Ve = Q("KCollapse");
|
|
1613
|
+
return v(), N("div", ia, [
|
|
1614
|
+
u(e(ct), {
|
|
1615
|
+
"can-submit": z.value && te.value,
|
|
1608
1616
|
config: l.config,
|
|
1609
1617
|
"edit-id": l.vaultId,
|
|
1610
|
-
"entity-type": e(
|
|
1618
|
+
"entity-type": e(qe).Vault,
|
|
1611
1619
|
"error-message": n.errorMessage,
|
|
1612
|
-
"fetch-url":
|
|
1613
|
-
"form-fields":
|
|
1620
|
+
"fetch-url": be.value,
|
|
1621
|
+
"form-fields": W.value,
|
|
1614
1622
|
"is-readonly": n.isReadonly,
|
|
1615
|
-
|
|
1623
|
+
"tabs-to-hide": l.config.apiType === "aiGateway" ? ["terraform", "deck"] : [],
|
|
1624
|
+
onCancel: le,
|
|
1616
1625
|
"onFetch:error": ee,
|
|
1617
|
-
"onFetch:success":
|
|
1618
|
-
onLoading:
|
|
1619
|
-
onSubmit:
|
|
1626
|
+
"onFetch:success": C,
|
|
1627
|
+
onLoading: X,
|
|
1628
|
+
onSubmit: F
|
|
1620
1629
|
}, {
|
|
1621
|
-
default:
|
|
1622
|
-
u(e(
|
|
1623
|
-
description: e(
|
|
1624
|
-
title: e(
|
|
1630
|
+
default: y(() => [
|
|
1631
|
+
u(e(Oe), {
|
|
1632
|
+
description: e(i)("form.sections.config.description"),
|
|
1633
|
+
title: e(i)("form.sections.config.title")
|
|
1625
1634
|
}, {
|
|
1626
|
-
default:
|
|
1627
|
-
|
|
1628
|
-
u(
|
|
1635
|
+
default: y(() => [
|
|
1636
|
+
M("div", ra, [
|
|
1637
|
+
u(Z, {
|
|
1629
1638
|
modelValue: f.value,
|
|
1630
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1639
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => f.value = r),
|
|
1631
1640
|
"data-testid": "provider-select",
|
|
1632
|
-
disabled:
|
|
1641
|
+
disabled: q.value,
|
|
1633
1642
|
"dropdown-max-height": "500",
|
|
1634
|
-
items:
|
|
1643
|
+
items: pe.value,
|
|
1635
1644
|
readonly: n.isReadonly
|
|
1636
1645
|
}, {
|
|
1637
|
-
"selected-item-template":
|
|
1638
|
-
(
|
|
1639
|
-
|
|
1646
|
+
"selected-item-template": y(({ item: r }) => [
|
|
1647
|
+
(v(), H(Be(we(r.value)))),
|
|
1648
|
+
M("span", null, O(r == null ? void 0 : r.label), 1)
|
|
1640
1649
|
]),
|
|
1641
|
-
"item-template":
|
|
1642
|
-
u(
|
|
1650
|
+
"item-template": y(({ item: r }) => [
|
|
1651
|
+
u(S, {
|
|
1643
1652
|
placement: "top",
|
|
1644
|
-
text:
|
|
1653
|
+
text: r.disabled ? e(i)("form.unavailable") : ""
|
|
1645
1654
|
}, {
|
|
1646
|
-
default:
|
|
1647
|
-
|
|
1655
|
+
default: y(() => [
|
|
1656
|
+
M("div", {
|
|
1648
1657
|
class: "provider-item",
|
|
1649
|
-
"data-testid": `vault-form-provider-${
|
|
1658
|
+
"data-testid": `vault-form-provider-${r.value}`
|
|
1650
1659
|
}, [
|
|
1651
|
-
(
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1660
|
+
(v(), H(Be(we(r.value)))),
|
|
1661
|
+
M("div", sa, [
|
|
1662
|
+
M("span", da, O(r == null ? void 0 : r.label), 1),
|
|
1663
|
+
M("span", ua, O(Se(r.value)), 1)
|
|
1655
1664
|
])
|
|
1656
|
-
], 8,
|
|
1665
|
+
], 8, na)
|
|
1657
1666
|
]),
|
|
1658
1667
|
_: 2
|
|
1659
1668
|
}, 1032, ["text"])
|
|
@@ -1661,63 +1670,63 @@ const dt = {
|
|
|
1661
1670
|
_: 1
|
|
1662
1671
|
}, 8, ["modelValue", "disabled", "items", "readonly"])
|
|
1663
1672
|
]),
|
|
1664
|
-
u(
|
|
1665
|
-
default:
|
|
1666
|
-
f.value === e(t).ENV ? (
|
|
1673
|
+
u(mt, { name: "appear" }, {
|
|
1674
|
+
default: y(() => [
|
|
1675
|
+
f.value === e(t).ENV ? (v(), N("div", ca, [
|
|
1667
1676
|
u(m, {
|
|
1668
1677
|
modelValue: a[e(t).ENV].prefix,
|
|
1669
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1678
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => a[e(t).ENV].prefix = r),
|
|
1670
1679
|
modelModifiers: { trim: !0 },
|
|
1671
1680
|
autocomplete: "off",
|
|
1672
1681
|
"data-testid": "vault-form-config-kong-prefix",
|
|
1673
|
-
label: e(
|
|
1682
|
+
label: e(i)("form.config.env.fields.prefix.label"),
|
|
1674
1683
|
"label-attributes": {
|
|
1675
|
-
info: e(
|
|
1684
|
+
info: e(i)("form.config.env.fields.prefix.tooltip"),
|
|
1676
1685
|
tooltipAttributes: { maxWidth: "400" }
|
|
1677
1686
|
},
|
|
1678
|
-
placeholder: e(
|
|
1687
|
+
placeholder: e(i)("form.config.env.fields.prefix.placeholder"),
|
|
1679
1688
|
readonly: n.isReadonly,
|
|
1680
1689
|
required: "",
|
|
1681
1690
|
type: "text"
|
|
1682
1691
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1683
|
-
l.config.base64FieldAvailable ? (
|
|
1692
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
1684
1693
|
key: 0,
|
|
1685
1694
|
modelValue: a[e(t).ENV].base64_decode,
|
|
1686
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
1695
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => a[e(t).ENV].base64_decode = r),
|
|
1687
1696
|
"data-testid": "vault-form-config-env-base64_decode",
|
|
1688
|
-
label: e(
|
|
1697
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
1689
1698
|
"label-attributes": {
|
|
1690
|
-
info: e(
|
|
1699
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
1691
1700
|
tooltipAttributes: { maxWidth: "400" }
|
|
1692
1701
|
},
|
|
1693
1702
|
readonly: n.isReadonly
|
|
1694
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1695
|
-
])) :
|
|
1696
|
-
f.value === e(t).AWS ? (
|
|
1703
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
1704
|
+
])) : j("", !0),
|
|
1705
|
+
f.value === e(t).AWS ? (v(), N("div", {
|
|
1697
1706
|
key: `${e(t).AWS}-vault-config-fields`,
|
|
1698
1707
|
class: "vault-form-config-fields-container"
|
|
1699
1708
|
}, [
|
|
1700
|
-
u(
|
|
1709
|
+
u(Z, {
|
|
1701
1710
|
modelValue: a[e(t).AWS].region,
|
|
1702
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
1711
|
+
"onUpdate:modelValue": o[3] || (o[3] = (r) => a[e(t).AWS].region = r),
|
|
1703
1712
|
"data-testid": "vault-form-config-aws-region",
|
|
1704
1713
|
items: V,
|
|
1705
|
-
label: e(
|
|
1706
|
-
"label-attributes": { info: e(
|
|
1707
|
-
placeholder: e(
|
|
1714
|
+
label: e(i)("form.config.aws.fields.region.label"),
|
|
1715
|
+
"label-attributes": { info: e(i)("form.config.aws.fields.region.tooltip") },
|
|
1716
|
+
placeholder: e(i)("form.config.aws.fields.region.placeholder"),
|
|
1708
1717
|
readonly: n.isReadonly,
|
|
1709
1718
|
required: "",
|
|
1710
1719
|
width: "100%"
|
|
1711
1720
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1712
1721
|
u(m, {
|
|
1713
1722
|
modelValue: a[e(t).AWS].endpoint_url,
|
|
1714
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
|
1723
|
+
"onUpdate:modelValue": o[4] || (o[4] = (r) => a[e(t).AWS].endpoint_url = r),
|
|
1715
1724
|
modelModifiers: { trim: !0 },
|
|
1716
1725
|
autocomplete: "off",
|
|
1717
1726
|
"data-testid": "vault-form-config-aws-endpoint_url",
|
|
1718
|
-
label: e(
|
|
1727
|
+
label: e(i)("form.config.aws.fields.endpoint_url.label"),
|
|
1719
1728
|
"label-attributes": {
|
|
1720
|
-
info: e(
|
|
1729
|
+
info: e(i)("form.config.aws.fields.endpoint_url.tooltip"),
|
|
1721
1730
|
tooltipAttributes: { maxWidth: "400" }
|
|
1722
1731
|
},
|
|
1723
1732
|
readonly: n.isReadonly,
|
|
@@ -1725,13 +1734,13 @@ const dt = {
|
|
|
1725
1734
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1726
1735
|
u(m, {
|
|
1727
1736
|
modelValue: a[e(t).AWS].assume_role_arn,
|
|
1728
|
-
"onUpdate:modelValue": o[5] || (o[5] = (
|
|
1737
|
+
"onUpdate:modelValue": o[5] || (o[5] = (r) => a[e(t).AWS].assume_role_arn = r),
|
|
1729
1738
|
modelModifiers: { trim: !0 },
|
|
1730
1739
|
autocomplete: "off",
|
|
1731
1740
|
"data-testid": "vault-form-config-aws-assume_role_arn",
|
|
1732
|
-
label: e(
|
|
1741
|
+
label: e(i)("form.config.aws.fields.assume_role_arn.label"),
|
|
1733
1742
|
"label-attributes": {
|
|
1734
|
-
info: e(
|
|
1743
|
+
info: e(i)("form.config.aws.fields.assume_role_arn.tooltip"),
|
|
1735
1744
|
tooltipAttributes: { maxWidth: "400" }
|
|
1736
1745
|
},
|
|
1737
1746
|
readonly: n.isReadonly,
|
|
@@ -1739,128 +1748,128 @@ const dt = {
|
|
|
1739
1748
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1740
1749
|
u(m, {
|
|
1741
1750
|
modelValue: a[e(t).AWS].role_session_name,
|
|
1742
|
-
"onUpdate:modelValue": o[6] || (o[6] = (
|
|
1751
|
+
"onUpdate:modelValue": o[6] || (o[6] = (r) => a[e(t).AWS].role_session_name = r),
|
|
1743
1752
|
modelModifiers: { trim: !0 },
|
|
1744
1753
|
autocomplete: "off",
|
|
1745
1754
|
"data-testid": "vault-form-config-aws-role_session_name",
|
|
1746
|
-
label: e(
|
|
1755
|
+
label: e(i)("form.config.aws.fields.role_session_name.label"),
|
|
1747
1756
|
"label-attributes": {
|
|
1748
|
-
info: e(
|
|
1757
|
+
info: e(i)("form.config.aws.fields.role_session_name.tooltip"),
|
|
1749
1758
|
tooltipAttributes: { maxWidth: "400" }
|
|
1750
1759
|
},
|
|
1751
1760
|
readonly: n.isReadonly,
|
|
1752
1761
|
required: "",
|
|
1753
1762
|
type: "text"
|
|
1754
1763
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1755
|
-
l.config.awsStsEndpointUrlAvailable ? (
|
|
1764
|
+
l.config.awsStsEndpointUrlAvailable ? (v(), H(m, {
|
|
1756
1765
|
key: 0,
|
|
1757
1766
|
modelValue: a[e(t).AWS].sts_endpoint_url,
|
|
1758
|
-
"onUpdate:modelValue": o[7] || (o[7] = (
|
|
1767
|
+
"onUpdate:modelValue": o[7] || (o[7] = (r) => a[e(t).AWS].sts_endpoint_url = r),
|
|
1759
1768
|
modelModifiers: { trim: !0 },
|
|
1760
1769
|
autocomplete: "off",
|
|
1761
1770
|
"data-testid": "vault-form-config-aws-sts_endpoint_url",
|
|
1762
|
-
label: e(
|
|
1771
|
+
label: e(i)("form.config.aws.fields.sts_endpoint_url.label"),
|
|
1763
1772
|
"label-attributes": {
|
|
1764
|
-
info: e(
|
|
1773
|
+
info: e(i)("form.config.aws.fields.sts_endpoint_url.tooltip"),
|
|
1765
1774
|
tooltipAttributes: { maxWidth: "400" }
|
|
1766
1775
|
},
|
|
1767
1776
|
readonly: n.isReadonly,
|
|
1768
1777
|
type: "text"
|
|
1769
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1770
|
-
l.config.base64FieldAvailable ? (
|
|
1778
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0),
|
|
1779
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
1771
1780
|
key: 1,
|
|
1772
1781
|
modelValue: a[e(t).AWS].base64_decode,
|
|
1773
|
-
"onUpdate:modelValue": o[8] || (o[8] = (
|
|
1782
|
+
"onUpdate:modelValue": o[8] || (o[8] = (r) => a[e(t).AWS].base64_decode = r),
|
|
1774
1783
|
"data-testid": "vault-form-config-aws-base64_decode",
|
|
1775
|
-
label: e(
|
|
1784
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
1776
1785
|
"label-attributes": {
|
|
1777
|
-
info: e(
|
|
1786
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
1778
1787
|
tooltipAttributes: { maxWidth: "400" }
|
|
1779
1788
|
},
|
|
1780
1789
|
readonly: n.isReadonly
|
|
1781
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1782
|
-
])) :
|
|
1783
|
-
f.value === e(t).GCP ? (
|
|
1790
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
1791
|
+
])) : j("", !0),
|
|
1792
|
+
f.value === e(t).GCP ? (v(), N("div", {
|
|
1784
1793
|
key: `${e(t).GCP}-vault-config-fields`,
|
|
1785
1794
|
class: "vault-form-config-fields-container"
|
|
1786
1795
|
}, [
|
|
1787
1796
|
u(m, {
|
|
1788
1797
|
modelValue: a[e(t).GCP].project_id,
|
|
1789
|
-
"onUpdate:modelValue": o[9] || (o[9] = (
|
|
1798
|
+
"onUpdate:modelValue": o[9] || (o[9] = (r) => a[e(t).GCP].project_id = r),
|
|
1790
1799
|
modelModifiers: { trim: !0 },
|
|
1791
1800
|
autocomplete: "off",
|
|
1792
1801
|
"data-testid": "vault-form-config-gcp-project-id",
|
|
1793
|
-
label: e(
|
|
1794
|
-
placeholder: e(
|
|
1802
|
+
label: e(i)("form.config.gcp.fields.project_id.label"),
|
|
1803
|
+
placeholder: e(i)("form.config.gcp.fields.project_id.placeholder"),
|
|
1795
1804
|
readonly: n.isReadonly,
|
|
1796
1805
|
required: "",
|
|
1797
1806
|
type: "text"
|
|
1798
1807
|
}, {
|
|
1799
|
-
"label-tooltip":
|
|
1808
|
+
"label-tooltip": y(() => [
|
|
1800
1809
|
u(e(p), {
|
|
1801
1810
|
keypath: "form.config.gcp.fields.project_id.tooltip.text",
|
|
1802
1811
|
scope: "global"
|
|
1803
1812
|
}, {
|
|
1804
|
-
"italic-text":
|
|
1805
|
-
|
|
1813
|
+
"italic-text": y(() => [
|
|
1814
|
+
M("em", null, O(e(i)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
|
|
1806
1815
|
]),
|
|
1807
1816
|
_: 1
|
|
1808
1817
|
})
|
|
1809
1818
|
]),
|
|
1810
1819
|
_: 1
|
|
1811
1820
|
}, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
1812
|
-
l.config.base64FieldAvailable ? (
|
|
1821
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
1813
1822
|
key: 0,
|
|
1814
1823
|
modelValue: a[e(t).GCP].base64_decode,
|
|
1815
|
-
"onUpdate:modelValue": o[10] || (o[10] = (
|
|
1824
|
+
"onUpdate:modelValue": o[10] || (o[10] = (r) => a[e(t).GCP].base64_decode = r),
|
|
1816
1825
|
"data-testid": "vault-form-config-gcp-base64_decode",
|
|
1817
|
-
label: e(
|
|
1826
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
1818
1827
|
"label-attributes": {
|
|
1819
|
-
info: e(
|
|
1828
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
1820
1829
|
tooltipAttributes: { maxWidth: "400" }
|
|
1821
1830
|
},
|
|
1822
1831
|
readonly: n.isReadonly
|
|
1823
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1824
|
-
])) :
|
|
1825
|
-
f.value === e(t).HCV ? (
|
|
1832
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
1833
|
+
])) : j("", !0),
|
|
1834
|
+
f.value === e(t).HCV ? (v(), N("div", {
|
|
1826
1835
|
key: `${e(t).HCV}-vault-config-fields`,
|
|
1827
1836
|
class: "vault-form-config-fields-container"
|
|
1828
1837
|
}, [
|
|
1829
|
-
u(
|
|
1838
|
+
u(Z, {
|
|
1830
1839
|
modelValue: a[e(t).HCV].protocol,
|
|
1831
|
-
"onUpdate:modelValue": o[11] || (o[11] = (
|
|
1840
|
+
"onUpdate:modelValue": o[11] || (o[11] = (r) => a[e(t).HCV].protocol = r),
|
|
1832
1841
|
"data-testid": "vault-form-config-hcv-protocol",
|
|
1833
|
-
items:
|
|
1834
|
-
label: e(
|
|
1842
|
+
items: ie,
|
|
1843
|
+
label: e(i)("form.config.hcv.fields.protocol.label"),
|
|
1835
1844
|
readonly: n.isReadonly,
|
|
1836
1845
|
required: "",
|
|
1837
1846
|
width: "100%"
|
|
1838
1847
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1839
|
-
l.config.hcvSslVerifyAvailable ? (
|
|
1848
|
+
l.config.hcvSslVerifyAvailable ? (v(), H(ae, {
|
|
1840
1849
|
key: 0,
|
|
1841
1850
|
modelValue: a[e(t).HCV].ssl_verify,
|
|
1842
|
-
"onUpdate:modelValue": o[12] || (o[12] = (
|
|
1851
|
+
"onUpdate:modelValue": o[12] || (o[12] = (r) => a[e(t).HCV].ssl_verify = r),
|
|
1843
1852
|
"data-testid": "vault-form-config-hcv-ssl_verify",
|
|
1844
|
-
label: e(
|
|
1853
|
+
label: e(i)("form.config.hcv.fields.ssl_verify.label"),
|
|
1845
1854
|
readonly: n.isReadonly
|
|
1846
|
-
}, null, 8, ["modelValue", "label", "readonly"])) :
|
|
1855
|
+
}, null, 8, ["modelValue", "label", "readonly"])) : j("", !0),
|
|
1847
1856
|
u(m, {
|
|
1848
1857
|
modelValue: a[e(t).HCV].host,
|
|
1849
|
-
"onUpdate:modelValue": o[13] || (o[13] = (
|
|
1858
|
+
"onUpdate:modelValue": o[13] || (o[13] = (r) => a[e(t).HCV].host = r),
|
|
1850
1859
|
modelModifiers: { trim: !0 },
|
|
1851
1860
|
autocomplete: "off",
|
|
1852
1861
|
"data-testid": "vault-form-config-hcv-host",
|
|
1853
|
-
label: e(
|
|
1862
|
+
label: e(i)("form.config.hcv.fields.host.label"),
|
|
1854
1863
|
readonly: n.isReadonly,
|
|
1855
1864
|
required: "",
|
|
1856
1865
|
type: "text"
|
|
1857
1866
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1858
1867
|
u(m, {
|
|
1859
1868
|
modelValue: a[e(t).HCV].port,
|
|
1860
|
-
"onUpdate:modelValue": o[14] || (o[14] = (
|
|
1869
|
+
"onUpdate:modelValue": o[14] || (o[14] = (r) => a[e(t).HCV].port = r),
|
|
1861
1870
|
autocomplete: "off",
|
|
1862
1871
|
"data-testid": "vault-form-config-hcv-port",
|
|
1863
|
-
label: e(
|
|
1872
|
+
label: e(i)("form.config.hcv.fields.port.label"),
|
|
1864
1873
|
min: "0",
|
|
1865
1874
|
readonly: n.isReadonly,
|
|
1866
1875
|
required: "",
|
|
@@ -1868,38 +1877,38 @@ const dt = {
|
|
|
1868
1877
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1869
1878
|
u(m, {
|
|
1870
1879
|
modelValue: a[e(t).HCV].mount,
|
|
1871
|
-
"onUpdate:modelValue": o[15] || (o[15] = (
|
|
1880
|
+
"onUpdate:modelValue": o[15] || (o[15] = (r) => a[e(t).HCV].mount = r),
|
|
1872
1881
|
modelModifiers: { trim: !0 },
|
|
1873
1882
|
autocomplete: "off",
|
|
1874
1883
|
"data-testid": "vault-form-config-hcv-mount",
|
|
1875
|
-
label: e(
|
|
1884
|
+
label: e(i)("form.config.hcv.fields.mount.label"),
|
|
1876
1885
|
readonly: n.isReadonly,
|
|
1877
1886
|
required: "",
|
|
1878
1887
|
type: "text"
|
|
1879
1888
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1880
|
-
u(
|
|
1889
|
+
u(Z, {
|
|
1881
1890
|
modelValue: a[e(t).HCV].kv,
|
|
1882
|
-
"onUpdate:modelValue": o[16] || (o[16] = (
|
|
1891
|
+
"onUpdate:modelValue": o[16] || (o[16] = (r) => a[e(t).HCV].kv = r),
|
|
1883
1892
|
"data-testid": "vault-form-config-hcv-kv",
|
|
1884
|
-
items:
|
|
1885
|
-
label: e(
|
|
1893
|
+
items: me,
|
|
1894
|
+
label: e(i)("form.config.hcv.fields.kv.label"),
|
|
1886
1895
|
readonly: n.isReadonly,
|
|
1887
1896
|
required: "",
|
|
1888
1897
|
width: "100%"
|
|
1889
1898
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1890
1899
|
u(m, {
|
|
1891
1900
|
modelValue: a[e(t).HCV].namespace,
|
|
1892
|
-
"onUpdate:modelValue": o[17] || (o[17] = (
|
|
1901
|
+
"onUpdate:modelValue": o[17] || (o[17] = (r) => a[e(t).HCV].namespace = r),
|
|
1893
1902
|
modelModifiers: { trim: !0 },
|
|
1894
1903
|
autocomplete: "off",
|
|
1895
1904
|
"data-testid": "vault-form-config-hcv-namespace",
|
|
1896
|
-
label: e(
|
|
1905
|
+
label: e(i)("form.config.hcv.fields.namespace.label"),
|
|
1897
1906
|
readonly: n.isReadonly,
|
|
1898
1907
|
type: "text"
|
|
1899
1908
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1900
|
-
u(
|
|
1909
|
+
u(Z, {
|
|
1901
1910
|
modelValue: a[e(t).HCV].auth_method,
|
|
1902
|
-
"onUpdate:modelValue": o[18] || (o[18] = (
|
|
1911
|
+
"onUpdate:modelValue": o[18] || (o[18] = (r) => a[e(t).HCV].auth_method = r),
|
|
1903
1912
|
"data-testid": "vault-form-config-hcv-auth_method",
|
|
1904
1913
|
items: [
|
|
1905
1914
|
{ label: e(_).TOKEN, value: e(_).TOKEN },
|
|
@@ -1915,161 +1924,180 @@ const dt = {
|
|
|
1915
1924
|
{ label: e(_).GCP_IAM, value: e(_).GCP_IAM }
|
|
1916
1925
|
] : []
|
|
1917
1926
|
],
|
|
1918
|
-
label: e(
|
|
1927
|
+
label: e(i)("form.config.hcv.fields.auth_method.label"),
|
|
1919
1928
|
readonly: n.isReadonly,
|
|
1920
1929
|
required: "",
|
|
1921
1930
|
width: "100%"
|
|
1922
1931
|
}, null, 8, ["modelValue", "items", "label", "readonly"]),
|
|
1923
|
-
a[e(t).HCV].auth_method === e(_).TOKEN ? (
|
|
1924
|
-
|
|
1932
|
+
a[e(t).HCV].auth_method === e(_).TOKEN ? (v(), N("div", fa, [
|
|
1933
|
+
R.value ? (v(), H(e(Te), {
|
|
1934
|
+
key: 1,
|
|
1935
|
+
modelValue: a[e(t).HCV].token,
|
|
1936
|
+
"onUpdate:modelValue": o[20] || (o[20] = (r) => a[e(t).HCV].token = r),
|
|
1937
|
+
"data-testid": "vault-form-config-hcv-token",
|
|
1938
|
+
label: e(i)("form.config.hcv.fields.token.label"),
|
|
1939
|
+
mode: L.value,
|
|
1940
|
+
readonly: n.isReadonly,
|
|
1941
|
+
required: L.value === "create"
|
|
1942
|
+
}, null, 8, ["modelValue", "label", "mode", "readonly", "required"])) : (v(), H(m, {
|
|
1943
|
+
key: 0,
|
|
1925
1944
|
modelValue: a[e(t).HCV].token,
|
|
1926
|
-
"onUpdate:modelValue": o[19] || (o[19] = (
|
|
1945
|
+
"onUpdate:modelValue": o[19] || (o[19] = (r) => a[e(t).HCV].token = r),
|
|
1927
1946
|
modelModifiers: { trim: !0 },
|
|
1928
1947
|
autocomplete: "off",
|
|
1929
1948
|
"data-testid": "vault-form-config-hcv-token",
|
|
1930
|
-
label: e(
|
|
1949
|
+
label: e(i)("form.config.hcv.fields.token.label"),
|
|
1931
1950
|
readonly: n.isReadonly,
|
|
1932
1951
|
required: "",
|
|
1933
1952
|
"show-password-mask-toggle": "",
|
|
1934
1953
|
type: "password"
|
|
1935
|
-
}, null, 8, ["modelValue", "label", "readonly"])
|
|
1936
|
-
])) : a[e(t).HCV].auth_method === e(_).K8S ? (
|
|
1954
|
+
}, null, 8, ["modelValue", "label", "readonly"]))
|
|
1955
|
+
])) : a[e(t).HCV].auth_method === e(_).K8S ? (v(), N("div", pa, [
|
|
1937
1956
|
u(m, {
|
|
1938
1957
|
modelValue: a[e(t).HCV].kube_role,
|
|
1939
|
-
"onUpdate:modelValue": o[
|
|
1958
|
+
"onUpdate:modelValue": o[21] || (o[21] = (r) => a[e(t).HCV].kube_role = r),
|
|
1940
1959
|
modelModifiers: { trim: !0 },
|
|
1941
1960
|
autocomplete: "off",
|
|
1942
1961
|
"data-testid": "vault-form-config-hcv-kube_role",
|
|
1943
|
-
label: e(
|
|
1962
|
+
label: e(i)("form.config.hcv.fields.kube_role.label"),
|
|
1944
1963
|
readonly: n.isReadonly,
|
|
1945
1964
|
required: "",
|
|
1946
1965
|
type: "text"
|
|
1947
1966
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1948
1967
|
u(m, {
|
|
1949
1968
|
modelValue: a[e(t).HCV].kube_auth_path,
|
|
1950
|
-
"onUpdate:modelValue": o[
|
|
1969
|
+
"onUpdate:modelValue": o[22] || (o[22] = (r) => a[e(t).HCV].kube_auth_path = r),
|
|
1951
1970
|
modelModifiers: { trim: !0 },
|
|
1952
1971
|
autocomplete: "off",
|
|
1953
1972
|
"data-testid": "vault-form-config-hcv-kube_auth_path",
|
|
1954
|
-
label: e(
|
|
1973
|
+
label: e(i)("form.config.hcv.fields.kube_auth_path.label"),
|
|
1955
1974
|
readonly: n.isReadonly,
|
|
1956
1975
|
type: "text"
|
|
1957
1976
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1958
1977
|
u(m, {
|
|
1959
1978
|
modelValue: a[e(t).HCV].kube_api_token_file,
|
|
1960
|
-
"onUpdate:modelValue": o[
|
|
1979
|
+
"onUpdate:modelValue": o[23] || (o[23] = (r) => a[e(t).HCV].kube_api_token_file = r),
|
|
1961
1980
|
modelModifiers: { trim: !0 },
|
|
1962
1981
|
autocomplete: "off",
|
|
1963
1982
|
"data-testid": "vault-form-config-hcv-kube_api_token_file",
|
|
1964
|
-
label: e(
|
|
1983
|
+
label: e(i)("form.config.hcv.fields.kube_api_token_file.label"),
|
|
1965
1984
|
readonly: n.isReadonly,
|
|
1966
1985
|
required: "",
|
|
1967
1986
|
type: "text"
|
|
1968
1987
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
1969
|
-
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_IAM ? (
|
|
1988
|
+
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_IAM ? (v(), N("div", ma, [
|
|
1970
1989
|
u(m, {
|
|
1971
1990
|
modelValue: a[e(t).HCV].aws_auth_role,
|
|
1972
|
-
"onUpdate:modelValue": o[
|
|
1991
|
+
"onUpdate:modelValue": o[24] || (o[24] = (r) => a[e(t).HCV].aws_auth_role = r),
|
|
1973
1992
|
modelModifiers: { trim: !0 },
|
|
1974
1993
|
autocomplete: "off",
|
|
1975
1994
|
"data-testid": "vault-form-config-hcv-aws_auth_role",
|
|
1976
|
-
label: e(
|
|
1995
|
+
label: e(i)("form.config.hcv.fields.aws_auth_role.label"),
|
|
1977
1996
|
readonly: n.isReadonly,
|
|
1978
1997
|
required: "",
|
|
1979
1998
|
type: "text"
|
|
1980
1999
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1981
2000
|
u(m, {
|
|
1982
2001
|
modelValue: a[e(t).HCV].aws_auth_region,
|
|
1983
|
-
"onUpdate:modelValue": o[
|
|
2002
|
+
"onUpdate:modelValue": o[25] || (o[25] = (r) => a[e(t).HCV].aws_auth_region = r),
|
|
1984
2003
|
modelModifiers: { trim: !0 },
|
|
1985
2004
|
autocomplete: "off",
|
|
1986
2005
|
"data-testid": "vault-form-config-hcv-aws_auth_region",
|
|
1987
|
-
label: e(
|
|
2006
|
+
label: e(i)("form.config.hcv.fields.aws_auth_region.label"),
|
|
1988
2007
|
readonly: n.isReadonly,
|
|
1989
2008
|
required: "",
|
|
1990
2009
|
type: "text"
|
|
1991
2010
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1992
2011
|
u(m, {
|
|
1993
2012
|
modelValue: a[e(t).HCV].aws_login_path,
|
|
1994
|
-
"onUpdate:modelValue": o[
|
|
2013
|
+
"onUpdate:modelValue": o[26] || (o[26] = (r) => a[e(t).HCV].aws_login_path = r),
|
|
1995
2014
|
modelModifiers: { trim: !0 },
|
|
1996
2015
|
autocomplete: "off",
|
|
1997
2016
|
"data-testid": "vault-form-config-hcv-aws_login_path",
|
|
1998
|
-
label: e(
|
|
2017
|
+
label: e(i)("form.config.hcv.fields.aws_login_path.label"),
|
|
1999
2018
|
readonly: n.isReadonly,
|
|
2000
2019
|
type: "text"
|
|
2001
2020
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2002
2021
|
u(m, {
|
|
2003
2022
|
modelValue: a[e(t).HCV].aws_access_key_id,
|
|
2004
|
-
"onUpdate:modelValue": o[
|
|
2023
|
+
"onUpdate:modelValue": o[27] || (o[27] = (r) => a[e(t).HCV].aws_access_key_id = r),
|
|
2005
2024
|
modelModifiers: { trim: !0 },
|
|
2006
2025
|
autocomplete: "off",
|
|
2007
2026
|
"data-testid": "vault-form-config-hcv-aws_access_key_id",
|
|
2008
|
-
label: e(
|
|
2027
|
+
label: e(i)("form.config.hcv.fields.aws_access_key_id.label"),
|
|
2009
2028
|
readonly: n.isReadonly,
|
|
2010
2029
|
"show-password-mask-toggle": "",
|
|
2011
2030
|
type: "password"
|
|
2012
2031
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2013
|
-
|
|
2032
|
+
R.value ? (v(), H(e(Te), {
|
|
2033
|
+
key: 1,
|
|
2034
|
+
modelValue: a[e(t).HCV].aws_secret_access_key,
|
|
2035
|
+
"onUpdate:modelValue": o[29] || (o[29] = (r) => a[e(t).HCV].aws_secret_access_key = r),
|
|
2036
|
+
"data-testid": "vault-form-config-hcv-aws_secret_access_key",
|
|
2037
|
+
label: e(i)("form.config.hcv.fields.aws_secret_access_key.label"),
|
|
2038
|
+
mode: L.value,
|
|
2039
|
+
readonly: n.isReadonly
|
|
2040
|
+
}, null, 8, ["modelValue", "label", "mode", "readonly"])) : (v(), H(m, {
|
|
2041
|
+
key: 0,
|
|
2014
2042
|
modelValue: a[e(t).HCV].aws_secret_access_key,
|
|
2015
|
-
"onUpdate:modelValue": o[
|
|
2043
|
+
"onUpdate:modelValue": o[28] || (o[28] = (r) => a[e(t).HCV].aws_secret_access_key = r),
|
|
2016
2044
|
modelModifiers: { trim: !0 },
|
|
2017
2045
|
autocomplete: "off",
|
|
2018
2046
|
"data-testid": "vault-form-config-hcv-aws_secret_access_key",
|
|
2019
|
-
label: e(
|
|
2047
|
+
label: e(i)("form.config.hcv.fields.aws_secret_access_key.label"),
|
|
2020
2048
|
readonly: n.isReadonly,
|
|
2021
2049
|
"show-password-mask-toggle": "",
|
|
2022
2050
|
type: "password"
|
|
2023
|
-
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2051
|
+
}, null, 8, ["modelValue", "label", "readonly"])),
|
|
2024
2052
|
u(m, {
|
|
2025
2053
|
modelValue: a[e(t).HCV].aws_sts_endpoint_url,
|
|
2026
|
-
"onUpdate:modelValue": o[
|
|
2054
|
+
"onUpdate:modelValue": o[30] || (o[30] = (r) => a[e(t).HCV].aws_sts_endpoint_url = r),
|
|
2027
2055
|
modelModifiers: { trim: !0 },
|
|
2028
2056
|
autocomplete: "off",
|
|
2029
2057
|
"data-testid": "vault-form-config-hcv-aws_sts_endpoint_url",
|
|
2030
|
-
label: e(
|
|
2058
|
+
label: e(i)("form.config.hcv.fields.aws_sts_endpoint_url.label"),
|
|
2031
2059
|
readonly: n.isReadonly,
|
|
2032
2060
|
type: "text"
|
|
2033
2061
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2034
2062
|
u(m, {
|
|
2035
2063
|
modelValue: a[e(t).HCV].aws_assume_role_arn,
|
|
2036
|
-
"onUpdate:modelValue": o[
|
|
2064
|
+
"onUpdate:modelValue": o[31] || (o[31] = (r) => a[e(t).HCV].aws_assume_role_arn = r),
|
|
2037
2065
|
modelModifiers: { trim: !0 },
|
|
2038
2066
|
autocomplete: "off",
|
|
2039
2067
|
"data-testid": "vault-form-config-hcv-aws_assume_role_arn",
|
|
2040
|
-
label: e(
|
|
2068
|
+
label: e(i)("form.config.hcv.fields.aws_assume_role_arn.label"),
|
|
2041
2069
|
readonly: n.isReadonly,
|
|
2042
2070
|
type: "text"
|
|
2043
2071
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2044
2072
|
u(m, {
|
|
2045
2073
|
modelValue: a[e(t).HCV].aws_role_session_name,
|
|
2046
|
-
"onUpdate:modelValue": o[
|
|
2074
|
+
"onUpdate:modelValue": o[32] || (o[32] = (r) => a[e(t).HCV].aws_role_session_name = r),
|
|
2047
2075
|
modelModifiers: { trim: !0 },
|
|
2048
2076
|
autocomplete: "off",
|
|
2049
2077
|
"data-testid": "vault-form-config-hcv-aws_role_session_name",
|
|
2050
|
-
label: e(
|
|
2078
|
+
label: e(i)("form.config.hcv.fields.aws_role_session_name.label"),
|
|
2051
2079
|
readonly: n.isReadonly,
|
|
2052
2080
|
type: "text"
|
|
2053
2081
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2054
|
-
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_EC2 ? (
|
|
2082
|
+
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_EC2 ? (v(), N("div", _a, [
|
|
2055
2083
|
u(m, {
|
|
2056
2084
|
modelValue: a[e(t).HCV].aws_auth_role,
|
|
2057
|
-
"onUpdate:modelValue": o[
|
|
2085
|
+
"onUpdate:modelValue": o[33] || (o[33] = (r) => a[e(t).HCV].aws_auth_role = r),
|
|
2058
2086
|
modelModifiers: { trim: !0 },
|
|
2059
2087
|
autocomplete: "off",
|
|
2060
2088
|
"data-testid": "vault-form-config-hcv-aws_auth_role",
|
|
2061
|
-
label: e(
|
|
2089
|
+
label: e(i)("form.config.hcv.fields.aws_auth_role.label"),
|
|
2062
2090
|
readonly: n.isReadonly,
|
|
2063
2091
|
required: "",
|
|
2064
2092
|
type: "text"
|
|
2065
2093
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2066
2094
|
u(m, {
|
|
2067
2095
|
modelValue: a[e(t).HCV].aws_auth_nonce,
|
|
2068
|
-
"onUpdate:modelValue": o[
|
|
2096
|
+
"onUpdate:modelValue": o[34] || (o[34] = (r) => a[e(t).HCV].aws_auth_nonce = r),
|
|
2069
2097
|
modelModifiers: { trim: !0 },
|
|
2070
2098
|
autocomplete: "off",
|
|
2071
2099
|
"data-testid": "vault-form-config-hcv-aws_auth_nonce",
|
|
2072
|
-
label: e(
|
|
2100
|
+
label: e(i)("form.config.hcv.fields.aws_auth_nonce.label"),
|
|
2073
2101
|
readonly: n.isReadonly,
|
|
2074
2102
|
required: "",
|
|
2075
2103
|
"show-password-mask-toggle": "",
|
|
@@ -2077,213 +2105,223 @@ const dt = {
|
|
|
2077
2105
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2078
2106
|
u(m, {
|
|
2079
2107
|
modelValue: a[e(t).HCV].aws_login_path,
|
|
2080
|
-
"onUpdate:modelValue": o[
|
|
2108
|
+
"onUpdate:modelValue": o[35] || (o[35] = (r) => a[e(t).HCV].aws_login_path = r),
|
|
2081
2109
|
modelModifiers: { trim: !0 },
|
|
2082
2110
|
autocomplete: "off",
|
|
2083
2111
|
"data-testid": "vault-form-config-hcv-aws_login_path",
|
|
2084
|
-
label: e(
|
|
2112
|
+
label: e(i)("form.config.hcv.fields.aws_login_path.label"),
|
|
2085
2113
|
readonly: n.isReadonly,
|
|
2086
2114
|
type: "text"
|
|
2087
2115
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2088
|
-
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AZURE ? (
|
|
2116
|
+
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AZURE ? (v(), N("div", va, [
|
|
2089
2117
|
u(m, {
|
|
2090
2118
|
modelValue: a[e(t).HCV].azure_auth_role,
|
|
2091
|
-
"onUpdate:modelValue": o[
|
|
2119
|
+
"onUpdate:modelValue": o[36] || (o[36] = (r) => a[e(t).HCV].azure_auth_role = r),
|
|
2092
2120
|
modelModifiers: { trim: !0 },
|
|
2093
2121
|
autocomplete: "off",
|
|
2094
2122
|
"data-testid": "vault-form-config-hcv-azure_auth_role",
|
|
2095
|
-
label: e(
|
|
2123
|
+
label: e(i)("form.config.hcv.fields.azure_auth_role.label"),
|
|
2096
2124
|
readonly: n.isReadonly,
|
|
2097
2125
|
required: "",
|
|
2098
2126
|
type: "text"
|
|
2099
2127
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2100
2128
|
u(m, {
|
|
2101
2129
|
modelValue: a[e(t).HCV].azure_login_path,
|
|
2102
|
-
"onUpdate:modelValue": o[
|
|
2130
|
+
"onUpdate:modelValue": o[37] || (o[37] = (r) => a[e(t).HCV].azure_login_path = r),
|
|
2103
2131
|
modelModifiers: { trim: !0 },
|
|
2104
2132
|
autocomplete: "off",
|
|
2105
2133
|
"data-testid": "vault-form-config-hcv-azure_login_path",
|
|
2106
|
-
label: e(
|
|
2134
|
+
label: e(i)("form.config.hcv.fields.azure_login_path.label"),
|
|
2107
2135
|
readonly: n.isReadonly,
|
|
2108
2136
|
type: "text"
|
|
2109
2137
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2110
|
-
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_GCE ? (
|
|
2138
|
+
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_GCE ? (v(), N("div", ga, [
|
|
2111
2139
|
u(m, {
|
|
2112
2140
|
modelValue: a[e(t).HCV].gcp_auth_role,
|
|
2113
|
-
"onUpdate:modelValue": o[
|
|
2141
|
+
"onUpdate:modelValue": o[38] || (o[38] = (r) => a[e(t).HCV].gcp_auth_role = r),
|
|
2114
2142
|
modelModifiers: { trim: !0 },
|
|
2115
2143
|
autocomplete: "off",
|
|
2116
2144
|
"data-testid": "vault-form-config-hcv-gcp_auth_role",
|
|
2117
|
-
label: e(
|
|
2145
|
+
label: e(i)("form.config.hcv.fields.gcp_auth_role.label"),
|
|
2118
2146
|
readonly: n.isReadonly,
|
|
2119
2147
|
required: "",
|
|
2120
2148
|
type: "text"
|
|
2121
2149
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2122
2150
|
u(m, {
|
|
2123
2151
|
modelValue: a[e(t).HCV].gcp_login_path,
|
|
2124
|
-
"onUpdate:modelValue": o[
|
|
2152
|
+
"onUpdate:modelValue": o[39] || (o[39] = (r) => a[e(t).HCV].gcp_login_path = r),
|
|
2125
2153
|
modelModifiers: { trim: !0 },
|
|
2126
2154
|
autocomplete: "off",
|
|
2127
2155
|
"data-testid": "vault-form-config-hcv-gcp_login_path",
|
|
2128
|
-
label: e(
|
|
2156
|
+
label: e(i)("form.config.hcv.fields.gcp_login_path.label"),
|
|
2129
2157
|
readonly: n.isReadonly,
|
|
2130
2158
|
type: "text"
|
|
2131
2159
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2132
|
-
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_IAM ? (
|
|
2160
|
+
])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_IAM ? (v(), N("div", ya, [
|
|
2133
2161
|
u(m, {
|
|
2134
2162
|
modelValue: a[e(t).HCV].gcp_auth_role,
|
|
2135
|
-
"onUpdate:modelValue": o[
|
|
2163
|
+
"onUpdate:modelValue": o[40] || (o[40] = (r) => a[e(t).HCV].gcp_auth_role = r),
|
|
2136
2164
|
modelModifiers: { trim: !0 },
|
|
2137
2165
|
autocomplete: "off",
|
|
2138
2166
|
"data-testid": "vault-form-config-hcv-gcp_auth_role",
|
|
2139
|
-
label: e(
|
|
2167
|
+
label: e(i)("form.config.hcv.fields.gcp_auth_role.label"),
|
|
2140
2168
|
readonly: n.isReadonly,
|
|
2141
2169
|
required: "",
|
|
2142
2170
|
type: "text"
|
|
2143
2171
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2144
2172
|
u(m, {
|
|
2145
2173
|
modelValue: a[e(t).HCV].gcp_login_path,
|
|
2146
|
-
"onUpdate:modelValue": o[
|
|
2174
|
+
"onUpdate:modelValue": o[41] || (o[41] = (r) => a[e(t).HCV].gcp_login_path = r),
|
|
2147
2175
|
modelModifiers: { trim: !0 },
|
|
2148
2176
|
autocomplete: "off",
|
|
2149
2177
|
"data-testid": "vault-form-config-hcv-gcp_login_path",
|
|
2150
|
-
label: e(
|
|
2178
|
+
label: e(i)("form.config.hcv.fields.gcp_login_path.label"),
|
|
2151
2179
|
readonly: n.isReadonly,
|
|
2152
2180
|
type: "text"
|
|
2153
2181
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2154
2182
|
u(m, {
|
|
2155
2183
|
modelValue: a[e(t).HCV].gcp_service_account,
|
|
2156
|
-
"onUpdate:modelValue": o[
|
|
2184
|
+
"onUpdate:modelValue": o[42] || (o[42] = (r) => a[e(t).HCV].gcp_service_account = r),
|
|
2157
2185
|
modelModifiers: { trim: !0 },
|
|
2158
2186
|
autocomplete: "off",
|
|
2159
2187
|
"data-testid": "vault-form-config-hcv-gcp_service_account",
|
|
2160
|
-
label: e(
|
|
2188
|
+
label: e(i)("form.config.hcv.fields.gcp_service_account.label"),
|
|
2161
2189
|
readonly: n.isReadonly,
|
|
2162
2190
|
required: "",
|
|
2163
2191
|
type: "text"
|
|
2164
2192
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2165
2193
|
u(m, {
|
|
2166
2194
|
modelValue: a[e(t).HCV].gcp_jwt_exp,
|
|
2167
|
-
"onUpdate:modelValue": o[
|
|
2195
|
+
"onUpdate:modelValue": o[43] || (o[43] = (r) => a[e(t).HCV].gcp_jwt_exp = r),
|
|
2168
2196
|
autocomplete: "off",
|
|
2169
2197
|
"data-testid": "vault-form-config-hcv-gcp_jwt_exp",
|
|
2170
|
-
label: e(
|
|
2198
|
+
label: e(i)("form.config.hcv.fields.gcp_jwt_exp.label"),
|
|
2171
2199
|
readonly: n.isReadonly,
|
|
2172
2200
|
required: "",
|
|
2173
2201
|
type: "number"
|
|
2174
2202
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2175
|
-
])) : a[e(t).HCV].auth_method === e(_).APP_ROLE ? (
|
|
2203
|
+
])) : a[e(t).HCV].auth_method === e(_).APP_ROLE ? (v(), N("div", ba, [
|
|
2176
2204
|
u(m, {
|
|
2177
2205
|
modelValue: a[e(t).HCV].approle_auth_path,
|
|
2178
|
-
"onUpdate:modelValue": o[
|
|
2206
|
+
"onUpdate:modelValue": o[44] || (o[44] = (r) => a[e(t).HCV].approle_auth_path = r),
|
|
2179
2207
|
modelModifiers: { trim: !0 },
|
|
2180
2208
|
autocomplete: "off",
|
|
2181
2209
|
"data-testid": "vault-form-config-hcv-approle_auth_path",
|
|
2182
|
-
label: e(
|
|
2210
|
+
label: e(i)("form.config.hcv.fields.approle_auth_path.label"),
|
|
2183
2211
|
readonly: n.isReadonly,
|
|
2184
2212
|
type: "text"
|
|
2185
2213
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2186
2214
|
u(m, {
|
|
2187
2215
|
modelValue: a[e(t).HCV].approle_role_id,
|
|
2188
|
-
"onUpdate:modelValue": o[
|
|
2216
|
+
"onUpdate:modelValue": o[45] || (o[45] = (r) => a[e(t).HCV].approle_role_id = r),
|
|
2189
2217
|
modelModifiers: { trim: !0 },
|
|
2190
2218
|
autocomplete: "off",
|
|
2191
2219
|
"data-testid": "vault-form-config-hcv-approle_role_id",
|
|
2192
|
-
label: e(
|
|
2220
|
+
label: e(i)("form.config.hcv.fields.approle_role_id.label"),
|
|
2193
2221
|
readonly: n.isReadonly,
|
|
2194
2222
|
required: "",
|
|
2195
2223
|
type: "text"
|
|
2196
2224
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2197
2225
|
u(m, {
|
|
2198
2226
|
modelValue: a[e(t).HCV].approle_secret_id,
|
|
2199
|
-
"onUpdate:modelValue": o[
|
|
2227
|
+
"onUpdate:modelValue": o[46] || (o[46] = (r) => a[e(t).HCV].approle_secret_id = r),
|
|
2200
2228
|
modelModifiers: { trim: !0 },
|
|
2201
2229
|
autocomplete: "off",
|
|
2202
2230
|
"data-testid": "vault-form-config-hcv-approle_secret_id",
|
|
2203
|
-
label: e(
|
|
2231
|
+
label: e(i)("form.config.hcv.fields.approle_secret_id.label"),
|
|
2204
2232
|
readonly: n.isReadonly,
|
|
2205
2233
|
"show-password-mask-toggle": "",
|
|
2206
2234
|
type: "password"
|
|
2207
2235
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2208
2236
|
u(m, {
|
|
2209
2237
|
modelValue: a[e(t).HCV].approle_secret_id_file,
|
|
2210
|
-
"onUpdate:modelValue": o[
|
|
2238
|
+
"onUpdate:modelValue": o[47] || (o[47] = (r) => a[e(t).HCV].approle_secret_id_file = r),
|
|
2211
2239
|
modelModifiers: { trim: !0 },
|
|
2212
2240
|
autocomplete: "off",
|
|
2213
2241
|
"data-testid": "vault-form-config-hcv-approle_secret_id_file",
|
|
2214
|
-
label: e(
|
|
2242
|
+
label: e(i)("form.config.hcv.fields.approle_secret_id_file.label"),
|
|
2215
2243
|
readonly: n.isReadonly,
|
|
2216
2244
|
type: "text"
|
|
2217
2245
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2218
|
-
u(
|
|
2246
|
+
u(ae, {
|
|
2219
2247
|
modelValue: a[e(t).HCV].approle_response_wrapping,
|
|
2220
|
-
"onUpdate:modelValue": o[
|
|
2248
|
+
"onUpdate:modelValue": o[48] || (o[48] = (r) => a[e(t).HCV].approle_response_wrapping = r),
|
|
2221
2249
|
"data-testid": "vault-form-config-hcv-approle_response_wrapping",
|
|
2222
|
-
label: e(
|
|
2250
|
+
label: e(i)("form.config.hcv.fields.approle_response_wrapping.label")
|
|
2223
2251
|
}, null, 8, ["modelValue", "label"])
|
|
2224
|
-
])) : a[e(t).HCV].auth_method === e(_).CERT ? (
|
|
2252
|
+
])) : a[e(t).HCV].auth_method === e(_).CERT ? (v(), N("div", ha, [
|
|
2225
2253
|
u(m, {
|
|
2226
2254
|
modelValue: a[e(t).HCV].cert_auth_role_name,
|
|
2227
|
-
"onUpdate:modelValue": o[
|
|
2255
|
+
"onUpdate:modelValue": o[49] || (o[49] = (r) => a[e(t).HCV].cert_auth_role_name = r),
|
|
2228
2256
|
modelModifiers: { trim: !0 },
|
|
2229
2257
|
autocomplete: "off",
|
|
2230
2258
|
"data-testid": "vault-form-config-hcv-cert_auth_role_name",
|
|
2231
|
-
label: e(
|
|
2259
|
+
label: e(i)("form.config.hcv.fields.cert_auth_role_name.label"),
|
|
2232
2260
|
readonly: n.isReadonly,
|
|
2233
2261
|
required: ""
|
|
2234
2262
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2235
|
-
u(
|
|
2263
|
+
u(_e, {
|
|
2236
2264
|
modelValue: a[e(t).HCV].cert_auth_cert,
|
|
2237
|
-
"onUpdate:modelValue": o[
|
|
2265
|
+
"onUpdate:modelValue": o[50] || (o[50] = (r) => a[e(t).HCV].cert_auth_cert = r),
|
|
2238
2266
|
modelModifiers: { trim: !0 },
|
|
2239
2267
|
autocomplete: "off",
|
|
2240
2268
|
"data-testid": "vault-form-config-hcv-cert_auth_cert",
|
|
2241
|
-
label: e(
|
|
2269
|
+
label: e(i)("form.config.hcv.fields.cert_auth_cert.label"),
|
|
2242
2270
|
readonly: n.isReadonly,
|
|
2243
2271
|
required: ""
|
|
2244
2272
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2245
|
-
u(
|
|
2273
|
+
u(_e, {
|
|
2246
2274
|
modelValue: a[e(t).HCV].cert_auth_cert_key,
|
|
2247
|
-
"onUpdate:modelValue": o[
|
|
2275
|
+
"onUpdate:modelValue": o[51] || (o[51] = (r) => a[e(t).HCV].cert_auth_cert_key = r),
|
|
2248
2276
|
modelModifiers: { trim: !0 },
|
|
2249
2277
|
autocomplete: "off",
|
|
2250
2278
|
"data-testid": "vault-form-config-hcv-cert_auth_cert_key",
|
|
2251
|
-
label: e(
|
|
2279
|
+
label: e(i)("form.config.hcv.fields.cert_auth_cert_key.label"),
|
|
2252
2280
|
readonly: n.isReadonly,
|
|
2253
2281
|
required: ""
|
|
2254
2282
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2255
|
-
])) : a[e(t).HCV].auth_method === e(_).JWT ? (
|
|
2283
|
+
])) : a[e(t).HCV].auth_method === e(_).JWT ? (v(), N("div", wa, [
|
|
2256
2284
|
u(m, {
|
|
2257
2285
|
modelValue: a[e(t).HCV].oauth2_client_id,
|
|
2258
|
-
"onUpdate:modelValue": o[
|
|
2286
|
+
"onUpdate:modelValue": o[52] || (o[52] = (r) => a[e(t).HCV].oauth2_client_id = r),
|
|
2259
2287
|
modelModifiers: { trim: !0 },
|
|
2260
2288
|
autocomplete: "off",
|
|
2261
2289
|
"data-testid": "vault-form-config-hcv-oauth2_client_id",
|
|
2262
|
-
label: e(
|
|
2290
|
+
label: e(i)("form.config.hcv.fields.oauth2_client_id.label"),
|
|
2263
2291
|
readonly: n.isReadonly,
|
|
2264
2292
|
required: ""
|
|
2265
2293
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2266
|
-
|
|
2294
|
+
R.value ? (v(), H(e(Te), {
|
|
2295
|
+
key: 1,
|
|
2267
2296
|
modelValue: a[e(t).HCV].oauth2_client_secret,
|
|
2268
|
-
"onUpdate:modelValue": o[
|
|
2297
|
+
"onUpdate:modelValue": o[54] || (o[54] = (r) => a[e(t).HCV].oauth2_client_secret = r),
|
|
2298
|
+
"data-testid": "vault-form-config-hcv-oauth2_client_secret",
|
|
2299
|
+
label: e(i)("form.config.hcv.fields.oauth2_client_secret.label"),
|
|
2300
|
+
mode: L.value,
|
|
2301
|
+
readonly: n.isReadonly,
|
|
2302
|
+
required: L.value === "create"
|
|
2303
|
+
}, null, 8, ["modelValue", "label", "mode", "readonly", "required"])) : (v(), H(m, {
|
|
2304
|
+
key: 0,
|
|
2305
|
+
modelValue: a[e(t).HCV].oauth2_client_secret,
|
|
2306
|
+
"onUpdate:modelValue": o[53] || (o[53] = (r) => a[e(t).HCV].oauth2_client_secret = r),
|
|
2269
2307
|
modelModifiers: { trim: !0 },
|
|
2270
2308
|
autocomplete: "off",
|
|
2271
2309
|
"data-testid": "vault-form-config-hcv-oauth2_client_secret",
|
|
2272
|
-
label: e(
|
|
2310
|
+
label: e(i)("form.config.hcv.fields.oauth2_client_secret.label"),
|
|
2273
2311
|
readonly: n.isReadonly,
|
|
2274
2312
|
required: "",
|
|
2275
2313
|
"show-password-mask-toggle": "",
|
|
2276
2314
|
type: "password"
|
|
2277
|
-
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2315
|
+
}, null, 8, ["modelValue", "label", "readonly"])),
|
|
2278
2316
|
u(m, {
|
|
2279
2317
|
modelValue: a[e(t).HCV].jwt_role,
|
|
2280
|
-
"onUpdate:modelValue": o[
|
|
2318
|
+
"onUpdate:modelValue": o[55] || (o[55] = (r) => a[e(t).HCV].jwt_role = r),
|
|
2281
2319
|
modelModifiers: { trim: !0 },
|
|
2282
2320
|
autocomplete: "off",
|
|
2283
2321
|
"data-testid": "vault-form-config-hcv-jwt_role",
|
|
2284
|
-
label: e(
|
|
2322
|
+
label: e(i)("form.config.hcv.fields.jwt_role.label"),
|
|
2285
2323
|
"label-attributes": {
|
|
2286
|
-
info: e(
|
|
2324
|
+
info: e(i)("form.config.hcv.fields.jwt_role.tooltip"),
|
|
2287
2325
|
tooltipAttributes: { maxWidth: "400" }
|
|
2288
2326
|
},
|
|
2289
2327
|
readonly: n.isReadonly,
|
|
@@ -2291,182 +2329,182 @@ const dt = {
|
|
|
2291
2329
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2292
2330
|
u(m, {
|
|
2293
2331
|
modelValue: a[e(t).HCV].oauth2_token_endpoint,
|
|
2294
|
-
"onUpdate:modelValue": o[
|
|
2332
|
+
"onUpdate:modelValue": o[56] || (o[56] = (r) => a[e(t).HCV].oauth2_token_endpoint = r),
|
|
2295
2333
|
modelModifiers: { trim: !0 },
|
|
2296
2334
|
autocomplete: "off",
|
|
2297
2335
|
"data-testid": "vault-form-config-hcv-oauth2_token_endpoint",
|
|
2298
|
-
label: e(
|
|
2336
|
+
label: e(i)("form.config.hcv.fields.oauth2_token_endpoint.label"),
|
|
2299
2337
|
readonly: n.isReadonly,
|
|
2300
2338
|
required: ""
|
|
2301
2339
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2302
2340
|
u(m, {
|
|
2303
2341
|
modelValue: a[e(t).HCV].oauth2_audiences,
|
|
2304
|
-
"onUpdate:modelValue": o[
|
|
2342
|
+
"onUpdate:modelValue": o[57] || (o[57] = (r) => a[e(t).HCV].oauth2_audiences = r),
|
|
2305
2343
|
modelModifiers: { trim: !0 },
|
|
2306
2344
|
autocomplete: "off",
|
|
2307
2345
|
"data-testid": "vault-form-config-hcv-oauth2_audiences",
|
|
2308
|
-
label: e(
|
|
2346
|
+
label: e(i)("form.config.hcv.fields.oauth2_audiences.label"),
|
|
2309
2347
|
"label-attributes": {
|
|
2310
|
-
info: e(
|
|
2348
|
+
info: e(i)("form.config.hcv.fields.oauth2_audiences.tooltip"),
|
|
2311
2349
|
tooltipAttributes: { maxWidth: "400" }
|
|
2312
2350
|
},
|
|
2313
2351
|
readonly: n.isReadonly
|
|
2314
2352
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2315
|
-
])) :
|
|
2316
|
-
l.config.base64FieldAvailable ? (
|
|
2353
|
+
])) : j("", !0),
|
|
2354
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
2317
2355
|
key: 11,
|
|
2318
2356
|
modelValue: a[e(t).HCV].base64_decode,
|
|
2319
|
-
"onUpdate:modelValue": o[
|
|
2357
|
+
"onUpdate:modelValue": o[58] || (o[58] = (r) => a[e(t).HCV].base64_decode = r),
|
|
2320
2358
|
"data-testid": "vault-form-config-hcv-base64_decode",
|
|
2321
|
-
label: e(
|
|
2359
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
2322
2360
|
"label-attributes": {
|
|
2323
|
-
info: e(
|
|
2361
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
2324
2362
|
tooltipAttributes: { maxWidth: "400" }
|
|
2325
2363
|
},
|
|
2326
2364
|
readonly: n.isReadonly
|
|
2327
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2328
|
-
])) :
|
|
2329
|
-
f.value === e(t).AZURE ? (
|
|
2365
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
2366
|
+
])) : j("", !0),
|
|
2367
|
+
f.value === e(t).AZURE ? (v(), N("div", {
|
|
2330
2368
|
key: `${e(t).AZURE}-vault-config-fields`,
|
|
2331
2369
|
class: "vault-form-config-fields-container"
|
|
2332
2370
|
}, [
|
|
2333
2371
|
u(m, {
|
|
2334
2372
|
modelValue: a[e(t).AZURE].location,
|
|
2335
|
-
"onUpdate:modelValue": o[
|
|
2373
|
+
"onUpdate:modelValue": o[59] || (o[59] = (r) => a[e(t).AZURE].location = r),
|
|
2336
2374
|
modelModifiers: { trim: !0 },
|
|
2337
2375
|
autocomplete: "off",
|
|
2338
2376
|
"data-testid": "vault-form-config-azure-location",
|
|
2339
|
-
label: e(
|
|
2377
|
+
label: e(i)("form.config.azure.fields.location.label"),
|
|
2340
2378
|
readonly: n.isReadonly,
|
|
2341
2379
|
required: "",
|
|
2342
2380
|
type: "text"
|
|
2343
2381
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2344
2382
|
u(m, {
|
|
2345
2383
|
modelValue: a[e(t).AZURE].vault_uri,
|
|
2346
|
-
"onUpdate:modelValue": o[
|
|
2384
|
+
"onUpdate:modelValue": o[60] || (o[60] = (r) => a[e(t).AZURE].vault_uri = r),
|
|
2347
2385
|
modelModifiers: { trim: !0 },
|
|
2348
2386
|
autocomplete: "off",
|
|
2349
2387
|
"data-testid": "vault-form-config-azure-uri",
|
|
2350
|
-
label: e(
|
|
2388
|
+
label: e(i)("form.config.azure.fields.vault_uri.label"),
|
|
2351
2389
|
readonly: n.isReadonly,
|
|
2352
2390
|
required: "",
|
|
2353
2391
|
type: "text"
|
|
2354
2392
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2355
2393
|
u(m, {
|
|
2356
2394
|
modelValue: a[e(t).AZURE].credentials_prefix,
|
|
2357
|
-
"onUpdate:modelValue": o[
|
|
2395
|
+
"onUpdate:modelValue": o[61] || (o[61] = (r) => a[e(t).AZURE].credentials_prefix = r),
|
|
2358
2396
|
modelModifiers: { trim: !0 },
|
|
2359
2397
|
autocomplete: "off",
|
|
2360
2398
|
"data-testid": "vault-form-config-azure-prefix",
|
|
2361
|
-
label: e(
|
|
2399
|
+
label: e(i)("form.config.azure.fields.credential_prefix.label"),
|
|
2362
2400
|
readonly: n.isReadonly,
|
|
2363
2401
|
required: "",
|
|
2364
2402
|
type: "text"
|
|
2365
2403
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2366
|
-
u(
|
|
2404
|
+
u(Z, {
|
|
2367
2405
|
modelValue: a[e(t).AZURE].type,
|
|
2368
|
-
"onUpdate:modelValue": o[
|
|
2406
|
+
"onUpdate:modelValue": o[62] || (o[62] = (r) => a[e(t).AZURE].type = r),
|
|
2369
2407
|
"data-testid": "vault-form-config-azure-type",
|
|
2370
|
-
items:
|
|
2371
|
-
label: e(
|
|
2372
|
-
placeholder: e(
|
|
2408
|
+
items: Y,
|
|
2409
|
+
label: e(i)("form.config.azure.fields.type.label"),
|
|
2410
|
+
placeholder: e(i)("form.config.azure.fields.type.placeholder"),
|
|
2373
2411
|
readonly: n.isReadonly,
|
|
2374
2412
|
required: "",
|
|
2375
2413
|
width: "100%"
|
|
2376
2414
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
2377
2415
|
u(m, {
|
|
2378
2416
|
modelValue: a[e(t).AZURE].client_id,
|
|
2379
|
-
"onUpdate:modelValue": o[
|
|
2417
|
+
"onUpdate:modelValue": o[63] || (o[63] = (r) => a[e(t).AZURE].client_id = r),
|
|
2380
2418
|
modelModifiers: { trim: !0 },
|
|
2381
2419
|
autocomplete: "off",
|
|
2382
2420
|
"data-testid": "vault-form-config-azure-client-id",
|
|
2383
|
-
label: e(
|
|
2421
|
+
label: e(i)("form.config.azure.fields.client_id.label"),
|
|
2384
2422
|
readonly: n.isReadonly,
|
|
2385
2423
|
type: "text"
|
|
2386
2424
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2387
2425
|
u(m, {
|
|
2388
2426
|
modelValue: a[e(t).AZURE].tenant_id,
|
|
2389
|
-
"onUpdate:modelValue": o[
|
|
2427
|
+
"onUpdate:modelValue": o[64] || (o[64] = (r) => a[e(t).AZURE].tenant_id = r),
|
|
2390
2428
|
modelModifiers: { trim: !0 },
|
|
2391
2429
|
autocomplete: "off",
|
|
2392
2430
|
"data-testid": "vault-form-config-azure-tenant-id",
|
|
2393
|
-
label: e(
|
|
2431
|
+
label: e(i)("form.config.azure.fields.tenant_id.label"),
|
|
2394
2432
|
readonly: n.isReadonly,
|
|
2395
2433
|
type: "text"
|
|
2396
2434
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2397
|
-
l.config.base64FieldAvailable ? (
|
|
2435
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
2398
2436
|
key: 0,
|
|
2399
2437
|
modelValue: a[e(t).AZURE].base64_decode,
|
|
2400
|
-
"onUpdate:modelValue": o[
|
|
2438
|
+
"onUpdate:modelValue": o[65] || (o[65] = (r) => a[e(t).AZURE].base64_decode = r),
|
|
2401
2439
|
"data-testid": "vault-form-config-azure-base64_decode",
|
|
2402
|
-
label: e(
|
|
2440
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
2403
2441
|
"label-attributes": {
|
|
2404
|
-
info: e(
|
|
2442
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
2405
2443
|
tooltipAttributes: { maxWidth: "400" }
|
|
2406
2444
|
},
|
|
2407
2445
|
readonly: n.isReadonly
|
|
2408
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2409
|
-
])) :
|
|
2410
|
-
f.value === e(t).AZURE_CERTS ? (
|
|
2446
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
2447
|
+
])) : j("", !0),
|
|
2448
|
+
f.value === e(t).AZURE_CERTS ? (v(), N("div", {
|
|
2411
2449
|
key: `${e(t).AZURE_CERTS}-vault-config-fields`,
|
|
2412
2450
|
class: "vault-form-config-fields-container"
|
|
2413
2451
|
}, [
|
|
2414
2452
|
u(m, {
|
|
2415
2453
|
modelValue: a[e(t).AZURE_CERTS].vault_uri,
|
|
2416
|
-
"onUpdate:modelValue": o[
|
|
2454
|
+
"onUpdate:modelValue": o[66] || (o[66] = (r) => a[e(t).AZURE_CERTS].vault_uri = r),
|
|
2417
2455
|
modelModifiers: { trim: !0 },
|
|
2418
2456
|
autocomplete: "off",
|
|
2419
2457
|
"data-testid": "vault-form-config-azure-certs-vault-uri",
|
|
2420
|
-
label: e(
|
|
2458
|
+
label: e(i)("form.config.azure-certs.fields.vault_uri.label"),
|
|
2421
2459
|
readonly: n.isReadonly,
|
|
2422
2460
|
required: "",
|
|
2423
2461
|
type: "text"
|
|
2424
2462
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2425
2463
|
u(m, {
|
|
2426
2464
|
modelValue: a[e(t).AZURE_CERTS].credentials_prefix,
|
|
2427
|
-
"onUpdate:modelValue": o[
|
|
2465
|
+
"onUpdate:modelValue": o[67] || (o[67] = (r) => a[e(t).AZURE_CERTS].credentials_prefix = r),
|
|
2428
2466
|
modelModifiers: { trim: !0 },
|
|
2429
2467
|
autocomplete: "off",
|
|
2430
2468
|
"data-testid": "vault-form-config-azure-certs-credentials-prefix",
|
|
2431
|
-
label: e(
|
|
2469
|
+
label: e(i)("form.config.azure-certs.fields.credential_prefix.label"),
|
|
2432
2470
|
readonly: n.isReadonly,
|
|
2433
2471
|
required: "",
|
|
2434
2472
|
type: "text"
|
|
2435
2473
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2436
2474
|
u(m, {
|
|
2437
2475
|
modelValue: a[e(t).AZURE_CERTS].client_id,
|
|
2438
|
-
"onUpdate:modelValue": o[
|
|
2476
|
+
"onUpdate:modelValue": o[68] || (o[68] = (r) => a[e(t).AZURE_CERTS].client_id = r),
|
|
2439
2477
|
modelModifiers: { trim: !0 },
|
|
2440
2478
|
autocomplete: "off",
|
|
2441
2479
|
"data-testid": "vault-form-config-azure-certs-client-id",
|
|
2442
|
-
label: e(
|
|
2480
|
+
label: e(i)("form.config.azure-certs.fields.client_id.label"),
|
|
2443
2481
|
readonly: n.isReadonly,
|
|
2444
2482
|
type: "text"
|
|
2445
2483
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
2446
2484
|
u(m, {
|
|
2447
2485
|
modelValue: a[e(t).AZURE_CERTS].tenant_id,
|
|
2448
|
-
"onUpdate:modelValue": o[
|
|
2486
|
+
"onUpdate:modelValue": o[69] || (o[69] = (r) => a[e(t).AZURE_CERTS].tenant_id = r),
|
|
2449
2487
|
modelModifiers: { trim: !0 },
|
|
2450
2488
|
autocomplete: "off",
|
|
2451
2489
|
"data-testid": "vault-form-config-azure-certs-tenant-id",
|
|
2452
|
-
label: e(
|
|
2490
|
+
label: e(i)("form.config.azure-certs.fields.tenant_id.label"),
|
|
2453
2491
|
readonly: n.isReadonly,
|
|
2454
2492
|
type: "text"
|
|
2455
2493
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
2456
|
-
])) :
|
|
2457
|
-
f.value === e(t).CONJUR ? (
|
|
2494
|
+
])) : j("", !0),
|
|
2495
|
+
f.value === e(t).CONJUR ? (v(), N("div", {
|
|
2458
2496
|
key: `${e(t).CONJUR}-vault-config-fields`,
|
|
2459
2497
|
class: "vault-form-config-fields-container"
|
|
2460
2498
|
}, [
|
|
2461
2499
|
u(m, {
|
|
2462
2500
|
modelValue: a[e(t).CONJUR].endpoint_url,
|
|
2463
|
-
"onUpdate:modelValue": o[
|
|
2501
|
+
"onUpdate:modelValue": o[70] || (o[70] = (r) => a[e(t).CONJUR].endpoint_url = r),
|
|
2464
2502
|
modelModifiers: { trim: !0 },
|
|
2465
2503
|
autocomplete: "off",
|
|
2466
2504
|
"data-testid": "vault-form-config-conjur-endpoint_url",
|
|
2467
|
-
label: e(
|
|
2505
|
+
label: e(i)("form.config.conjur.fields.endpoint_url.label"),
|
|
2468
2506
|
"label-attributes": {
|
|
2469
|
-
info: e(
|
|
2507
|
+
info: e(i)("form.config.conjur.fields.endpoint_url.tooltip"),
|
|
2470
2508
|
tooltipAttributes: { maxWidth: "400" }
|
|
2471
2509
|
},
|
|
2472
2510
|
readonly: n.isReadonly,
|
|
@@ -2475,13 +2513,13 @@ const dt = {
|
|
|
2475
2513
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2476
2514
|
u(m, {
|
|
2477
2515
|
modelValue: a[e(t).CONJUR].login,
|
|
2478
|
-
"onUpdate:modelValue": o[
|
|
2516
|
+
"onUpdate:modelValue": o[71] || (o[71] = (r) => a[e(t).CONJUR].login = r),
|
|
2479
2517
|
modelModifiers: { trim: !0 },
|
|
2480
2518
|
autocomplete: "off",
|
|
2481
2519
|
"data-testid": "vault-form-config-conjur-login",
|
|
2482
|
-
label: e(
|
|
2520
|
+
label: e(i)("form.config.conjur.fields.login.label"),
|
|
2483
2521
|
"label-attributes": {
|
|
2484
|
-
info: e(
|
|
2522
|
+
info: e(i)("form.config.conjur.fields.login.tooltip"),
|
|
2485
2523
|
tooltipAttributes: { maxWidth: "400" }
|
|
2486
2524
|
},
|
|
2487
2525
|
readonly: n.isReadonly,
|
|
@@ -2490,126 +2528,140 @@ const dt = {
|
|
|
2490
2528
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2491
2529
|
u(m, {
|
|
2492
2530
|
modelValue: a[e(t).CONJUR].account,
|
|
2493
|
-
"onUpdate:modelValue": o[
|
|
2531
|
+
"onUpdate:modelValue": o[72] || (o[72] = (r) => a[e(t).CONJUR].account = r),
|
|
2494
2532
|
modelModifiers: { trim: !0 },
|
|
2495
2533
|
autocomplete: "off",
|
|
2496
2534
|
"data-testid": "vault-form-config-conjur-account",
|
|
2497
|
-
label: e(
|
|
2535
|
+
label: e(i)("form.config.conjur.fields.account.label"),
|
|
2498
2536
|
"label-attributes": {
|
|
2499
|
-
info: e(
|
|
2537
|
+
info: e(i)("form.config.conjur.fields.account.tooltip"),
|
|
2500
2538
|
tooltipAttributes: { maxWidth: "400" }
|
|
2501
2539
|
},
|
|
2502
2540
|
readonly: n.isReadonly,
|
|
2503
2541
|
required: "",
|
|
2504
2542
|
type: "text"
|
|
2505
2543
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2506
|
-
|
|
2544
|
+
R.value ? (v(), H(e(Te), {
|
|
2545
|
+
key: 1,
|
|
2507
2546
|
modelValue: a[e(t).CONJUR].api_key,
|
|
2508
|
-
"onUpdate:modelValue": o[
|
|
2547
|
+
"onUpdate:modelValue": o[74] || (o[74] = (r) => a[e(t).CONJUR].api_key = r),
|
|
2548
|
+
"data-testid": "vault-form-config-conjur-api_key",
|
|
2549
|
+
label: e(i)("form.config.conjur.fields.api_key.label"),
|
|
2550
|
+
"label-attributes": {
|
|
2551
|
+
info: e(i)("form.config.conjur.fields.api_key.tooltip"),
|
|
2552
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
2553
|
+
},
|
|
2554
|
+
mode: L.value,
|
|
2555
|
+
readonly: n.isReadonly,
|
|
2556
|
+
required: L.value === "create"
|
|
2557
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "mode", "readonly", "required"])) : (v(), H(m, {
|
|
2558
|
+
key: 0,
|
|
2559
|
+
modelValue: a[e(t).CONJUR].api_key,
|
|
2560
|
+
"onUpdate:modelValue": o[73] || (o[73] = (r) => a[e(t).CONJUR].api_key = r),
|
|
2509
2561
|
modelModifiers: { trim: !0 },
|
|
2510
2562
|
autocomplete: "off",
|
|
2511
2563
|
"data-testid": "vault-form-config-conjur-api_key",
|
|
2512
|
-
label: e(
|
|
2564
|
+
label: e(i)("form.config.conjur.fields.api_key.label"),
|
|
2513
2565
|
"label-attributes": {
|
|
2514
|
-
info: e(
|
|
2566
|
+
info: e(i)("form.config.conjur.fields.api_key.tooltip"),
|
|
2515
2567
|
tooltipAttributes: { maxWidth: "400" }
|
|
2516
2568
|
},
|
|
2517
2569
|
readonly: n.isReadonly,
|
|
2518
2570
|
required: "",
|
|
2519
2571
|
"show-password-mask-toggle": "",
|
|
2520
2572
|
type: "password"
|
|
2521
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2522
|
-
l.config.base64FieldAvailable ? (
|
|
2523
|
-
key:
|
|
2573
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])),
|
|
2574
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
2575
|
+
key: 2,
|
|
2524
2576
|
modelValue: a[e(t).CONJUR].base64_decode,
|
|
2525
|
-
"onUpdate:modelValue": o[
|
|
2577
|
+
"onUpdate:modelValue": o[75] || (o[75] = (r) => a[e(t).CONJUR].base64_decode = r),
|
|
2526
2578
|
"data-testid": "vault-form-config-env-base64_decode",
|
|
2527
|
-
label: e(
|
|
2579
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
2528
2580
|
"label-attributes": {
|
|
2529
|
-
info: e(
|
|
2581
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
2530
2582
|
tooltipAttributes: { maxWidth: "400" }
|
|
2531
2583
|
},
|
|
2532
2584
|
readonly: n.isReadonly
|
|
2533
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2534
|
-
])) :
|
|
2535
|
-
f.value === e(t).FS ? (
|
|
2585
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
2586
|
+
])) : j("", !0),
|
|
2587
|
+
f.value === e(t).FS ? (v(), N("div", {
|
|
2536
2588
|
key: `${e(t).FS}-vault-config-fields`,
|
|
2537
2589
|
class: "vault-form-config-fields-container"
|
|
2538
2590
|
}, [
|
|
2539
2591
|
u(m, {
|
|
2540
2592
|
modelValue: a[e(t).FS].prefix,
|
|
2541
|
-
"onUpdate:modelValue": o[
|
|
2593
|
+
"onUpdate:modelValue": o[76] || (o[76] = (r) => a[e(t).FS].prefix = r),
|
|
2542
2594
|
modelModifiers: { trim: !0 },
|
|
2543
2595
|
autocomplete: "off",
|
|
2544
2596
|
"data-testid": "vault-form-config-fs-prefix",
|
|
2545
|
-
label: e(
|
|
2597
|
+
label: e(i)("form.config.fs.fields.prefix.label"),
|
|
2546
2598
|
"label-attributes": {
|
|
2547
|
-
info: e(
|
|
2599
|
+
info: e(i)("form.config.fs.fields.prefix.tooltip"),
|
|
2548
2600
|
tooltipAttributes: { maxWidth: "400" }
|
|
2549
2601
|
},
|
|
2550
2602
|
readonly: n.isReadonly,
|
|
2551
2603
|
required: "",
|
|
2552
2604
|
type: "text"
|
|
2553
2605
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2554
|
-
l.config.base64FieldAvailable ? (
|
|
2606
|
+
l.config.base64FieldAvailable ? (v(), H(ae, {
|
|
2555
2607
|
key: 0,
|
|
2556
2608
|
modelValue: a[e(t).FS].base64_decode,
|
|
2557
|
-
"onUpdate:modelValue": o[
|
|
2609
|
+
"onUpdate:modelValue": o[77] || (o[77] = (r) => a[e(t).FS].base64_decode = r),
|
|
2558
2610
|
"data-testid": "vault-form-config-fs-base64_decode",
|
|
2559
|
-
label: e(
|
|
2611
|
+
label: e(i)("form.config.commonFields.base64_decode.label"),
|
|
2560
2612
|
"label-attributes": {
|
|
2561
|
-
info: e(
|
|
2613
|
+
info: e(i)("form.config.commonFields.base64_decode.tooltip"),
|
|
2562
2614
|
tooltipAttributes: { maxWidth: "400" }
|
|
2563
2615
|
},
|
|
2564
2616
|
readonly: n.isReadonly
|
|
2565
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2566
|
-
])) :
|
|
2567
|
-
l.config.ttl ? (
|
|
2568
|
-
|
|
2617
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
|
|
2618
|
+
])) : j("", !0),
|
|
2619
|
+
l.config.ttl ? (v(), N("div", Va, [
|
|
2620
|
+
ne.value ? (v(), H(Ve, {
|
|
2569
2621
|
key: 0,
|
|
2570
2622
|
class: "advanced-fields-collapse",
|
|
2571
2623
|
"data-testid": "advanced-fields-collapse",
|
|
2572
2624
|
"trigger-alignment": "leading",
|
|
2573
|
-
"trigger-label": e(
|
|
2625
|
+
"trigger-label": e(i)("form.config.advancedFields.title")
|
|
2574
2626
|
}, {
|
|
2575
|
-
default:
|
|
2576
|
-
|
|
2577
|
-
|
|
2627
|
+
default: y(() => [
|
|
2628
|
+
M("div", ka, [
|
|
2629
|
+
M("div", Ca, [
|
|
2578
2630
|
u(m, {
|
|
2579
2631
|
modelValue: a[f.value].ttl,
|
|
2580
|
-
"onUpdate:modelValue": o[
|
|
2632
|
+
"onUpdate:modelValue": o[78] || (o[78] = (r) => a[f.value].ttl = r),
|
|
2581
2633
|
"data-testid": "vault-ttl-input",
|
|
2582
|
-
label: e(
|
|
2634
|
+
label: e(i)("form.config.advancedFields.ttl"),
|
|
2583
2635
|
"label-attributes": {
|
|
2584
|
-
info: e(
|
|
2636
|
+
info: e(i)("form.config.advancedFields.ttlTooltip"),
|
|
2585
2637
|
tooltipAttributes: { maxWidth: "400" }
|
|
2586
2638
|
},
|
|
2587
2639
|
type: "number"
|
|
2588
2640
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
2589
2641
|
]),
|
|
2590
|
-
|
|
2642
|
+
M("div", Aa, [
|
|
2591
2643
|
u(m, {
|
|
2592
2644
|
modelValue: a[f.value].neg_ttl,
|
|
2593
|
-
"onUpdate:modelValue": o[
|
|
2645
|
+
"onUpdate:modelValue": o[79] || (o[79] = (r) => a[f.value].neg_ttl = r),
|
|
2594
2646
|
"data-testid": "vault-neg-ttl-input",
|
|
2595
|
-
label: e(
|
|
2647
|
+
label: e(i)("form.config.advancedFields.negTtl"),
|
|
2596
2648
|
"label-attributes": {
|
|
2597
|
-
info: e(
|
|
2649
|
+
info: e(i)("form.config.advancedFields.negTtlTooltip"),
|
|
2598
2650
|
tooltipAttributes: { maxWidth: "400" }
|
|
2599
2651
|
},
|
|
2600
2652
|
type: "number"
|
|
2601
2653
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
2602
2654
|
])
|
|
2603
2655
|
]),
|
|
2604
|
-
|
|
2605
|
-
|
|
2656
|
+
M("div", Sa, [
|
|
2657
|
+
M("div", Ra, [
|
|
2606
2658
|
u(m, {
|
|
2607
2659
|
modelValue: a[f.value].resurrect_ttl,
|
|
2608
|
-
"onUpdate:modelValue": o[
|
|
2660
|
+
"onUpdate:modelValue": o[80] || (o[80] = (r) => a[f.value].resurrect_ttl = r),
|
|
2609
2661
|
"data-testid": "vault-resurrect-ttl-input",
|
|
2610
|
-
label: e(
|
|
2662
|
+
label: e(i)("form.config.advancedFields.resurrectTtl"),
|
|
2611
2663
|
"label-attributes": {
|
|
2612
|
-
info: e(
|
|
2664
|
+
info: e(i)("form.config.advancedFields.resurrectTtlTooltip"),
|
|
2613
2665
|
tooltipAttributes: { maxWidth: "400" }
|
|
2614
2666
|
},
|
|
2615
2667
|
type: "number"
|
|
@@ -2618,57 +2670,57 @@ const dt = {
|
|
|
2618
2670
|
])
|
|
2619
2671
|
]),
|
|
2620
2672
|
_: 1
|
|
2621
|
-
}, 8, ["trigger-label"])) :
|
|
2622
|
-
])) :
|
|
2673
|
+
}, 8, ["trigger-label"])) : j("", !0)
|
|
2674
|
+
])) : j("", !0)
|
|
2623
2675
|
]),
|
|
2624
2676
|
_: 1
|
|
2625
2677
|
})
|
|
2626
2678
|
]),
|
|
2627
2679
|
_: 1
|
|
2628
2680
|
}, 8, ["description", "title"]),
|
|
2629
|
-
u(e(
|
|
2630
|
-
description: e(
|
|
2631
|
-
title: e(
|
|
2681
|
+
u(e(Oe), {
|
|
2682
|
+
description: e(i)("form.sections.general.description"),
|
|
2683
|
+
title: e(i)("form.sections.general.title")
|
|
2632
2684
|
}, {
|
|
2633
|
-
default:
|
|
2685
|
+
default: y(() => [
|
|
2634
2686
|
u(m, {
|
|
2635
2687
|
modelValue: n.fields.prefix,
|
|
2636
|
-
"onUpdate:modelValue": o[
|
|
2688
|
+
"onUpdate:modelValue": o[81] || (o[81] = (r) => n.fields.prefix = r),
|
|
2637
2689
|
modelModifiers: { trim: !0 },
|
|
2638
2690
|
autocomplete: "off",
|
|
2639
2691
|
"data-testid": "vault-form-prefix",
|
|
2640
|
-
help: e(
|
|
2641
|
-
label: e(
|
|
2692
|
+
help: e(i)(R.value ? "form.fields.prefix_ai_gateway.help" : "form.fields.prefix.help"),
|
|
2693
|
+
label: e(i)(R.value ? "form.fields.prefix_ai_gateway.label" : "form.fields.prefix.label"),
|
|
2642
2694
|
"label-attributes": {
|
|
2643
|
-
info: e(
|
|
2695
|
+
info: e(i)(R.value ? "form.fields.prefix_ai_gateway.tooltip" : "form.fields.prefix.tooltip"),
|
|
2644
2696
|
tooltipAttributes: { maxWidth: "400" }
|
|
2645
2697
|
},
|
|
2646
|
-
placeholder: e(
|
|
2698
|
+
placeholder: e(i)(R.value ? "form.fields.prefix_ai_gateway.placeholder" : "form.fields.prefix.placeholder"),
|
|
2647
2699
|
readonly: n.isReadonly,
|
|
2648
2700
|
required: "",
|
|
2649
2701
|
type: "text"
|
|
2650
2702
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
|
|
2651
|
-
u(
|
|
2703
|
+
u(_e, {
|
|
2652
2704
|
modelValue: n.fields.description,
|
|
2653
|
-
"onUpdate:modelValue": o[
|
|
2705
|
+
"onUpdate:modelValue": o[82] || (o[82] = (r) => n.fields.description = r),
|
|
2654
2706
|
modelModifiers: { trim: !0 },
|
|
2655
2707
|
"character-limit": 1e3,
|
|
2656
2708
|
class: "vault-form-textarea",
|
|
2657
2709
|
"data-testid": "vault-form-description",
|
|
2658
|
-
label: e(
|
|
2659
|
-
placeholder: e(
|
|
2710
|
+
label: e(i)("form.fields.description.label"),
|
|
2711
|
+
placeholder: e(i)("form.fields.description.placeholder"),
|
|
2660
2712
|
readonly: n.isReadonly
|
|
2661
2713
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
2662
|
-
|
|
2714
|
+
R.value ? j("", !0) : (v(), H(m, {
|
|
2663
2715
|
key: 0,
|
|
2664
2716
|
modelValue: n.fields.tags,
|
|
2665
|
-
"onUpdate:modelValue": o[
|
|
2717
|
+
"onUpdate:modelValue": o[83] || (o[83] = (r) => n.fields.tags = r),
|
|
2666
2718
|
modelModifiers: { trim: !0 },
|
|
2667
2719
|
autocomplete: "off",
|
|
2668
2720
|
"data-testid": "vault-form-tags",
|
|
2669
|
-
help: e(
|
|
2670
|
-
label: e(
|
|
2671
|
-
placeholder: e(
|
|
2721
|
+
help: e(i)("form.fields.tags.help"),
|
|
2722
|
+
label: e(i)("form.fields.tags.label"),
|
|
2723
|
+
placeholder: e(i)("form.fields.tags.placeholder"),
|
|
2672
2724
|
readonly: n.isReadonly,
|
|
2673
2725
|
type: "text"
|
|
2674
2726
|
}, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"]))
|
|
@@ -2677,11 +2729,11 @@ const dt = {
|
|
|
2677
2729
|
}, 8, ["description", "title"])
|
|
2678
2730
|
]),
|
|
2679
2731
|
_: 1
|
|
2680
|
-
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
2732
|
+
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "tabs-to-hide"])
|
|
2681
2733
|
]);
|
|
2682
2734
|
};
|
|
2683
2735
|
}
|
|
2684
|
-
}),
|
|
2736
|
+
}), il = /* @__PURE__ */ he(Ea, [["__scopeId", "data-v-f76638fa"]]), xa = { class: "kong-ui-vault-entity-config-card" }, et = "************", rl = /* @__PURE__ */ ye({
|
|
2685
2737
|
__name: "VaultConfigCard",
|
|
2686
2738
|
props: {
|
|
2687
2739
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2708,11 +2760,11 @@ const dt = {
|
|
|
2708
2760
|
},
|
|
2709
2761
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
2710
2762
|
setup(l) {
|
|
2711
|
-
const
|
|
2763
|
+
const b = l, s = ["token", "approle_secret_id", "api_key", "aws_access_key_id", "aws_secret_access_key", "aws_auth_nonce", "cert_auth_cert_key", "oauth2_client_secret"], d = k(() => b.config.apiType === "aiGateway"), p = k(() => {
|
|
2712
2764
|
var n, U, f;
|
|
2713
|
-
const
|
|
2714
|
-
return
|
|
2715
|
-
}),
|
|
2765
|
+
const g = d.value ? (n = fe.form.aiGateway) == null ? void 0 : n.edit : (f = fe.form[(U = b.config) == null ? void 0 : U.app]) == null ? void 0 : f.edit;
|
|
2766
|
+
return g == null ? void 0 : g.replace(/{aiGatewayId}/gi, b.config.aiGatewayId || "");
|
|
2767
|
+
}), i = (g) => d.value ? He(g) : g, { i18n: { t: K } } = Ae.useI18n(), { convertKeyToTitle: G } = It(), { getPropValue: w } = Ut(), R = k(() => ({
|
|
2716
2768
|
id: {},
|
|
2717
2769
|
name: {
|
|
2718
2770
|
label: K(d.value ? "labels.vault_type_ai_gateway" : "labels.vault_type")
|
|
@@ -2721,12 +2773,12 @@ const dt = {
|
|
|
2721
2773
|
created_at: {},
|
|
2722
2774
|
prefix: {
|
|
2723
2775
|
order: 5,
|
|
2724
|
-
section:
|
|
2776
|
+
section: Qe.Basic,
|
|
2725
2777
|
label: d.value ? K("labels.vault_name_ai_gateway") : void 0
|
|
2726
2778
|
},
|
|
2727
2779
|
description: {
|
|
2728
2780
|
order: 6,
|
|
2729
|
-
section:
|
|
2781
|
+
section: Qe.Basic
|
|
2730
2782
|
},
|
|
2731
2783
|
// AI Gateway uses labels (not exposed this version) instead of tags.
|
|
2732
2784
|
...d.value ? {} : {
|
|
@@ -2736,71 +2788,72 @@ const dt = {
|
|
|
2736
2788
|
},
|
|
2737
2789
|
config: {
|
|
2738
2790
|
order: 8,
|
|
2739
|
-
type:
|
|
2791
|
+
type: Ht.Json
|
|
2740
2792
|
}
|
|
2741
|
-
})), I = (
|
|
2742
|
-
const n = { ...
|
|
2793
|
+
})), I = (g) => {
|
|
2794
|
+
const n = { ...g.config };
|
|
2743
2795
|
s.forEach((f) => {
|
|
2744
|
-
f in n && (n[f] =
|
|
2796
|
+
f in n && (n[f] = et);
|
|
2745
2797
|
});
|
|
2746
|
-
const U = { ...
|
|
2798
|
+
const U = { ...g, config: n };
|
|
2747
2799
|
if (d.value) {
|
|
2748
2800
|
const f = { ...U, type: U.name, name: U.prefix };
|
|
2749
2801
|
return delete f.prefix, f;
|
|
2750
2802
|
}
|
|
2751
2803
|
return U;
|
|
2752
|
-
},
|
|
2804
|
+
}, x = (g) => {
|
|
2753
2805
|
var n, U;
|
|
2754
|
-
return ((U = (n =
|
|
2806
|
+
return ((U = (n = R.value) == null ? void 0 : n[g]) == null ? void 0 : U.label) || G(g);
|
|
2755
2807
|
};
|
|
2756
|
-
return (
|
|
2757
|
-
u(e(
|
|
2808
|
+
return (g, n) => (v(), N("div", xa, [
|
|
2809
|
+
u(e(Tt), {
|
|
2758
2810
|
"code-block-record-formatter": I,
|
|
2759
2811
|
config: l.config,
|
|
2760
2812
|
"config-card-doc": l.configCardDoc,
|
|
2761
|
-
"config-schema":
|
|
2762
|
-
"entity-type": e(
|
|
2813
|
+
"config-schema": R.value,
|
|
2814
|
+
"entity-type": e(qe).Vault,
|
|
2763
2815
|
"fetch-url": p.value,
|
|
2816
|
+
"formats-to-hide": l.config.apiType === "aiGateway" ? ["terraform", "deck"] : [],
|
|
2764
2817
|
"hide-title": l.hideTitle,
|
|
2765
|
-
"record-resolver":
|
|
2766
|
-
"onFetch:error": n[0] || (n[0] = (U) =>
|
|
2767
|
-
"onFetch:success": n[1] || (n[1] = (U) =>
|
|
2768
|
-
onLoading: n[2] || (n[2] = (U) =>
|
|
2818
|
+
"record-resolver": i,
|
|
2819
|
+
"onFetch:error": n[0] || (n[0] = (U) => g.$emit("fetch:error", U)),
|
|
2820
|
+
"onFetch:success": n[1] || (n[1] = (U) => g.$emit("fetch:success", U)),
|
|
2821
|
+
onLoading: n[2] || (n[2] = (U) => g.$emit("loading", U))
|
|
2769
2822
|
}, {
|
|
2770
|
-
config:
|
|
2771
|
-
(
|
|
2823
|
+
config: y(({ rowValue: U }) => [
|
|
2824
|
+
(v(!0), N(tt, null, _t(Object.keys(U).sort(), (f) => (v(), H(e(Mt), {
|
|
2772
2825
|
key: f,
|
|
2773
2826
|
item: {
|
|
2774
2827
|
key: f,
|
|
2775
|
-
value: s.includes(f) ?
|
|
2776
|
-
label:
|
|
2828
|
+
value: s.includes(f) ? et : e(w)(f, U),
|
|
2829
|
+
label: x(f)
|
|
2777
2830
|
}
|
|
2778
2831
|
}, null, 8, ["item"]))), 128))
|
|
2779
2832
|
]),
|
|
2780
2833
|
_: 1
|
|
2781
|
-
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
2834
|
+
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "formats-to-hide", "hide-title"])
|
|
2782
2835
|
]));
|
|
2783
2836
|
}
|
|
2784
|
-
}),
|
|
2837
|
+
}), Ia = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Ne = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Me = "/v1/ai-gateways/{aiGatewayId}", ce = {
|
|
2785
2838
|
getVault: {
|
|
2786
|
-
konnect: `${
|
|
2787
|
-
aiGateway: `${
|
|
2839
|
+
konnect: `${Ia}/vaults/{id}`,
|
|
2840
|
+
aiGateway: `${Me}/vaults/{id}`
|
|
2788
2841
|
},
|
|
2789
2842
|
list: {
|
|
2790
|
-
konnect: `${
|
|
2791
|
-
aiGateway: `${
|
|
2843
|
+
konnect: `${Ne}/{id}/secrets`,
|
|
2844
|
+
aiGateway: `${Me}/config-stores/{id}/secrets`
|
|
2792
2845
|
},
|
|
2793
2846
|
form: {
|
|
2794
2847
|
konnect: {
|
|
2795
|
-
create: `${
|
|
2796
|
-
edit: `${
|
|
2848
|
+
create: `${Ne}/{id}/secrets`,
|
|
2849
|
+
edit: `${Ne}/{id}/secrets/{secretId}`
|
|
2797
2850
|
},
|
|
2798
2851
|
aiGateway: {
|
|
2799
|
-
create: `${
|
|
2800
|
-
edit: `${
|
|
2852
|
+
create: `${Me}/config-stores/{id}/secrets`,
|
|
2853
|
+
edit: `${Me}/config-stores/{id}/secrets/{secretId}`
|
|
2801
2854
|
}
|
|
2802
2855
|
}
|
|
2803
|
-
},
|
|
2856
|
+
}, Ua = { class: "table-content-overflow-wrapper" }, Ha = /* @__PURE__ */ ye({
|
|
2804
2857
|
inheritAttrs: !1,
|
|
2805
2858
|
__name: "SecretListInner",
|
|
2806
2859
|
props: {
|
|
@@ -2840,103 +2893,103 @@ const dt = {
|
|
|
2840
2893
|
}
|
|
2841
2894
|
},
|
|
2842
2895
|
emits: ["error", "delete:success"],
|
|
2843
|
-
setup(l, { emit:
|
|
2844
|
-
var
|
|
2845
|
-
const s =
|
|
2896
|
+
setup(l, { emit: b }) {
|
|
2897
|
+
var be;
|
|
2898
|
+
const s = b, d = l, { i18n: { t: p, formatUnixTimeStamp: i } } = Ae.useI18n(), { axiosInstance: K } = Ce((be = d.config) == null ? void 0 : be.axiosRequestConfig), w = {
|
|
2846
2899
|
// the Secret Key column is non-hidable
|
|
2847
2900
|
key: { label: p("secrets.list.table_headers.key"), sortable: !1, hidable: !1 },
|
|
2848
2901
|
updated_at: { label: p("secrets.list.table_headers.updated_at"), sortable: !1 }
|
|
2849
|
-
},
|
|
2850
|
-
"data-testid":
|
|
2851
|
-
}), I = k(() => d.config.apiType === "aiGateway" ?
|
|
2852
|
-
var
|
|
2853
|
-
return `${d.config.apiBaseUrl}${I.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((
|
|
2854
|
-
}),
|
|
2902
|
+
}, R = (q) => ({
|
|
2903
|
+
"data-testid": q.key
|
|
2904
|
+
}), I = k(() => d.config.apiType === "aiGateway" ? ce.list.aiGateway : ce.list[d.config.app]), x = k(() => {
|
|
2905
|
+
var q, T;
|
|
2906
|
+
return `${d.config.apiBaseUrl}${I.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((q = d.config) == null ? void 0 : q.controlPlaneId) || "").replace(/\/{workspace}/gi, (T = d.config) != null && T.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.configStoreId || "");
|
|
2907
|
+
}), g = D(""), n = {
|
|
2855
2908
|
isExactMatch: !0,
|
|
2856
2909
|
placeholder: p("search.placeholder_for_secrets.konnect")
|
|
2857
2910
|
}, {
|
|
2858
2911
|
fetcher: U,
|
|
2859
2912
|
fetcherState: f,
|
|
2860
|
-
fetcherCacheKey:
|
|
2861
|
-
} =
|
|
2862
|
-
|
|
2863
|
-
},
|
|
2913
|
+
fetcherCacheKey: oe
|
|
2914
|
+
} = lt(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), x), J = () => {
|
|
2915
|
+
g.value = "";
|
|
2916
|
+
}, ne = D(null), pe = (q) => ({
|
|
2864
2917
|
label: p("actions.edit"),
|
|
2865
|
-
to: d.config.getEditRoute(
|
|
2866
|
-
}),
|
|
2867
|
-
|
|
2868
|
-
},
|
|
2918
|
+
to: d.config.getEditRoute(q)
|
|
2919
|
+
}), $ = D(void 0), a = D(!1), se = D(!1), V = D(""), Y = ot(d.config, x.value), ie = (q) => {
|
|
2920
|
+
$.value = q, a.value = !0;
|
|
2921
|
+
}, me = () => {
|
|
2869
2922
|
a.value = !1;
|
|
2870
|
-
},
|
|
2871
|
-
var
|
|
2872
|
-
if ((
|
|
2873
|
-
|
|
2923
|
+
}, re = async () => {
|
|
2924
|
+
var q, T, le;
|
|
2925
|
+
if ((q = $.value) != null && q.key) {
|
|
2926
|
+
se.value = !0;
|
|
2874
2927
|
try {
|
|
2875
|
-
await K.delete(
|
|
2876
|
-
} catch (
|
|
2877
|
-
V.value = ((
|
|
2928
|
+
await K.delete(Y($.value.key)), se.value = !1, a.value = !1, oe.value++, s("delete:success", $.value);
|
|
2929
|
+
} catch (X) {
|
|
2930
|
+
V.value = ((le = (T = X.response) == null ? void 0 : T.data) == null ? void 0 : le.message) || X.message || p("errors.delete"), s("error", X);
|
|
2878
2931
|
} finally {
|
|
2879
|
-
|
|
2932
|
+
se.value = !1;
|
|
2880
2933
|
}
|
|
2881
2934
|
}
|
|
2882
2935
|
};
|
|
2883
|
-
|
|
2884
|
-
var
|
|
2885
|
-
if (
|
|
2886
|
-
|
|
2936
|
+
Ue(f, (q) => {
|
|
2937
|
+
var T, le, X;
|
|
2938
|
+
if (q.status === it.Error) {
|
|
2939
|
+
ne.value = {
|
|
2887
2940
|
title: p("errors.general")
|
|
2888
|
-
}, (
|
|
2941
|
+
}, (X = (le = (T = q.error) == null ? void 0 : T.response) == null ? void 0 : le.data) != null && X.message && (ne.value.message = q.error.response.data.message), s("error", q.error);
|
|
2889
2942
|
return;
|
|
2890
2943
|
}
|
|
2891
|
-
|
|
2944
|
+
ne.value = null;
|
|
2892
2945
|
});
|
|
2893
|
-
const
|
|
2946
|
+
const L = D({
|
|
2894
2947
|
ctaPath: d.config.createRoute,
|
|
2895
2948
|
ctaText: void 0,
|
|
2896
2949
|
message: `${p("secrets.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
|
|
2897
2950
|
title: p("secrets.title")
|
|
2898
2951
|
});
|
|
2899
|
-
return
|
|
2900
|
-
await d.canCreate() && (
|
|
2901
|
-
}), (
|
|
2902
|
-
const
|
|
2903
|
-
return
|
|
2904
|
-
u(e(
|
|
2952
|
+
return Ge(async () => {
|
|
2953
|
+
await d.canCreate() && (L.value.title = p("secrets.list.empty_state.title"), L.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
|
|
2954
|
+
}), (q, T) => {
|
|
2955
|
+
const le = Q("KButton"), X = Q("KDropdownItem");
|
|
2956
|
+
return v(), N(tt, null, [
|
|
2957
|
+
u(e(rt), {
|
|
2905
2958
|
"cache-identifier": l.cacheIdentifier,
|
|
2906
2959
|
"disable-sorting": "",
|
|
2907
|
-
"empty-state-options":
|
|
2960
|
+
"empty-state-options": L.value,
|
|
2908
2961
|
"enable-entity-actions": "",
|
|
2909
|
-
"error-message":
|
|
2962
|
+
"error-message": ne.value,
|
|
2910
2963
|
fetcher: e(U),
|
|
2911
|
-
"fetcher-cache-key": e(
|
|
2964
|
+
"fetcher-cache-key": e(oe),
|
|
2912
2965
|
"pagination-type": "offset",
|
|
2913
2966
|
"preferences-storage-key": "kong-ui-entities-secrets-list",
|
|
2914
|
-
query:
|
|
2915
|
-
"row-attributes":
|
|
2967
|
+
query: g.value,
|
|
2968
|
+
"row-attributes": R,
|
|
2916
2969
|
"table-headers": e(w),
|
|
2917
2970
|
onClearSearchInput: J
|
|
2918
2971
|
}, {
|
|
2919
|
-
"toolbar-filter":
|
|
2920
|
-
u(e(
|
|
2921
|
-
modelValue:
|
|
2922
|
-
"onUpdate:modelValue":
|
|
2972
|
+
"toolbar-filter": y(() => [
|
|
2973
|
+
u(e(nt), {
|
|
2974
|
+
modelValue: g.value,
|
|
2975
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ee) => g.value = ee),
|
|
2923
2976
|
config: n
|
|
2924
2977
|
}, null, 8, ["modelValue"])
|
|
2925
2978
|
]),
|
|
2926
|
-
"toolbar-button":
|
|
2927
|
-
u(e(
|
|
2979
|
+
"toolbar-button": y(() => [
|
|
2980
|
+
u(e(ke), {
|
|
2928
2981
|
"auth-function": () => l.canCreate()
|
|
2929
2982
|
}, {
|
|
2930
|
-
default:
|
|
2931
|
-
u(
|
|
2983
|
+
default: y(() => [
|
|
2984
|
+
u(le, {
|
|
2932
2985
|
appearance: "primary",
|
|
2933
2986
|
"data-testid": "toolbar-add-secret",
|
|
2934
2987
|
size: "large",
|
|
2935
2988
|
to: l.config.createRoute
|
|
2936
2989
|
}, {
|
|
2937
|
-
default:
|
|
2938
|
-
u(e(
|
|
2939
|
-
|
|
2990
|
+
default: y(() => [
|
|
2991
|
+
u(e(Ke)),
|
|
2992
|
+
ve(" " + O(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
|
|
2940
2993
|
]),
|
|
2941
2994
|
_: 1
|
|
2942
2995
|
}, 8, ["to"])
|
|
@@ -2944,38 +2997,38 @@ const dt = {
|
|
|
2944
2997
|
_: 1
|
|
2945
2998
|
}, 8, ["auth-function"])
|
|
2946
2999
|
]),
|
|
2947
|
-
key:
|
|
2948
|
-
|
|
2949
|
-
|
|
3000
|
+
key: y(({ rowValue: ee }) => [
|
|
3001
|
+
M("div", Ua, [
|
|
3002
|
+
M("b", null, O(ee ?? "-"), 1)
|
|
2950
3003
|
])
|
|
2951
3004
|
]),
|
|
2952
|
-
updated_at:
|
|
2953
|
-
|
|
3005
|
+
updated_at: y(({ rowValue: ee }) => [
|
|
3006
|
+
M("span", null, O(ee ? e(i)(new Date(ee).getTime() / 1e3) : "-"), 1)
|
|
2954
3007
|
]),
|
|
2955
|
-
actions:
|
|
2956
|
-
u(e(
|
|
2957
|
-
"auth-function": () => l.canEdit(
|
|
3008
|
+
actions: y(({ row: ee }) => [
|
|
3009
|
+
u(e(ke), {
|
|
3010
|
+
"auth-function": () => l.canEdit(ee)
|
|
2958
3011
|
}, {
|
|
2959
|
-
default:
|
|
2960
|
-
u(
|
|
3012
|
+
default: y(() => [
|
|
3013
|
+
u(X, {
|
|
2961
3014
|
"data-testid": "action-entity-edit",
|
|
2962
|
-
item:
|
|
3015
|
+
item: pe(ee.key)
|
|
2963
3016
|
}, null, 8, ["item"])
|
|
2964
3017
|
]),
|
|
2965
3018
|
_: 2
|
|
2966
3019
|
}, 1032, ["auth-function"]),
|
|
2967
|
-
u(e(
|
|
2968
|
-
"auth-function": () => l.canDelete(
|
|
3020
|
+
u(e(ke), {
|
|
3021
|
+
"auth-function": () => l.canDelete(ee)
|
|
2969
3022
|
}, {
|
|
2970
|
-
default:
|
|
2971
|
-
u(
|
|
3023
|
+
default: y(() => [
|
|
3024
|
+
u(X, {
|
|
2972
3025
|
danger: "",
|
|
2973
3026
|
"data-testid": "action-entity-delete",
|
|
2974
3027
|
"has-divider": "",
|
|
2975
|
-
onClick: (
|
|
3028
|
+
onClick: (we) => ie(ee)
|
|
2976
3029
|
}, {
|
|
2977
|
-
default:
|
|
2978
|
-
|
|
3030
|
+
default: y(() => [
|
|
3031
|
+
ve(O(e(p)("actions.delete")), 1)
|
|
2979
3032
|
]),
|
|
2980
3033
|
_: 1
|
|
2981
3034
|
}, 8, ["onClick"])
|
|
@@ -2985,21 +3038,21 @@ const dt = {
|
|
|
2985
3038
|
]),
|
|
2986
3039
|
_: 1
|
|
2987
3040
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
2988
|
-
u(e(
|
|
2989
|
-
"action-pending":
|
|
3041
|
+
u(e(st), {
|
|
3042
|
+
"action-pending": se.value,
|
|
2990
3043
|
description: e(p)("delete.description"),
|
|
2991
|
-
"entity-name":
|
|
2992
|
-
"entity-type": e(
|
|
3044
|
+
"entity-name": $.value && $.value.key,
|
|
3045
|
+
"entity-type": e(dt).Secret,
|
|
2993
3046
|
error: V.value,
|
|
2994
3047
|
title: e(p)("delete.title_for_secret"),
|
|
2995
3048
|
visible: a.value,
|
|
2996
|
-
onCancel:
|
|
2997
|
-
onProceed:
|
|
3049
|
+
onCancel: me,
|
|
3050
|
+
onProceed: re
|
|
2998
3051
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
2999
3052
|
], 64);
|
|
3000
3053
|
};
|
|
3001
3054
|
}
|
|
3002
|
-
}),
|
|
3055
|
+
}), Ta = /* @__PURE__ */ he(Ha, [["__scopeId", "data-v-115ca40d"]]), Ma = { class: "kong-ui-entities-secrets-list" }, Ga = /* @__PURE__ */ ye({
|
|
3003
3056
|
__name: "SecretList",
|
|
3004
3057
|
props: {
|
|
3005
3058
|
/** The base konnect config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3038,33 +3091,33 @@ const dt = {
|
|
|
3038
3091
|
}
|
|
3039
3092
|
},
|
|
3040
3093
|
emits: ["error", "delete:success"],
|
|
3041
|
-
setup(l, { emit:
|
|
3094
|
+
setup(l, { emit: b }) {
|
|
3042
3095
|
var I;
|
|
3043
|
-
const s =
|
|
3044
|
-
s("error",
|
|
3045
|
-
},
|
|
3046
|
-
s("delete:success",
|
|
3047
|
-
}, { axiosInstance: K } =
|
|
3048
|
-
var
|
|
3049
|
-
return `${d.config.apiBaseUrl}${w.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((
|
|
3096
|
+
const s = b, d = l, p = (x) => {
|
|
3097
|
+
s("error", x);
|
|
3098
|
+
}, i = (x) => {
|
|
3099
|
+
s("delete:success", x);
|
|
3100
|
+
}, { axiosInstance: K } = Ce((I = d.config) == null ? void 0 : I.axiosRequestConfig), G = D(""), w = k(() => d.config.apiType === "aiGateway" ? ce.getVault.aiGateway : ce.getVault[d.config.app]), R = k(() => {
|
|
3101
|
+
var x, g;
|
|
3102
|
+
return `${d.config.apiBaseUrl}${w.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((x = d.config) == null ? void 0 : x.controlPlaneId) || "").replace(/\/{workspace}/gi, (g = d.config) != null && g.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.vaultId);
|
|
3050
3103
|
});
|
|
3051
|
-
return
|
|
3052
|
-
var
|
|
3104
|
+
return Ge(async () => {
|
|
3105
|
+
var x;
|
|
3053
3106
|
try {
|
|
3054
|
-
const { data:
|
|
3055
|
-
|
|
3056
|
-
} catch (
|
|
3057
|
-
s("error",
|
|
3107
|
+
const { data: g } = await K.get(R.value);
|
|
3108
|
+
G.value = (x = g == null ? void 0 : g.config) == null ? void 0 : x.config_store_id;
|
|
3109
|
+
} catch (g) {
|
|
3110
|
+
s("error", g);
|
|
3058
3111
|
}
|
|
3059
|
-
}), (
|
|
3060
|
-
|
|
3061
|
-
"config-store-id":
|
|
3062
|
-
"onDelete:success":
|
|
3112
|
+
}), (x, g) => (v(), N("div", Ma, [
|
|
3113
|
+
G.value ? (v(), H(Ta, at({ key: 0 }, d, {
|
|
3114
|
+
"config-store-id": G.value,
|
|
3115
|
+
"onDelete:success": i,
|
|
3063
3116
|
onError: p
|
|
3064
|
-
}), null, 16, ["config-store-id"])) :
|
|
3117
|
+
}), null, 16, ["config-store-id"])) : j("", !0)
|
|
3065
3118
|
]));
|
|
3066
3119
|
}
|
|
3067
|
-
}),
|
|
3120
|
+
}), nl = /* @__PURE__ */ he(Ga, [["__scopeId", "data-v-e9c157a0"]]), $a = /* @__PURE__ */ ye({
|
|
3068
3121
|
inheritAttrs: !1,
|
|
3069
3122
|
__name: "SecretFormInner",
|
|
3070
3123
|
props: {
|
|
@@ -3087,92 +3140,92 @@ const dt = {
|
|
|
3087
3140
|
}
|
|
3088
3141
|
},
|
|
3089
3142
|
emits: ["update", "error", "loading"],
|
|
3090
|
-
setup(l, { emit:
|
|
3091
|
-
var
|
|
3092
|
-
const s = l, d =
|
|
3143
|
+
setup(l, { emit: b }) {
|
|
3144
|
+
var se;
|
|
3145
|
+
const s = l, d = b, { i18n: { t: p } } = Ae.useI18n(), i = je(), { axiosInstance: K } = Ce((se = s.config) == null ? void 0 : se.axiosRequestConfig), { getMessageFromError: G } = ut(), w = Ee({
|
|
3093
3146
|
fields: {
|
|
3094
3147
|
key: "",
|
|
3095
3148
|
value: ""
|
|
3096
3149
|
},
|
|
3097
3150
|
readonly: !1,
|
|
3098
3151
|
errorMessage: ""
|
|
3099
|
-
}),
|
|
3152
|
+
}), R = Ee({
|
|
3100
3153
|
key: "",
|
|
3101
3154
|
value: ""
|
|
3102
|
-
}), I = k(() => s.config.apiType === "aiGateway" ?
|
|
3155
|
+
}), I = k(() => s.config.apiType === "aiGateway" ? ce.form.aiGateway : ce.form[s.config.app]), x = k(
|
|
3103
3156
|
() => {
|
|
3104
3157
|
var V;
|
|
3105
3158
|
return (V = I.value) == null ? void 0 : V.edit.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{id}/gi, s.configStoreId).replace(/{secretId}/gi, s.secretId);
|
|
3106
3159
|
}
|
|
3107
|
-
),
|
|
3160
|
+
), g = () => {
|
|
3108
3161
|
var V;
|
|
3109
|
-
|
|
3162
|
+
i.push(((V = s.config) == null ? void 0 : V.cancelRoute) || { name: "secret-list" });
|
|
3110
3163
|
}, n = (V) => {
|
|
3111
3164
|
d("loading", V);
|
|
3112
3165
|
}, U = (V) => {
|
|
3113
3166
|
d("error", V);
|
|
3114
3167
|
}, f = (V) => {
|
|
3115
|
-
var
|
|
3116
|
-
w.fields.key = ((
|
|
3117
|
-
},
|
|
3118
|
-
var V,
|
|
3119
|
-
return `${s.config.apiBaseUrl}${I.value[
|
|
3120
|
-
}),
|
|
3168
|
+
var Y, ie;
|
|
3169
|
+
w.fields.key = ((Y = V == null ? void 0 : V.item) == null ? void 0 : Y.key) || (V == null ? void 0 : V.key) || "", w.fields.value = ((ie = V == null ? void 0 : V.item) == null ? void 0 : ie.value) || (V == null ? void 0 : V.value) || "", Object.assign(R, w.fields);
|
|
3170
|
+
}, oe = k(() => s.secretId ? ge.Edit : ge.Create), J = k(() => {
|
|
3171
|
+
var V, Y;
|
|
3172
|
+
return `${s.config.apiBaseUrl}${I.value[oe.value]}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((V = s.config) == null ? void 0 : V.controlPlaneId) || "").replace(/\/{workspace}/gi, (Y = s.config) != null && Y.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.configStoreId).replace(/{secretId}/gi, s.secretId);
|
|
3173
|
+
}), ne = k(() => !!w.fields.key && !!w.fields.value), pe = k(() => JSON.stringify(w.fields) !== JSON.stringify(R)), $ = k(() => ({
|
|
3121
3174
|
key: w.fields.key,
|
|
3122
3175
|
value: w.fields.value
|
|
3123
3176
|
})), a = async () => {
|
|
3124
3177
|
try {
|
|
3125
3178
|
w.readonly = !0;
|
|
3126
3179
|
let V;
|
|
3127
|
-
|
|
3180
|
+
oe.value === "create" ? V = await K.post(J.value, $.value) : oe.value === "edit" && (V = await K.put(J.value, $.value)), f(V == null ? void 0 : V.data), d("update", V == null ? void 0 : V.data);
|
|
3128
3181
|
} catch (V) {
|
|
3129
|
-
w.errorMessage =
|
|
3182
|
+
w.errorMessage = G(V), d("error", V);
|
|
3130
3183
|
} finally {
|
|
3131
3184
|
w.readonly = !1;
|
|
3132
3185
|
}
|
|
3133
3186
|
};
|
|
3134
|
-
return (V,
|
|
3135
|
-
const
|
|
3136
|
-
return
|
|
3137
|
-
"can-submit":
|
|
3187
|
+
return (V, Y) => {
|
|
3188
|
+
const ie = Q("KInput"), me = Q("KTextArea"), re = Q("KAlert");
|
|
3189
|
+
return v(), H(e(ct), {
|
|
3190
|
+
"can-submit": ne.value && pe.value,
|
|
3138
3191
|
config: l.config,
|
|
3139
3192
|
"edit-id": l.secretId,
|
|
3140
|
-
"entity-type": e(
|
|
3193
|
+
"entity-type": e(qe).Other,
|
|
3141
3194
|
"error-message": w.errorMessage,
|
|
3142
|
-
"fetch-url":
|
|
3143
|
-
"form-fields":
|
|
3195
|
+
"fetch-url": x.value,
|
|
3196
|
+
"form-fields": $.value,
|
|
3144
3197
|
"is-readonly": w.readonly,
|
|
3145
|
-
onCancel:
|
|
3198
|
+
onCancel: g,
|
|
3146
3199
|
"onFetch:error": U,
|
|
3147
3200
|
"onFetch:success": f,
|
|
3148
3201
|
onLoading: n,
|
|
3149
3202
|
onSubmit: a
|
|
3150
3203
|
}, {
|
|
3151
|
-
default:
|
|
3152
|
-
|
|
3153
|
-
u(e(
|
|
3204
|
+
default: y(() => [
|
|
3205
|
+
M("div", null, [
|
|
3206
|
+
u(e(Oe), {
|
|
3154
3207
|
description: e(p)("secrets.form.info.description"),
|
|
3155
3208
|
"has-divider": "",
|
|
3156
3209
|
title: e(p)("secrets.form.info.title")
|
|
3157
3210
|
}, {
|
|
3158
|
-
default:
|
|
3159
|
-
u(
|
|
3211
|
+
default: y(() => [
|
|
3212
|
+
u(ie, {
|
|
3160
3213
|
modelValue: w.fields.key,
|
|
3161
|
-
"onUpdate:modelValue":
|
|
3214
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (L) => w.fields.key = L),
|
|
3162
3215
|
modelModifiers: { trim: !0 },
|
|
3163
3216
|
autocomplete: "off",
|
|
3164
3217
|
class: "key-field",
|
|
3165
3218
|
"data-testid": "secret-form-key",
|
|
3166
|
-
disabled:
|
|
3219
|
+
disabled: oe.value === e(ge).Edit,
|
|
3167
3220
|
label: e(p)("secrets.form.fields.key.label"),
|
|
3168
3221
|
placeholder: e(p)("secrets.form.fields.key.placeholder"),
|
|
3169
3222
|
readonly: w.readonly,
|
|
3170
3223
|
required: "",
|
|
3171
3224
|
type: "text"
|
|
3172
3225
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
3173
|
-
u(
|
|
3226
|
+
u(me, {
|
|
3174
3227
|
modelValue: w.fields.value,
|
|
3175
|
-
"onUpdate:modelValue":
|
|
3228
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (L) => w.fields.value = L),
|
|
3176
3229
|
modelModifiers: { trim: !0 },
|
|
3177
3230
|
autocomplete: "off",
|
|
3178
3231
|
"character-limit": !1,
|
|
@@ -3184,7 +3237,7 @@ const dt = {
|
|
|
3184
3237
|
resizable: "",
|
|
3185
3238
|
type: "text"
|
|
3186
3239
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
3187
|
-
u(
|
|
3240
|
+
u(re, {
|
|
3188
3241
|
appearance: "warning",
|
|
3189
3242
|
message: e(p)("secrets.form.hint")
|
|
3190
3243
|
}, null, 8, ["message"])
|
|
@@ -3197,7 +3250,7 @@ const dt = {
|
|
|
3197
3250
|
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
|
|
3198
3251
|
};
|
|
3199
3252
|
}
|
|
3200
|
-
}),
|
|
3253
|
+
}), Pa = /* @__PURE__ */ he($a, [["__scopeId", "data-v-31bf6bef"]]), Fa = { class: "kong-ui-entities-secret-form" }, Na = /* @__PURE__ */ ye({
|
|
3201
3254
|
__name: "SecretForm",
|
|
3202
3255
|
props: {
|
|
3203
3256
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3219,38 +3272,38 @@ const dt = {
|
|
|
3219
3272
|
}
|
|
3220
3273
|
},
|
|
3221
3274
|
emits: ["update", "error", "loading"],
|
|
3222
|
-
setup(l, { emit:
|
|
3223
|
-
var
|
|
3224
|
-
const s = l, d =
|
|
3225
|
-
d("update",
|
|
3226
|
-
},
|
|
3227
|
-
d("error",
|
|
3228
|
-
}, K = (
|
|
3229
|
-
d("loading",
|
|
3230
|
-
}, { axiosInstance:
|
|
3231
|
-
var
|
|
3232
|
-
return `${s.config.apiBaseUrl}${
|
|
3275
|
+
setup(l, { emit: b }) {
|
|
3276
|
+
var x;
|
|
3277
|
+
const s = l, d = b, p = (g) => {
|
|
3278
|
+
d("update", g);
|
|
3279
|
+
}, i = (g) => {
|
|
3280
|
+
d("error", g);
|
|
3281
|
+
}, K = (g) => {
|
|
3282
|
+
d("loading", g);
|
|
3283
|
+
}, { axiosInstance: G } = Ce((x = s.config) == null ? void 0 : x.axiosRequestConfig), w = D(""), R = k(() => s.config.apiType === "aiGateway" ? ce.getVault.aiGateway : ce.getVault[s.config.app]), I = k(() => {
|
|
3284
|
+
var g, n;
|
|
3285
|
+
return `${s.config.apiBaseUrl}${R.value}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((g = s.config) == null ? void 0 : g.controlPlaneId) || "").replace(/\/{workspace}/gi, (n = s.config) != null && n.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId);
|
|
3233
3286
|
});
|
|
3234
|
-
return
|
|
3235
|
-
var
|
|
3287
|
+
return Ge(async () => {
|
|
3288
|
+
var g;
|
|
3236
3289
|
try {
|
|
3237
|
-
const { data: n } = await
|
|
3238
|
-
w.value = (
|
|
3290
|
+
const { data: n } = await G.get(I.value);
|
|
3291
|
+
w.value = (g = n == null ? void 0 : n.config) == null ? void 0 : g.config_store_id;
|
|
3239
3292
|
} catch (n) {
|
|
3240
3293
|
d("error", n);
|
|
3241
3294
|
}
|
|
3242
|
-
}), (
|
|
3243
|
-
w.value ? (
|
|
3295
|
+
}), (g, n) => (v(), N("div", Fa, [
|
|
3296
|
+
w.value ? (v(), H(Pa, at({ key: 0 }, s, {
|
|
3244
3297
|
"config-store-id": w.value,
|
|
3245
|
-
onError:
|
|
3298
|
+
onError: i,
|
|
3246
3299
|
onLoading: K,
|
|
3247
3300
|
onUpdate: p
|
|
3248
|
-
}), null, 16, ["config-store-id"])) :
|
|
3301
|
+
}), null, 16, ["config-store-id"])) : j("", !0)
|
|
3249
3302
|
]));
|
|
3250
3303
|
}
|
|
3251
|
-
}),
|
|
3304
|
+
}), sl = /* @__PURE__ */ he(Na, [["__scopeId", "data-v-1651a0c6"]]), Ka = {
|
|
3252
3305
|
class: "vault-secret-picker-provider"
|
|
3253
|
-
},
|
|
3306
|
+
}, Oa = /* @__PURE__ */ ye({
|
|
3254
3307
|
__name: "VaultSecretPickerProvider",
|
|
3255
3308
|
props: {
|
|
3256
3309
|
value: {},
|
|
@@ -3263,56 +3316,56 @@ const dt = {
|
|
|
3263
3316
|
},
|
|
3264
3317
|
emits: ["open"],
|
|
3265
3318
|
setup(l, {
|
|
3266
|
-
emit:
|
|
3319
|
+
emit: b
|
|
3267
3320
|
}) {
|
|
3268
|
-
const s = l, d =
|
|
3321
|
+
const s = l, d = b, {
|
|
3269
3322
|
i18n: {
|
|
3270
3323
|
t: p
|
|
3271
3324
|
},
|
|
3272
|
-
i18nT:
|
|
3273
|
-
} =
|
|
3274
|
-
return (K,
|
|
3325
|
+
i18nT: i
|
|
3326
|
+
} = Ae.useI18n();
|
|
3327
|
+
return (K, G) => (v(), N("div", Ka, [u(e(i), {
|
|
3275
3328
|
keypath: "vault_secret_picker.provider.complete_action",
|
|
3276
3329
|
scope: "global"
|
|
3277
3330
|
}, {
|
|
3278
|
-
cta:
|
|
3279
|
-
class:
|
|
3331
|
+
cta: y(() => [M("span", {
|
|
3332
|
+
class: vt({
|
|
3280
3333
|
"vault-secret-picker-provider-action": !0,
|
|
3281
3334
|
disabled: s.disabled
|
|
3282
3335
|
}),
|
|
3283
|
-
onClick:
|
|
3284
|
-
},
|
|
3336
|
+
onClick: G[0] || (G[0] = () => !s.disabled && d("open", s.value, s.update))
|
|
3337
|
+
}, O(e(p)("vault_secret_picker.provider.cta")), 3)]),
|
|
3285
3338
|
_: 1
|
|
3286
3339
|
})]));
|
|
3287
3340
|
}
|
|
3288
|
-
}),
|
|
3289
|
-
let
|
|
3290
|
-
if (!
|
|
3341
|
+
}), dl = /* @__PURE__ */ he(Oa, [["__scopeId", "data-v-d135d1d0"]]), Wa = (l) => {
|
|
3342
|
+
let b = l.trim();
|
|
3343
|
+
if (!b.startsWith("{") || !b.endsWith("}"))
|
|
3291
3344
|
throw new Error("Invalid secret reference: must be enclosed in curly braces");
|
|
3292
|
-
if (
|
|
3345
|
+
if (b = b.substring(1, b.length - 1).trim(), !b.startsWith("vault://"))
|
|
3293
3346
|
throw new Error("Invalid secret reference: must start with vault://");
|
|
3294
|
-
const s = new URL(`http://${
|
|
3347
|
+
const s = new URL(`http://${b.substring(8)}`);
|
|
3295
3348
|
if (!s)
|
|
3296
3349
|
throw new Error("Invalid secret reference: must have a vault prefix");
|
|
3297
|
-
const d = s.host, [, p, ...
|
|
3350
|
+
const d = s.host, [, p, ...i] = s.pathname.split("/");
|
|
3298
3351
|
if (!d)
|
|
3299
3352
|
throw new Error("Invalid secret reference: must have a vault prefix");
|
|
3300
3353
|
return {
|
|
3301
3354
|
vaultPrefix: d,
|
|
3302
3355
|
secretId: p || void 0,
|
|
3303
3356
|
// Non-empty string or undefined
|
|
3304
|
-
optionalSecretKey:
|
|
3357
|
+
optionalSecretKey: i == null ? void 0 : i.join("/")
|
|
3305
3358
|
// Non-empty string or undefined
|
|
3306
3359
|
};
|
|
3307
|
-
},
|
|
3360
|
+
}, ja = (l) => {
|
|
3308
3361
|
if (!l.vaultPrefix)
|
|
3309
3362
|
throw new Error("Invalid secret reference: must have a vault prefix");
|
|
3310
|
-
let
|
|
3311
|
-
return l.secretId && (
|
|
3312
|
-
},
|
|
3363
|
+
let b = `vault://${l.vaultPrefix}`;
|
|
3364
|
+
return l.secretId && (b = `${b}/${l.secretId}`), l.optionalSecretKey && (b = `${b}/${l.optionalSecretKey}`), `{${b}}`;
|
|
3365
|
+
}, qa = {
|
|
3313
3366
|
key: 1,
|
|
3314
3367
|
class: "inputs-wrapper"
|
|
3315
|
-
},
|
|
3368
|
+
}, za = { "data-testid": "no-search-results" }, Da = { class: "k-select-selected-item-label" }, Za = { class: "vault-secret-picker-vault-dropdown-item" }, Ba = { class: "select-item-label" }, La = { class: "select-item-description" }, Ja = { class: "select-item-description" }, Qa = { "data-testid": "no-search-results" }, Ya = /* @__PURE__ */ ye({
|
|
3316
3369
|
__name: "VaultSecretPicker",
|
|
3317
3370
|
props: {
|
|
3318
3371
|
config: {
|
|
@@ -3352,138 +3405,138 @@ const dt = {
|
|
|
3352
3405
|
}
|
|
3353
3406
|
},
|
|
3354
3407
|
emits: ["proceed", "cancel"],
|
|
3355
|
-
setup(l, { emit:
|
|
3356
|
-
var
|
|
3357
|
-
const { i18n: { t: s } } =
|
|
3408
|
+
setup(l, { emit: b }) {
|
|
3409
|
+
var Se;
|
|
3410
|
+
const { i18n: { t: s } } = Ae.useI18n(), d = l, p = b, { axiosInstance: i } = Ce({
|
|
3358
3411
|
// 404 errors are allowed in this components
|
|
3359
|
-
validateStatus: (
|
|
3412
|
+
validateStatus: (C) => C === 404 || C >= 200 && C < 300,
|
|
3360
3413
|
// Spread the passed-in config later to allow overriding
|
|
3361
|
-
...(
|
|
3362
|
-
}), K =
|
|
3363
|
-
var
|
|
3364
|
-
return
|
|
3414
|
+
...(Se = d.config) == null ? void 0 : Se.axiosRequestConfig
|
|
3415
|
+
}), K = D(!1), G = D(""), w = D(""), R = D(""), I = D(), x = k(() => d.config.apiType === "aiGateway"), g = (C) => C.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), n = k(() => x.value ? g(fe.list.aiGateway.getAll) : fe.list[d.config.app].getAll), U = k(() => {
|
|
3416
|
+
var C, A, P, z;
|
|
3417
|
+
return x.value ? g(ce.list.aiGateway).replace(/{id}/gi, ((A = (C = I.value) == null ? void 0 : C.config) == null ? void 0 : A.config_store_id) ?? "") : d.config.app === "konnect" ? ce.list[d.config.app].replace(/{id}/gi, ((z = (P = I.value) == null ? void 0 : P.config) == null ? void 0 : z.config_store_id) ?? "") : "<not_applicable>";
|
|
3365
3418
|
}), f = k(() => {
|
|
3366
|
-
if (
|
|
3419
|
+
if (ne && V)
|
|
3367
3420
|
return s("vault_secret_picker.fetch_error.vaults_and_secrets");
|
|
3368
|
-
if (
|
|
3421
|
+
if (ne)
|
|
3369
3422
|
return s("vault_secret_picker.fetch_error.vaults");
|
|
3370
3423
|
if (V)
|
|
3371
3424
|
return s("vault_secret_picker.fetch_error.secrets");
|
|
3372
3425
|
}), {
|
|
3373
|
-
debouncedQueryChange:
|
|
3426
|
+
debouncedQueryChange: oe,
|
|
3374
3427
|
loading: J,
|
|
3375
|
-
error:
|
|
3376
|
-
loadItems:
|
|
3377
|
-
results:
|
|
3378
|
-
} =
|
|
3428
|
+
error: ne,
|
|
3429
|
+
loadItems: pe,
|
|
3430
|
+
results: $
|
|
3431
|
+
} = Ye(d.config, n, void 0, {
|
|
3379
3432
|
fetchedItemsKey: "data",
|
|
3380
3433
|
// AI Gateway vaults carry the identifier in `name`; gateway vaults in `prefix`.
|
|
3381
|
-
searchKeys:
|
|
3434
|
+
searchKeys: x.value ? ["name"] : ["prefix"]
|
|
3382
3435
|
}), {
|
|
3383
3436
|
debouncedQueryChange: a,
|
|
3384
|
-
loading:
|
|
3437
|
+
loading: se,
|
|
3385
3438
|
error: V,
|
|
3386
|
-
loadItems:
|
|
3387
|
-
results:
|
|
3388
|
-
} =
|
|
3439
|
+
loadItems: Y,
|
|
3440
|
+
results: ie
|
|
3441
|
+
} = Ye(d.config, U, void 0, {
|
|
3389
3442
|
fetchedItemsKey: "data",
|
|
3390
3443
|
searchKeys: ["key"],
|
|
3391
3444
|
exactMatchKey: "key"
|
|
3392
|
-
}),
|
|
3393
|
-
var
|
|
3394
|
-
return (
|
|
3395
|
-
},
|
|
3396
|
-
let
|
|
3397
|
-
const
|
|
3398
|
-
return !
|
|
3445
|
+
}), me = (C) => {
|
|
3446
|
+
var A;
|
|
3447
|
+
return (A = d.allowedProviders) != null && A.length ? d.allowedProviders.includes(C) : C !== t.AZURE_CERTS;
|
|
3448
|
+
}, re = k(() => x.value ? ($.value ?? []).map((C) => He(C)) : $.value ?? []), L = k(() => {
|
|
3449
|
+
let C = !1;
|
|
3450
|
+
const A = (re.value ?? []).filter((P) => me(P.name)).map((P) => (P.prefix === G.value && (C = !0), { label: P.prefix, value: P.prefix, vault: P }));
|
|
3451
|
+
return !C && I.value && A.push({
|
|
3399
3452
|
label: I.value.prefix,
|
|
3400
3453
|
value: I.value.prefix,
|
|
3401
3454
|
vault: I.value
|
|
3402
|
-
}),
|
|
3403
|
-
}),
|
|
3404
|
-
var
|
|
3405
|
-
let
|
|
3406
|
-
const
|
|
3407
|
-
return !
|
|
3408
|
-
}),
|
|
3409
|
-
var
|
|
3410
|
-
return ((
|
|
3411
|
-
}),
|
|
3412
|
-
var
|
|
3413
|
-
const
|
|
3414
|
-
let
|
|
3415
|
-
return d.config.app === "konnect" && (
|
|
3416
|
-
},
|
|
3417
|
-
var
|
|
3455
|
+
}), A;
|
|
3456
|
+
}), be = k(() => {
|
|
3457
|
+
var P;
|
|
3458
|
+
let C = !1;
|
|
3459
|
+
const A = ((P = ie.value) == null ? void 0 : P.map((z) => (z.key === w.value && (C = !0), { label: z.key, value: z.key }))) ?? [];
|
|
3460
|
+
return !C && w.value && A.push({ label: w.value, value: w.value }), A;
|
|
3461
|
+
}), q = k(() => {
|
|
3462
|
+
var C;
|
|
3463
|
+
return ((C = I == null ? void 0 : I.value) == null ? void 0 : C.name) === "konnect";
|
|
3464
|
+
}), T = k(() => !!I.value && !!w.value && !d.additionalDisabled), le = (C) => C.label ? `${C.label} - (${C.vault.name} - ${C.vault.id})` : C.value, X = (C) => {
|
|
3465
|
+
var z, te;
|
|
3466
|
+
const A = x.value ? fe.form.aiGateway.edit : fe.form[d.config.app].edit;
|
|
3467
|
+
let P = `${d.config.apiBaseUrl}${A}`;
|
|
3468
|
+
return d.config.app === "konnect" && (P = P.replace(/{controlPlaneId}/gi, ((z = d.config) == null ? void 0 : z.controlPlaneId) || "")), g(P).replace(/\/{workspace}/gi, (te = d.config) != null && te.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, C);
|
|
3469
|
+
}, ee = (C, A) => {
|
|
3470
|
+
var z, te;
|
|
3418
3471
|
if (d.config.app !== "konnect")
|
|
3419
3472
|
return "<not_applicable>";
|
|
3420
|
-
const
|
|
3421
|
-
return
|
|
3422
|
-
},
|
|
3423
|
-
p("proceed",
|
|
3424
|
-
vaultPrefix:
|
|
3473
|
+
const P = x.value ? ce.form.aiGateway.edit : ce.form[d.config.app].edit;
|
|
3474
|
+
return g(`${d.config.apiBaseUrl}${P}`).replace(/{controlPlaneId}/gi, ((z = d.config) == null ? void 0 : z.controlPlaneId) || "").replace(/\/{workspace}/gi, (te = d.config) != null && te.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, A).replace(/{secretId}/gi, C);
|
|
3475
|
+
}, we = () => {
|
|
3476
|
+
p("proceed", ja({
|
|
3477
|
+
vaultPrefix: G.value,
|
|
3425
3478
|
secretId: w.value || void 0,
|
|
3426
3479
|
// Either a non-empty string or undefined
|
|
3427
|
-
optionalSecretKey:
|
|
3480
|
+
optionalSecretKey: R.value || void 0
|
|
3428
3481
|
// Either a non-empty string or undefined
|
|
3429
3482
|
}));
|
|
3430
3483
|
};
|
|
3431
|
-
return
|
|
3432
|
-
if (
|
|
3433
|
-
if (K.value = !0,
|
|
3484
|
+
return Ue(() => d.setup, async (C) => {
|
|
3485
|
+
if (C !== !1) {
|
|
3486
|
+
if (K.value = !0, G.value = "", I.value = void 0, w.value = "", R.value = "", typeof C == "string" && C.trim().length > 0)
|
|
3434
3487
|
try {
|
|
3435
|
-
let
|
|
3436
|
-
const B =
|
|
3437
|
-
if (
|
|
3438
|
-
if (
|
|
3488
|
+
let A, P = "", z = "", te = "";
|
|
3489
|
+
const B = Wa(C), { data: W } = await i.get(X(B.vaultPrefix)), h = W && x.value ? He(W) : W;
|
|
3490
|
+
if (h != null && h.name)
|
|
3491
|
+
if (A = h, P = B.vaultPrefix, A.name === "konnect") {
|
|
3439
3492
|
if (B.secretId) {
|
|
3440
|
-
const { data:
|
|
3441
|
-
|
|
3493
|
+
const { data: E } = await i.get(ee(B.secretId, h.config.config_store_id));
|
|
3494
|
+
E.key === B.secretId && (z = B.secretId, te = B.optionalSecretKey ?? "");
|
|
3442
3495
|
}
|
|
3443
3496
|
} else
|
|
3444
|
-
|
|
3445
|
-
await
|
|
3446
|
-
|
|
3497
|
+
z = B.secretId ?? "", te = B.optionalSecretKey ?? "";
|
|
3498
|
+
await gt(() => {
|
|
3499
|
+
G.value = P, I.value = A, w.value = z, R.value = te;
|
|
3447
3500
|
});
|
|
3448
|
-
} catch (
|
|
3449
|
-
console.debug(
|
|
3501
|
+
} catch (A) {
|
|
3502
|
+
console.debug(A);
|
|
3450
3503
|
}
|
|
3451
|
-
K.value = !1, await
|
|
3504
|
+
K.value = !1, await pe();
|
|
3452
3505
|
}
|
|
3453
|
-
}, { immediate: !0 }),
|
|
3454
|
-
var
|
|
3455
|
-
K.value ||
|
|
3456
|
-
}),
|
|
3457
|
-
|
|
3458
|
-
}, { immediate: !0 }), (
|
|
3459
|
-
const
|
|
3460
|
-
return
|
|
3461
|
-
"action-button-disabled": !
|
|
3506
|
+
}, { immediate: !0 }), Ue(G, async (C, A) => {
|
|
3507
|
+
var P;
|
|
3508
|
+
K.value || C === A || (I.value = (P = L.value.find((z) => z.value === C)) == null ? void 0 : P.vault, w.value = "", R.value = "");
|
|
3509
|
+
}), Ue(U, async () => {
|
|
3510
|
+
q.value && await Y();
|
|
3511
|
+
}, { immediate: !0 }), (C, A) => {
|
|
3512
|
+
const P = Q("KEmptyState"), z = Q("KSelect"), te = Q("KInput"), B = Q("KModal");
|
|
3513
|
+
return v(), H(B, {
|
|
3514
|
+
"action-button-disabled": !T.value,
|
|
3462
3515
|
"action-button-text": l.proceedButtonText || e(s)("vault_secret_picker.actions.use_key"),
|
|
3463
3516
|
class: "vault-secret-picker",
|
|
3464
3517
|
"data-testid": "vault-secret-picker-modal",
|
|
3465
3518
|
title: l.title || e(s)("vault_secret_picker.title"),
|
|
3466
3519
|
visible: d.setup !== !1,
|
|
3467
|
-
onCancel:
|
|
3468
|
-
onProceed:
|
|
3520
|
+
onCancel: A[4] || (A[4] = () => p("cancel")),
|
|
3521
|
+
onProceed: we
|
|
3469
3522
|
}, {
|
|
3470
|
-
default:
|
|
3471
|
-
e(
|
|
3523
|
+
default: y(() => [
|
|
3524
|
+
e(ne) || e(V) ? (v(), H(P, {
|
|
3472
3525
|
key: 0,
|
|
3473
3526
|
"data-testid": "vault-secret-picker-fetch-error",
|
|
3474
3527
|
"icon-variant": "error",
|
|
3475
3528
|
message: f.value
|
|
3476
|
-
}, null, 8, ["message"])) : (
|
|
3477
|
-
|
|
3478
|
-
u(
|
|
3479
|
-
modelValue:
|
|
3480
|
-
"onUpdate:modelValue":
|
|
3529
|
+
}, null, 8, ["message"])) : (v(), N("div", qa, [
|
|
3530
|
+
yt(C.$slots, "form-prefix", {}, void 0, !0),
|
|
3531
|
+
u(z, {
|
|
3532
|
+
modelValue: G.value,
|
|
3533
|
+
"onUpdate:modelValue": A[0] || (A[0] = (W) => G.value = W),
|
|
3481
3534
|
clearable: "",
|
|
3482
3535
|
"data-testid": "vault-secret-picker-vault-select",
|
|
3483
3536
|
disabled: K.value,
|
|
3484
3537
|
"enable-filtering": "",
|
|
3485
3538
|
"filter-function": () => !0,
|
|
3486
|
-
items:
|
|
3539
|
+
items: L.value,
|
|
3487
3540
|
"kpop-attributes": { "data-testid": "vault-secret-picker-vault-popover" },
|
|
3488
3541
|
label: e(s)("vault_secret_picker.vault.label"),
|
|
3489
3542
|
loading: e(J),
|
|
@@ -3491,56 +3544,56 @@ const dt = {
|
|
|
3491
3544
|
required: "",
|
|
3492
3545
|
"reuse-item-template": "",
|
|
3493
3546
|
width: "100%",
|
|
3494
|
-
onQueryChange: e(
|
|
3547
|
+
onQueryChange: e(oe)
|
|
3495
3548
|
}, {
|
|
3496
|
-
loading:
|
|
3497
|
-
|
|
3549
|
+
loading: y(() => [
|
|
3550
|
+
M("div", null, O(e(s)("actions.loading")), 1)
|
|
3498
3551
|
]),
|
|
3499
|
-
empty:
|
|
3500
|
-
|
|
3552
|
+
empty: y(() => [
|
|
3553
|
+
M("div", za, O(e(s)("vault_secret_picker.no_results")), 1)
|
|
3501
3554
|
]),
|
|
3502
|
-
"selected-item-template":
|
|
3503
|
-
|
|
3555
|
+
"selected-item-template": y(({ item: W }) => [
|
|
3556
|
+
M("span", Da, O(le(W)), 1)
|
|
3504
3557
|
]),
|
|
3505
|
-
"item-template":
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3558
|
+
"item-template": y(({ item: W }) => [
|
|
3559
|
+
M("div", Za, [
|
|
3560
|
+
M("span", Ba, O(W.label), 1),
|
|
3561
|
+
M("span", La, O(W.vault.name), 1),
|
|
3562
|
+
M("span", Ja, O(W.vault.id), 1)
|
|
3510
3563
|
])
|
|
3511
3564
|
]),
|
|
3512
3565
|
_: 1
|
|
3513
3566
|
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"]),
|
|
3514
|
-
|
|
3567
|
+
q.value ? (v(), H(z, {
|
|
3515
3568
|
key: 0,
|
|
3516
3569
|
modelValue: w.value,
|
|
3517
|
-
"onUpdate:modelValue":
|
|
3570
|
+
"onUpdate:modelValue": A[1] || (A[1] = (W) => w.value = W),
|
|
3518
3571
|
clearable: "",
|
|
3519
3572
|
"data-testid": "vault-secret-picker-secret-id-select",
|
|
3520
3573
|
disabled: K.value || !I.value,
|
|
3521
3574
|
"enable-filtering": "",
|
|
3522
3575
|
"filter-function": () => !0,
|
|
3523
|
-
items:
|
|
3576
|
+
items: be.value,
|
|
3524
3577
|
"kpop-attributes": { "data-testid": "vault-secret-picker-secret-id-popover" },
|
|
3525
3578
|
label: e(s)("vault_secret_picker.secret_id.label"),
|
|
3526
|
-
loading: e(
|
|
3579
|
+
loading: e(se),
|
|
3527
3580
|
placeholder: e(s)("vault_secret_picker.secret_id.select_placeholder"),
|
|
3528
3581
|
required: "",
|
|
3529
3582
|
"reuse-item-template": "",
|
|
3530
3583
|
width: "100%",
|
|
3531
3584
|
onQueryChange: e(a)
|
|
3532
3585
|
}, {
|
|
3533
|
-
loading:
|
|
3534
|
-
|
|
3586
|
+
loading: y(() => [
|
|
3587
|
+
M("div", null, O(e(s)("actions.loading")), 1)
|
|
3535
3588
|
]),
|
|
3536
|
-
empty:
|
|
3537
|
-
|
|
3589
|
+
empty: y(() => [
|
|
3590
|
+
M("div", Qa, O(e(s)("vault_secret_picker.no_results")), 1)
|
|
3538
3591
|
]),
|
|
3539
3592
|
_: 1
|
|
3540
|
-
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (
|
|
3593
|
+
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (v(), H(te, {
|
|
3541
3594
|
key: 1,
|
|
3542
3595
|
modelValue: w.value,
|
|
3543
|
-
"onUpdate:modelValue":
|
|
3596
|
+
"onUpdate:modelValue": A[2] || (A[2] = (W) => w.value = W),
|
|
3544
3597
|
modelModifiers: { trim: !0 },
|
|
3545
3598
|
autocomplete: "off",
|
|
3546
3599
|
"data-testid": "vault-secret-picker-secret-id-input",
|
|
@@ -3550,10 +3603,10 @@ const dt = {
|
|
|
3550
3603
|
required: "",
|
|
3551
3604
|
type: "text"
|
|
3552
3605
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder"])),
|
|
3553
|
-
l.showSecretKey ? (
|
|
3606
|
+
l.showSecretKey ? (v(), H(te, {
|
|
3554
3607
|
key: 2,
|
|
3555
|
-
modelValue:
|
|
3556
|
-
"onUpdate:modelValue":
|
|
3608
|
+
modelValue: R.value,
|
|
3609
|
+
"onUpdate:modelValue": A[3] || (A[3] = (W) => R.value = W),
|
|
3557
3610
|
modelModifiers: { trim: !0 },
|
|
3558
3611
|
autocomplete: "off",
|
|
3559
3612
|
"data-testid": "vault-secret-picker-secret-key-input",
|
|
@@ -3562,24 +3615,24 @@ const dt = {
|
|
|
3562
3615
|
label: e(s)("vault_secret_picker.optional_secret_key.label"),
|
|
3563
3616
|
placeholder: e(s)("vault_secret_picker.optional_secret_key.placeholder"),
|
|
3564
3617
|
type: "text"
|
|
3565
|
-
}, null, 8, ["modelValue", "disabled", "help", "label", "placeholder"])) :
|
|
3618
|
+
}, null, 8, ["modelValue", "disabled", "help", "label", "placeholder"])) : j("", !0)
|
|
3566
3619
|
]))
|
|
3567
3620
|
]),
|
|
3568
3621
|
_: 3
|
|
3569
3622
|
}, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
|
|
3570
3623
|
};
|
|
3571
3624
|
}
|
|
3572
|
-
}),
|
|
3625
|
+
}), ul = /* @__PURE__ */ he(Ya, [["__scopeId", "data-v-2ab21bd2"]]);
|
|
3573
3626
|
export {
|
|
3574
|
-
|
|
3575
|
-
|
|
3627
|
+
sl as SecretForm,
|
|
3628
|
+
nl as SecretList,
|
|
3576
3629
|
_ as VaultAuthMethods,
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3630
|
+
rl as VaultConfigCard,
|
|
3631
|
+
il as VaultForm,
|
|
3632
|
+
ol as VaultList,
|
|
3580
3633
|
t as VaultProviders,
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3634
|
+
ul as VaultSecretPicker,
|
|
3635
|
+
dl as VaultSecretPickerProvider,
|
|
3636
|
+
ce as secretsEndpoints,
|
|
3637
|
+
fe as vaultsEndpoints
|
|
3585
3638
|
};
|