@kong-ui-public/entities-vaults 3.26.2 → 3.26.3
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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as $, computed as w, watch as ke, onBeforeMount as we, resolveComponent as
|
|
1
|
+
import { defineComponent as ue, ref as $, computed as w, watch as ke, onBeforeMount as we, resolveComponent as L, createElementBlock as B, openBlock as V, createVNode as f, unref as e, createSlots as Pe, withCtx as m, createTextVNode as de, toDisplayString as T, createElementVNode as x, createBlock as D, Teleport as Ye, createCommentVNode as W, reactive as he, resolveDynamicComponent as He, TransitionGroup as Xe, Fragment as qe, renderList as et, mergeProps as je, normalizeClass as tt, nextTick as lt, renderSlot as ot } from "vue";
|
|
2
2
|
import { useRouter as Ae } from "vue-router";
|
|
3
3
|
import { BookIcon as Me, AddIcon as Re, SecurityIcon as at, ConjourIcon as rt, AzureIcon as it, HashicorpIcon as nt, GoogleCloudIcon as st, AwsIcon as ct, CodeIcon as dt, KongIcon as ut } from "@kong/icons";
|
|
4
|
-
import { useAxios as _e, useTableState as ft, useFetcher as De, useDeleteUrlBuilder as We, FetcherStatus as Be, EntityBaseTable as Le, PermissionsWrapper as ge, TableTags as pt, EntityFilter as ze, EntityDeleteModal as Ge, EntityTypes as Je, useErrors as Ze, EntityBaseFormType as Ve, useGatewayFeatureSupported as mt, EntityBaseForm as Qe, SupportedEntityType as Ue, EntityFormSection as Ee, useStringHelpers as vt, useHelpers as gt, ConfigurationSchemaType as Se, ConfigurationSchemaSection as
|
|
4
|
+
import { useAxios as _e, useTableState as ft, useFetcher as De, useDeleteUrlBuilder as We, FetcherStatus as Be, EntityBaseTable as Le, PermissionsWrapper as ge, TableTags as pt, EntityFilter as ze, EntityDeleteModal as Ge, EntityTypes as Je, useErrors as Ze, EntityBaseFormType as Ve, useGatewayFeatureSupported as mt, EntityBaseForm as Qe, SupportedEntityType as Ue, EntityFormSection as Ee, useStringHelpers as vt, useHelpers as gt, ConfigurationSchemaType as Se, ConfigurationSchemaSection as Ne, EntityBaseConfigCard as bt, ConfigCardItem as _t, useDebouncedFilter as Fe } from "@kong-ui-public/entities-shared";
|
|
5
5
|
import { createI18n as yt, i18nTComponent as ht } from "@kong-ui-public/i18n";
|
|
6
6
|
const Vt = {
|
|
7
7
|
create: "New vault",
|
|
@@ -446,7 +446,7 @@ const ye = {
|
|
|
446
446
|
edit: `${xe}/vaults/{id}`
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
}, Tt = { class: "kong-ui-entities-vaults-list" }, $t = { class: "button-row" },
|
|
449
|
+
}, Tt = { class: "kong-ui-entities-vaults-list" }, $t = { class: "button-row" }, Kt = { class: "table-content-overflow-wrapper" }, Pt = { class: "table-content-overflow-wrapper" }, Ht = /* @__PURE__ */ ue({
|
|
450
450
|
__name: "VaultList",
|
|
451
451
|
props: {
|
|
452
452
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -493,14 +493,14 @@ const ye = {
|
|
|
493
493
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
|
|
494
494
|
setup(l, { emit: S }) {
|
|
495
495
|
var fe;
|
|
496
|
-
const d = S, c = l, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance:
|
|
496
|
+
const d = S, c = l, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance: K } = _e((fe = c.config) == null ? void 0 : fe.axiosRequestConfig), { hasRecords: I, handleStateChange: _ } = ft(() => Q.value), s = w(() => I.value && c.config.app === "konnect"), g = w(() => c.config.app !== "kongManager" || !!c.config.disableSorting), u = {
|
|
497
497
|
// the Prefix column is non-hidable
|
|
498
498
|
prefix: { label: p("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0, hidable: !1 },
|
|
499
499
|
// it's "Vault Type" on display, but we still use "name" to fit API schema
|
|
500
500
|
name: { label: p("vaults.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
501
501
|
description: { label: p("vaults.list.table_headers.description"), sortable: !1 },
|
|
502
502
|
tags: { label: p("vaults.list.table_headers.tags"), sortable: !1 }
|
|
503
|
-
},
|
|
503
|
+
}, N = u, X = w(() => {
|
|
504
504
|
var E, A;
|
|
505
505
|
let k = `${c.config.apiBaseUrl}${pe.list[c.config.app].getAll}`;
|
|
506
506
|
return c.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((E = c.config) == null ? void 0 : E.controlPlaneId) || "") : c.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (A = c.config) != null && A.workspace ? `/${c.config.workspace}` : "")), k;
|
|
@@ -510,14 +510,14 @@ const ye = {
|
|
|
510
510
|
isExactMatch: !0,
|
|
511
511
|
placeholder: p("search.placeholder_for_vaults.konnect")
|
|
512
512
|
};
|
|
513
|
-
const { prefix: E, name: A } =
|
|
513
|
+
const { prefix: E, name: A } = u;
|
|
514
514
|
return {
|
|
515
515
|
isExactMatch: !1,
|
|
516
516
|
fields: { name: A, prefix: E },
|
|
517
517
|
schema: c.config.filterSchema
|
|
518
518
|
};
|
|
519
519
|
}), {
|
|
520
|
-
fetcher:
|
|
520
|
+
fetcher: O,
|
|
521
521
|
fetcherState: o,
|
|
522
522
|
fetcherCacheKey: ae
|
|
523
523
|
} = De(w(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), X), G = () => {
|
|
@@ -561,24 +561,24 @@ const ye = {
|
|
|
561
561
|
}), le = (k) => ({
|
|
562
562
|
label: p("actions.edit"),
|
|
563
563
|
to: c.config.getEditRoute(k)
|
|
564
|
-
}),
|
|
565
|
-
|
|
566
|
-
},
|
|
564
|
+
}), q = $(void 0), ie = $(!1), U = $(!1), Z = $(""), te = We(c.config, X.value), b = (k) => {
|
|
565
|
+
q.value = k, ie.value = !0;
|
|
566
|
+
}, v = () => {
|
|
567
567
|
ie.value = !1;
|
|
568
|
-
},
|
|
569
|
-
const { apiBaseUrl: E, app: A, controlPlaneId:
|
|
568
|
+
}, P = async (k) => {
|
|
569
|
+
const { apiBaseUrl: E, app: A, controlPlaneId: n } = c.config, r = `${E}${pe.list[A].deleteConfigStore}`.replace(/{controlPlaneId}/gi, n || "").replace(/{id}/gi, k);
|
|
570
570
|
try {
|
|
571
|
-
await
|
|
571
|
+
await K.delete(r);
|
|
572
572
|
} catch {
|
|
573
573
|
}
|
|
574
574
|
}, H = async () => {
|
|
575
|
-
var k, E, A,
|
|
576
|
-
if ((k =
|
|
575
|
+
var k, E, A, n;
|
|
576
|
+
if ((k = q.value) != null && k.id) {
|
|
577
577
|
U.value = !0;
|
|
578
578
|
try {
|
|
579
|
-
await
|
|
579
|
+
await K.delete(te(q.value.id)), c.config.app === "konnect" && ((E = q.value.config) != null && E.config_store_id) && P(q.value.config.config_store_id), U.value = !1, ie.value = !1, ae.value++, d("delete:success", q.value);
|
|
580
580
|
} catch (r) {
|
|
581
|
-
Z.value = ((
|
|
581
|
+
Z.value = ((n = (A = r.response) == null ? void 0 : A.data) == null ? void 0 : n.message) || r.message || p("errors.delete"), d("error", r);
|
|
582
582
|
} finally {
|
|
583
583
|
U.value = !1;
|
|
584
584
|
}
|
|
@@ -587,57 +587,57 @@ const ye = {
|
|
|
587
587
|
a.push(c.config.createRoute);
|
|
588
588
|
};
|
|
589
589
|
ke(o, (k) => {
|
|
590
|
-
var E, A,
|
|
590
|
+
var E, A, n;
|
|
591
591
|
if (k.status === Be.Error) {
|
|
592
592
|
J.value = {
|
|
593
593
|
title: p("errors.general")
|
|
594
|
-
}, (
|
|
594
|
+
}, (n = (A = (E = k.error) == null ? void 0 : E.response) == null ? void 0 : A.data) != null && n.message && (J.value.message = k.error.response.data.message), d("error", k.error);
|
|
595
595
|
return;
|
|
596
596
|
}
|
|
597
597
|
J.value = null;
|
|
598
598
|
});
|
|
599
|
-
const
|
|
599
|
+
const j = $({
|
|
600
600
|
ctaPath: c.config.createRoute,
|
|
601
601
|
ctaText: void 0,
|
|
602
602
|
message: `${p("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
603
603
|
title: p("vaults.title")
|
|
604
604
|
}), R = $(!1);
|
|
605
605
|
return we(async () => {
|
|
606
|
-
R.value = await c.canCreate(), R.value && (
|
|
606
|
+
R.value = await c.canCreate(), R.value && (j.value.title = p("vaults.list.empty_state.title"), j.value.ctaText = p("actions.create"));
|
|
607
607
|
}), (k, E) => {
|
|
608
|
-
const A =
|
|
609
|
-
return V(),
|
|
610
|
-
|
|
608
|
+
const A = L("KButton"), n = L("KEmptyState"), r = L("KDropdownItem"), z = L("KClipboardProvider");
|
|
609
|
+
return V(), B("div", Tt, [
|
|
610
|
+
f(e(Le), {
|
|
611
611
|
"cache-identifier": l.cacheIdentifier,
|
|
612
|
-
"disable-sorting":
|
|
613
|
-
"empty-state-options":
|
|
612
|
+
"disable-sorting": g.value,
|
|
613
|
+
"empty-state-options": j.value,
|
|
614
614
|
"enable-entity-actions": "",
|
|
615
615
|
"error-message": J.value,
|
|
616
|
-
fetcher: e(
|
|
616
|
+
fetcher: e(O),
|
|
617
617
|
"fetcher-cache-key": e(ae),
|
|
618
618
|
"pagination-type": "offset",
|
|
619
619
|
"preferences-storage-key": "kong-ui-entities-vaults-list",
|
|
620
620
|
query: Q.value,
|
|
621
|
-
"table-headers": e(
|
|
621
|
+
"table-headers": e(N),
|
|
622
622
|
onClearSearchInput: G,
|
|
623
623
|
"onClick:row": E[3] || (E[3] = (C) => re(C)),
|
|
624
624
|
onSort: ee,
|
|
625
|
-
onState: e(
|
|
626
|
-
},
|
|
627
|
-
"toolbar-filter":
|
|
628
|
-
|
|
625
|
+
onState: e(_)
|
|
626
|
+
}, Pe({
|
|
627
|
+
"toolbar-filter": m(() => [
|
|
628
|
+
f(e(ze), {
|
|
629
629
|
modelValue: Q.value,
|
|
630
630
|
"onUpdate:modelValue": E[0] || (E[0] = (C) => Q.value = C),
|
|
631
631
|
config: Y.value
|
|
632
632
|
}, null, 8, ["modelValue", "config"])
|
|
633
633
|
]),
|
|
634
|
-
"toolbar-button":
|
|
635
|
-
(V(),
|
|
634
|
+
"toolbar-button": m(() => [
|
|
635
|
+
(V(), D(Ye, {
|
|
636
636
|
disabled: !l.useActionOutside,
|
|
637
637
|
to: "#kong-ui-app-page-header-action-button"
|
|
638
638
|
}, [
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
x("div", $t, [
|
|
640
|
+
s.value ? (V(), D(A, {
|
|
641
641
|
key: 0,
|
|
642
642
|
appearance: "secondary",
|
|
643
643
|
class: "open-learning-hub",
|
|
@@ -645,23 +645,23 @@ const ye = {
|
|
|
645
645
|
icon: "",
|
|
646
646
|
onClick: E[1] || (E[1] = (C) => k.$emit("click:learn-more"))
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
649
|
-
|
|
648
|
+
default: m(() => [
|
|
649
|
+
f(e(Me), { decorative: "" })
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
|
-
})) :
|
|
653
|
-
|
|
652
|
+
})) : W("", !0),
|
|
653
|
+
f(e(ge), {
|
|
654
654
|
"auth-function": () => l.canCreate()
|
|
655
655
|
}, {
|
|
656
|
-
default:
|
|
657
|
-
|
|
656
|
+
default: m(() => [
|
|
657
|
+
f(A, {
|
|
658
658
|
appearance: "primary",
|
|
659
659
|
"data-testid": "toolbar-add-vault",
|
|
660
660
|
size: l.useActionOutside ? "medium" : "large",
|
|
661
661
|
to: l.config.createRoute
|
|
662
662
|
}, {
|
|
663
|
-
default:
|
|
664
|
-
|
|
663
|
+
default: m(() => [
|
|
664
|
+
f(e(Re)),
|
|
665
665
|
de(" " + T(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
|
|
666
666
|
]),
|
|
667
667
|
_: 1
|
|
@@ -672,28 +672,28 @@ const ye = {
|
|
|
672
672
|
])
|
|
673
673
|
], 8, ["disabled"]))
|
|
674
674
|
]),
|
|
675
|
-
prefix:
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
prefix: m(({ rowValue: C }) => [
|
|
676
|
+
x("div", Kt, [
|
|
677
|
+
x("b", null, T(C ?? "-"), 1)
|
|
678
678
|
])
|
|
679
679
|
]),
|
|
680
|
-
name:
|
|
681
|
-
|
|
680
|
+
name: m(({ rowValue: C }) => [
|
|
681
|
+
x("b", null, T(C ?? "-"), 1)
|
|
682
682
|
]),
|
|
683
|
-
description:
|
|
684
|
-
|
|
683
|
+
description: m(({ rowValue: C }) => [
|
|
684
|
+
x("div", Pt, T(C ?? "-"), 1)
|
|
685
685
|
]),
|
|
686
|
-
tags:
|
|
687
|
-
|
|
686
|
+
tags: m(({ rowValue: C }) => [
|
|
687
|
+
f(e(pt), { tags: C }, null, 8, ["tags"])
|
|
688
688
|
]),
|
|
689
|
-
actions:
|
|
690
|
-
|
|
691
|
-
default:
|
|
692
|
-
|
|
689
|
+
actions: m(({ row: C }) => [
|
|
690
|
+
f(z, null, {
|
|
691
|
+
default: m(({ copyToClipboard: h }) => [
|
|
692
|
+
f(r, {
|
|
693
693
|
"data-testid": "action-entity-copy-id",
|
|
694
694
|
onClick: (oe) => y(C, h)
|
|
695
695
|
}, {
|
|
696
|
-
default:
|
|
696
|
+
default: m(() => [
|
|
697
697
|
de(T(e(p)("actions.copy_id")), 1)
|
|
698
698
|
]),
|
|
699
699
|
_: 2
|
|
@@ -701,13 +701,13 @@ const ye = {
|
|
|
701
701
|
]),
|
|
702
702
|
_: 2
|
|
703
703
|
}, 1024),
|
|
704
|
-
|
|
705
|
-
default:
|
|
706
|
-
|
|
704
|
+
f(z, null, {
|
|
705
|
+
default: m(({ copyToClipboard: h }) => [
|
|
706
|
+
f(r, {
|
|
707
707
|
"data-testid": "action-entity-copy-json",
|
|
708
708
|
onClick: (oe) => F(C, h)
|
|
709
709
|
}, {
|
|
710
|
-
default:
|
|
710
|
+
default: m(() => [
|
|
711
711
|
de(T(e(p)("actions.copy_json")), 1)
|
|
712
712
|
]),
|
|
713
713
|
_: 2
|
|
@@ -715,11 +715,11 @@ const ye = {
|
|
|
715
715
|
]),
|
|
716
716
|
_: 2
|
|
717
717
|
}, 1024),
|
|
718
|
-
|
|
718
|
+
f(e(ge), {
|
|
719
719
|
"auth-function": () => l.canRetrieve(C)
|
|
720
720
|
}, {
|
|
721
|
-
default:
|
|
722
|
-
|
|
721
|
+
default: m(() => [
|
|
722
|
+
f(r, {
|
|
723
723
|
"data-testid": "action-entity-view",
|
|
724
724
|
"has-divider": "",
|
|
725
725
|
item: ne(C.id)
|
|
@@ -727,28 +727,28 @@ const ye = {
|
|
|
727
727
|
]),
|
|
728
728
|
_: 2
|
|
729
729
|
}, 1032, ["auth-function"]),
|
|
730
|
-
|
|
730
|
+
f(e(ge), {
|
|
731
731
|
"auth-function": () => l.canEdit(C)
|
|
732
732
|
}, {
|
|
733
|
-
default:
|
|
734
|
-
|
|
733
|
+
default: m(() => [
|
|
734
|
+
f(r, {
|
|
735
735
|
"data-testid": "action-entity-edit",
|
|
736
736
|
item: le(C.id)
|
|
737
737
|
}, null, 8, ["item"])
|
|
738
738
|
]),
|
|
739
739
|
_: 2
|
|
740
740
|
}, 1032, ["auth-function"]),
|
|
741
|
-
|
|
741
|
+
f(e(ge), {
|
|
742
742
|
"auth-function": () => l.canDelete(C)
|
|
743
743
|
}, {
|
|
744
|
-
default:
|
|
745
|
-
|
|
744
|
+
default: m(() => [
|
|
745
|
+
f(r, {
|
|
746
746
|
danger: "",
|
|
747
747
|
"data-testid": "action-entity-delete",
|
|
748
748
|
"has-divider": "",
|
|
749
|
-
onClick: (h) =>
|
|
749
|
+
onClick: (h) => b(C)
|
|
750
750
|
}, {
|
|
751
|
-
default:
|
|
751
|
+
default: m(() => [
|
|
752
752
|
de(T(e(p)("actions.delete")), 1)
|
|
753
753
|
]),
|
|
754
754
|
_: 2
|
|
@@ -761,37 +761,37 @@ const ye = {
|
|
|
761
761
|
}, [
|
|
762
762
|
!Q.value && l.config.app === "konnect" ? {
|
|
763
763
|
name: "empty-state",
|
|
764
|
-
fn:
|
|
764
|
+
fn: m(() => {
|
|
765
765
|
var C;
|
|
766
766
|
return [
|
|
767
|
-
|
|
767
|
+
f(n, {
|
|
768
768
|
"data-testid": "vaults-entity-empty-state",
|
|
769
769
|
"icon-background": "",
|
|
770
770
|
message: e(p)("vaults.list.empty_state_v2.description"),
|
|
771
771
|
title: e(p)("vaults.list.empty_state_v2.title")
|
|
772
|
-
},
|
|
773
|
-
icon:
|
|
774
|
-
|
|
772
|
+
}, Pe({
|
|
773
|
+
icon: m(() => [
|
|
774
|
+
f(e(at), { decorative: "" })
|
|
775
775
|
]),
|
|
776
|
-
action:
|
|
777
|
-
R.value ? (V(),
|
|
776
|
+
action: m(() => [
|
|
777
|
+
R.value ? (V(), D(A, {
|
|
778
778
|
key: 0,
|
|
779
779
|
"data-testid": "entity-create-button",
|
|
780
780
|
onClick: se
|
|
781
781
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
|
|
782
|
+
default: m(() => [
|
|
783
|
+
f(e(Re), { decorative: "" }),
|
|
784
784
|
de(" " + T(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
|
|
785
785
|
]),
|
|
786
786
|
_: 1
|
|
787
|
-
})) :
|
|
788
|
-
|
|
787
|
+
})) : W("", !0),
|
|
788
|
+
f(A, {
|
|
789
789
|
appearance: "secondary",
|
|
790
790
|
"data-testid": "entity-learn-more-button",
|
|
791
791
|
onClick: E[2] || (E[2] = (h) => k.$emit("click:learn-more"))
|
|
792
792
|
}, {
|
|
793
|
-
default:
|
|
794
|
-
|
|
793
|
+
default: m(() => [
|
|
794
|
+
f(e(Me), { decorative: "" }),
|
|
795
795
|
de(" " + T(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
|
|
796
796
|
]),
|
|
797
797
|
_: 1
|
|
@@ -801,7 +801,7 @@ const ye = {
|
|
|
801
801
|
}, [
|
|
802
802
|
(C = l.config) != null && C.isControlPlaneGroup ? {
|
|
803
803
|
name: "default",
|
|
804
|
-
fn:
|
|
804
|
+
fn: m(() => [
|
|
805
805
|
de(T(e(p)("vaults.list.empty_state_v2.group")), 1)
|
|
806
806
|
]),
|
|
807
807
|
key: "0"
|
|
@@ -812,15 +812,15 @@ const ye = {
|
|
|
812
812
|
key: "0"
|
|
813
813
|
} : void 0
|
|
814
814
|
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
815
|
-
|
|
815
|
+
f(e(Ge), {
|
|
816
816
|
"action-pending": U.value,
|
|
817
817
|
description: e(p)("delete.description"),
|
|
818
|
-
"entity-name":
|
|
818
|
+
"entity-name": q.value && (q.value.prefix || q.value.id),
|
|
819
819
|
"entity-type": e(Je).Vault,
|
|
820
820
|
error: Z.value,
|
|
821
821
|
title: e(p)("delete.title"),
|
|
822
822
|
visible: ie.value,
|
|
823
|
-
onCancel:
|
|
823
|
+
onCancel: v,
|
|
824
824
|
onProceed: H
|
|
825
825
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
826
826
|
]);
|
|
@@ -833,7 +833,7 @@ const ye = {
|
|
|
833
833
|
return d;
|
|
834
834
|
}, El = /* @__PURE__ */ me(Ht, [["__scopeId", "data-v-0f7e9fff"]]);
|
|
835
835
|
var t = /* @__PURE__ */ ((l) => (l.AWS = "aws", l.GCP = "gcp", l.HCV = "hcv", l.ENV = "env", l.AZURE = "azure", l.KONNECT = "konnect", l.CONJUR = "conjur", l))(t || {}), M = /* @__PURE__ */ ((l) => (l.TOKEN = "token", l.K8S = "kubernetes", l.APP_ROLE = "approle", l.CERT = "cert", l))(M || {});
|
|
836
|
-
const Mt = { class: "kong-ui-entities-vault-form" },
|
|
836
|
+
const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-provider-cards-container" }, Ft = ["data-testid"], Ot = { class: "provider-item-title-container" }, qt = { class: "provider-item-title" }, jt = { class: "provider-item-description" }, Dt = {
|
|
837
837
|
key: "kong-vault-config-fields",
|
|
838
838
|
class: "vault-form-config-fields-container"
|
|
839
839
|
}, Wt = {
|
|
@@ -867,7 +867,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
867
867
|
emits: ["update", "error", "loading"],
|
|
868
868
|
setup(l, { emit: S }) {
|
|
869
869
|
var A;
|
|
870
|
-
const d = l, c = S, { i18nT: p, i18n: { t: a } } = ye.useI18n(),
|
|
870
|
+
const d = l, c = S, { i18nT: p, i18n: { t: a } } = ye.useI18n(), K = Ae(), { axiosInstance: I } = _e((A = d.config) == null ? void 0 : A.axiosRequestConfig), { getMessageFromError: _ } = Ze(), s = he({
|
|
871
871
|
fields: {
|
|
872
872
|
prefix: "",
|
|
873
873
|
description: "",
|
|
@@ -875,11 +875,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
875
875
|
},
|
|
876
876
|
isReadonly: !1,
|
|
877
877
|
errorMessage: ""
|
|
878
|
-
}),
|
|
878
|
+
}), g = he({
|
|
879
879
|
prefix: "",
|
|
880
880
|
description: "",
|
|
881
881
|
tags: ""
|
|
882
|
-
}),
|
|
882
|
+
}), u = $(d.config.konnectConfigStoreAvailable ? t.KONNECT : t.ENV), N = $(null), X = $(), Q = w(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(u.value)), Y = w(() => [
|
|
883
883
|
...d.config.konnectConfigStoreAvailable ? [{
|
|
884
884
|
label: a("form.config.konnect.label"),
|
|
885
885
|
value: t.KONNECT
|
|
@@ -913,22 +913,22 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
913
913
|
value: t.CONJUR,
|
|
914
914
|
disabled: !le.value
|
|
915
915
|
}] : []
|
|
916
|
-
]),
|
|
916
|
+
]), O = d.config.base64FieldAvailable ? { base64_decode: !1 } : {}, o = he({
|
|
917
917
|
[t.KONNECT]: {},
|
|
918
918
|
[t.ENV]: {
|
|
919
919
|
prefix: "",
|
|
920
|
-
...
|
|
920
|
+
...O
|
|
921
921
|
},
|
|
922
922
|
[t.AWS]: {
|
|
923
923
|
region: "",
|
|
924
924
|
endpoint_url: "",
|
|
925
925
|
assume_role_arn: "",
|
|
926
926
|
role_session_name: "KongVault",
|
|
927
|
-
...
|
|
927
|
+
...O
|
|
928
928
|
},
|
|
929
929
|
[t.GCP]: {
|
|
930
930
|
project_id: "",
|
|
931
|
-
...
|
|
931
|
+
...O
|
|
932
932
|
},
|
|
933
933
|
[t.HCV]: {
|
|
934
934
|
protocol: "http",
|
|
@@ -950,7 +950,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
950
950
|
cert_auth_cert: "",
|
|
951
951
|
cert_auth_cert_key: "",
|
|
952
952
|
cert_auth_role_name: "",
|
|
953
|
-
...
|
|
953
|
+
...O
|
|
954
954
|
},
|
|
955
955
|
[t.AZURE]: {
|
|
956
956
|
location: "",
|
|
@@ -959,29 +959,29 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
959
959
|
credentials_prefix: "AZURE",
|
|
960
960
|
client_id: "",
|
|
961
961
|
tenant_id: "",
|
|
962
|
-
...
|
|
962
|
+
...O
|
|
963
963
|
},
|
|
964
964
|
[t.CONJUR]: {
|
|
965
965
|
endpoint_url: "",
|
|
966
966
|
auth_method: "api_key",
|
|
967
|
-
...
|
|
967
|
+
...O
|
|
968
968
|
}
|
|
969
969
|
}), ae = he({
|
|
970
970
|
[t.KONNECT]: {},
|
|
971
971
|
[t.ENV]: {
|
|
972
972
|
prefix: "",
|
|
973
|
-
...
|
|
973
|
+
...O
|
|
974
974
|
},
|
|
975
975
|
[t.AWS]: {
|
|
976
976
|
region: "",
|
|
977
977
|
endpoint_url: "",
|
|
978
978
|
assume_role_arn: "",
|
|
979
979
|
role_session_name: "KongVault",
|
|
980
|
-
...
|
|
980
|
+
...O
|
|
981
981
|
},
|
|
982
982
|
[t.GCP]: {
|
|
983
983
|
project_id: "",
|
|
984
|
-
...
|
|
984
|
+
...O
|
|
985
985
|
},
|
|
986
986
|
[t.HCV]: {
|
|
987
987
|
protocol: "http",
|
|
@@ -1000,7 +1000,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1000
1000
|
approle_secret_id: "",
|
|
1001
1001
|
approle_secret_id_file: "",
|
|
1002
1002
|
approle_response_wrapping: !1,
|
|
1003
|
-
...
|
|
1003
|
+
...O
|
|
1004
1004
|
},
|
|
1005
1005
|
[t.AZURE]: {
|
|
1006
1006
|
location: "",
|
|
@@ -1009,12 +1009,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1009
1009
|
credentials_prefix: "AZURE",
|
|
1010
1010
|
client_id: "",
|
|
1011
1011
|
tenant_id: "",
|
|
1012
|
-
...
|
|
1012
|
+
...O
|
|
1013
1013
|
},
|
|
1014
1014
|
[t.CONJUR]: {
|
|
1015
1015
|
endpoint_url: "",
|
|
1016
1016
|
auth_method: "api_key",
|
|
1017
|
-
...
|
|
1017
|
+
...O
|
|
1018
1018
|
}
|
|
1019
1019
|
}), G = [
|
|
1020
1020
|
{ label: `${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`, value: "us-east-1" },
|
|
@@ -1042,23 +1042,23 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1042
1042
|
{ label: `${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
|
|
1043
1043
|
{ label: `${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
|
|
1044
1044
|
], ee = [{ label: "secrets", value: "secrets" }], J = [{ label: "http", value: "http" }, { label: "https", value: "https" }], y = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], F = w(() => d.vaultId ? Ve.Edit : Ve.Create), re = w(() => {
|
|
1045
|
-
var
|
|
1046
|
-
return (r = pe.form[(
|
|
1045
|
+
var n, r;
|
|
1046
|
+
return (r = pe.form[(n = d.config) == null ? void 0 : n.app]) == null ? void 0 : r.edit;
|
|
1047
1047
|
}), ne = w(() => F.value === Ve.Edit && d.config.app === "kongManager"), le = w(() => d.config.app === "konnect" || mt({
|
|
1048
1048
|
gatewayInfo: d.config.gatewayInfo,
|
|
1049
1049
|
// vault name can only be `env` in Gateway Community Edition
|
|
1050
1050
|
supportedRange: {
|
|
1051
1051
|
enterprise: []
|
|
1052
1052
|
}
|
|
1053
|
-
})),
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1056
|
-
}, ie = (
|
|
1057
|
-
c("loading",
|
|
1058
|
-
}, U = (
|
|
1059
|
-
c("error",
|
|
1060
|
-
}, Z = (
|
|
1061
|
-
switch (
|
|
1053
|
+
})), q = () => {
|
|
1054
|
+
var n;
|
|
1055
|
+
K.push(((n = d.config) == null ? void 0 : n.cancelRoute) || { name: "vault-list" });
|
|
1056
|
+
}, ie = (n) => {
|
|
1057
|
+
c("loading", n);
|
|
1058
|
+
}, U = (n) => {
|
|
1059
|
+
c("error", n);
|
|
1060
|
+
}, Z = (n) => {
|
|
1061
|
+
switch (n) {
|
|
1062
1062
|
case t.KONNECT:
|
|
1063
1063
|
return ut;
|
|
1064
1064
|
case t.ENV:
|
|
@@ -1074,8 +1074,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1074
1074
|
case t.CONJUR:
|
|
1075
1075
|
return rt;
|
|
1076
1076
|
}
|
|
1077
|
-
}, te = (
|
|
1078
|
-
switch (
|
|
1077
|
+
}, te = (n) => {
|
|
1078
|
+
switch (n) {
|
|
1079
1079
|
case t.KONNECT:
|
|
1080
1080
|
return a("form.config.konnect.description");
|
|
1081
1081
|
case t.ENV:
|
|
@@ -1091,14 +1091,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1091
1091
|
case t.CONJUR:
|
|
1092
1092
|
return a("form.config.conjur.description");
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, b = (n) => {
|
|
1095
1095
|
var C, h, oe, ce, ve, i;
|
|
1096
|
-
|
|
1097
|
-
const r = ((oe =
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1100
|
-
|
|
1101
|
-
},
|
|
1096
|
+
s.fields.prefix = ((C = n == null ? void 0 : n.item) == null ? void 0 : C.prefix) || (n == null ? void 0 : n.prefix) || "", s.fields.description = ((h = n == null ? void 0 : n.item) == null ? void 0 : h.description) || (n == null ? void 0 : n.description) || "";
|
|
1097
|
+
const r = ((oe = n == null ? void 0 : n.item) == null ? void 0 : oe.tags) || (n == null ? void 0 : n.tags) || [];
|
|
1098
|
+
s.fields.tags = (r == null ? void 0 : r.join(", ")) || "", Object.assign(g, s.fields);
|
|
1099
|
+
const z = ((ce = n == null ? void 0 : n.item) == null ? void 0 : ce.config) || (n == null ? void 0 : n.config) || null;
|
|
1100
|
+
z && (Object.keys(z).length || (n == null ? void 0 : n.name) === t.KONNECT) ? (u.value = ((ve = n == null ? void 0 : n.item) == null ? void 0 : ve.name) || (n == null ? void 0 : n.name) || "", N.value = u.value, X.value = ((i = n == null ? void 0 : n.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(o[u.value], z), Object.assign(ae[u.value], z)) : s.errorMessage = "Error loading vault config";
|
|
1101
|
+
}, v = (n) => n === "" || n == null, P = w(() => u.value === t.HCV ? !Object.keys(o[t.HCV]).filter((n) => [
|
|
1102
1102
|
"namespace",
|
|
1103
1103
|
"ttl",
|
|
1104
1104
|
"neg_ttl",
|
|
@@ -1107,13 +1107,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1107
1107
|
"approle_auth_path",
|
|
1108
1108
|
"approle_secret_id",
|
|
1109
1109
|
"approle_secret_id_file"
|
|
1110
|
-
].includes(
|
|
1111
|
-
var r,
|
|
1112
|
-
let
|
|
1113
|
-
return d.config.app === "konnect" ?
|
|
1110
|
+
].includes(n) || o[t.HCV].auth_method !== M.K8S && (n === "kube_role" || n === "kube_api_token_file") || o[t.HCV].auth_method !== M.TOKEN && n === "token" || o[t.HCV].auth_method !== M.APP_ROLE && (n === "approle_role_id" || n === "approle_response_wrapping") || o[t.HCV].auth_method === M.APP_ROLE && n === "approle_response_wrapping" && typeof o[u.value][n] == "boolean" || o[t.HCV].auth_method !== M.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(n) ? !1 : v(o[u.value][n])).length : u.value === t.AZURE ? !Object.keys(o[t.AZURE]).filter((n) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : v(o[u.value][n])).length : u.value === t.AWS ? !Object.keys(o[t.AWS]).filter((n) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(n) ? !1 : v(o[u.value][n])).length : !Object.keys(o[u.value]).filter((n) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : v(o[u.value][n])).length), H = w(() => !!s.fields.prefix && P.value), se = w(() => JSON.stringify(s.fields) !== JSON.stringify(g) || u.value !== N.value || JSON.stringify(o[u.value]) !== JSON.stringify(ae[u.value])), j = w(() => {
|
|
1111
|
+
var r, z;
|
|
1112
|
+
let n = `${d.config.apiBaseUrl}${pe.form[d.config.app][F.value]}`;
|
|
1113
|
+
return d.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((r = d.config) == null ? void 0 : r.controlPlaneId) || "") : d.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (z = d.config) != null && z.workspace ? `/${d.config.workspace}` : "")), n = n.replace(/{id}/gi, d.vaultId), n;
|
|
1114
1114
|
}), R = w(() => {
|
|
1115
1115
|
var ce, ve;
|
|
1116
|
-
const
|
|
1116
|
+
const n = {
|
|
1117
1117
|
protocol: o[t.HCV].protocol,
|
|
1118
1118
|
host: o[t.HCV].host,
|
|
1119
1119
|
port: parseInt(o[t.HCV].port.toString()),
|
|
@@ -1143,31 +1143,31 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1143
1143
|
cert_auth_cert_key: o[t.HCV].cert_auth_cert_key
|
|
1144
1144
|
}
|
|
1145
1145
|
}, r = {
|
|
1146
|
-
...o[
|
|
1147
|
-
client_id: o[
|
|
1148
|
-
tenant_id: o[
|
|
1149
|
-
},
|
|
1150
|
-
...o[
|
|
1151
|
-
endpoint_url: o[
|
|
1152
|
-
assume_role_arn: o[
|
|
1153
|
-
...d.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: o[
|
|
1146
|
+
...o[u.value],
|
|
1147
|
+
client_id: o[u.value].client_id || null,
|
|
1148
|
+
tenant_id: o[u.value].tenant_id || null
|
|
1149
|
+
}, z = {
|
|
1150
|
+
...o[u.value],
|
|
1151
|
+
endpoint_url: o[u.value].endpoint_url || null,
|
|
1152
|
+
assume_role_arn: o[u.value].assume_role_arn || null,
|
|
1153
|
+
...d.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: o[u.value].sts_endpoint_url || null } : {}
|
|
1154
1154
|
};
|
|
1155
|
-
let C = o[
|
|
1156
|
-
|
|
1155
|
+
let C = o[u.value];
|
|
1156
|
+
u.value === t.HCV ? C = n : u.value === t.AZURE ? C = r : u.value === t.AWS && (C = z);
|
|
1157
1157
|
let h = {};
|
|
1158
|
-
if (![t.KONNECT, t.ENV].includes(
|
|
1159
|
-
const i = o[
|
|
1158
|
+
if (![t.KONNECT, t.ENV].includes(u.value)) {
|
|
1159
|
+
const i = o[u.value], Te = i.ttl, $e = i.neg_ttl, Ke = i.resurrect_ttl;
|
|
1160
1160
|
h = {
|
|
1161
1161
|
ttl: Te ? parseInt(Te.toString(), 10) : null,
|
|
1162
1162
|
neg_ttl: $e ? parseInt($e.toString(), 10) : null,
|
|
1163
|
-
resurrect_ttl:
|
|
1163
|
+
resurrect_ttl: Ke ? parseInt(Ke.toString(), 10) : null
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
1166
|
return {
|
|
1167
|
-
prefix:
|
|
1168
|
-
description:
|
|
1169
|
-
tags: (ve = (ce =
|
|
1170
|
-
name:
|
|
1167
|
+
prefix: s.fields.prefix,
|
|
1168
|
+
description: s.fields.description || null,
|
|
1169
|
+
tags: (ve = (ce = s.fields.tags.split(",")) == null ? void 0 : ce.map((i) => String(i || "").trim())) == null ? void 0 : ve.filter((i) => i !== ""),
|
|
1170
|
+
name: u.value,
|
|
1171
1171
|
config: {
|
|
1172
1172
|
...C,
|
|
1173
1173
|
...h
|
|
@@ -1180,82 +1180,82 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1180
1180
|
config_store_id: X.value
|
|
1181
1181
|
}
|
|
1182
1182
|
})), k = async () => {
|
|
1183
|
-
var
|
|
1183
|
+
var n;
|
|
1184
1184
|
try {
|
|
1185
|
-
|
|
1186
|
-
const r = `${d.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((
|
|
1187
|
-
return
|
|
1185
|
+
s.isReadonly = !0;
|
|
1186
|
+
const r = `${d.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((n = d.config) == null ? void 0 : n.controlPlaneId) || ""), z = await I.post(r);
|
|
1187
|
+
return z == null ? void 0 : z.data.id;
|
|
1188
1188
|
} catch (r) {
|
|
1189
|
-
|
|
1189
|
+
s.errorMessage = _(r), c("error", r);
|
|
1190
1190
|
} finally {
|
|
1191
|
-
|
|
1191
|
+
s.isReadonly = !1;
|
|
1192
1192
|
}
|
|
1193
1193
|
}, E = async () => {
|
|
1194
|
-
var
|
|
1194
|
+
var n;
|
|
1195
1195
|
try {
|
|
1196
|
-
|
|
1196
|
+
s.isReadonly = !0;
|
|
1197
1197
|
let r;
|
|
1198
|
-
F.value === "create" ?
|
|
1198
|
+
F.value === "create" ? u.value === t.KONNECT ? (X.value = await k(), r = await I.post(j.value, fe.value)) : r = await I.post(j.value, R.value) : F.value === "edit" && (u.value === t.KONNECT && !X.value ? (X.value = await k(), r = await I.put(j.value, fe.value)) : r = ((n = d.config) == null ? void 0 : n.app) === "konnect" ? await I.put(j.value, fe.value) : await I.patch(j.value, R.value)), b(r == null ? void 0 : r.data), c("update", r == null ? void 0 : r.data);
|
|
1199
1199
|
} catch (r) {
|
|
1200
|
-
|
|
1200
|
+
s.errorMessage = _(r), c("error", r);
|
|
1201
1201
|
} finally {
|
|
1202
|
-
|
|
1202
|
+
s.isReadonly = !1;
|
|
1203
1203
|
}
|
|
1204
1204
|
};
|
|
1205
|
-
return (
|
|
1206
|
-
const
|
|
1207
|
-
return V(),
|
|
1208
|
-
|
|
1205
|
+
return (n, r) => {
|
|
1206
|
+
const z = L("KTooltip"), C = L("KSelect"), h = L("KInput"), oe = L("KCheckbox"), ce = L("KTextArea"), ve = L("KCollapse");
|
|
1207
|
+
return V(), B("div", Mt, [
|
|
1208
|
+
f(e(Qe), {
|
|
1209
1209
|
"can-submit": H.value && se.value,
|
|
1210
1210
|
config: l.config,
|
|
1211
1211
|
"edit-id": l.vaultId,
|
|
1212
1212
|
"entity-type": e(Ue).Vault,
|
|
1213
|
-
"error-message":
|
|
1213
|
+
"error-message": s.errorMessage,
|
|
1214
1214
|
"fetch-url": re.value,
|
|
1215
1215
|
"form-fields": R.value,
|
|
1216
|
-
"is-readonly":
|
|
1217
|
-
onCancel:
|
|
1216
|
+
"is-readonly": s.isReadonly,
|
|
1217
|
+
onCancel: q,
|
|
1218
1218
|
"onFetch:error": U,
|
|
1219
|
-
"onFetch:success":
|
|
1219
|
+
"onFetch:success": b,
|
|
1220
1220
|
onLoading: ie,
|
|
1221
1221
|
onSubmit: E
|
|
1222
1222
|
}, {
|
|
1223
|
-
default:
|
|
1224
|
-
|
|
1223
|
+
default: m(() => [
|
|
1224
|
+
f(e(Ee), {
|
|
1225
1225
|
description: e(a)("form.sections.config.description"),
|
|
1226
1226
|
title: e(a)("form.sections.config.title")
|
|
1227
1227
|
}, {
|
|
1228
|
-
default:
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
modelValue:
|
|
1232
|
-
"onUpdate:modelValue": r[0] || (r[0] = (i) =>
|
|
1228
|
+
default: m(() => [
|
|
1229
|
+
x("div", Nt, [
|
|
1230
|
+
f(C, {
|
|
1231
|
+
modelValue: u.value,
|
|
1232
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => u.value = i),
|
|
1233
1233
|
"data-testid": "provider-select",
|
|
1234
1234
|
disabled: ne.value,
|
|
1235
1235
|
"dropdown-max-height": "500",
|
|
1236
1236
|
items: Y.value,
|
|
1237
|
-
readonly:
|
|
1237
|
+
readonly: s.isReadonly
|
|
1238
1238
|
}, {
|
|
1239
|
-
"selected-item-template":
|
|
1240
|
-
(V(),
|
|
1241
|
-
|
|
1239
|
+
"selected-item-template": m(({ item: i }) => [
|
|
1240
|
+
(V(), D(He(Z(i.value)))),
|
|
1241
|
+
x("span", null, T(i == null ? void 0 : i.label), 1)
|
|
1242
1242
|
]),
|
|
1243
|
-
"item-template":
|
|
1244
|
-
|
|
1243
|
+
"item-template": m(({ item: i }) => [
|
|
1244
|
+
f(z, {
|
|
1245
1245
|
placement: "top",
|
|
1246
1246
|
text: i.disabled ? e(a)("form.unavailable") : ""
|
|
1247
1247
|
}, {
|
|
1248
|
-
default:
|
|
1249
|
-
|
|
1248
|
+
default: m(() => [
|
|
1249
|
+
x("div", {
|
|
1250
1250
|
class: "provider-item",
|
|
1251
1251
|
"data-testid": `vault-form-provider-${i.value}`
|
|
1252
1252
|
}, [
|
|
1253
|
-
(V(),
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1253
|
+
(V(), D(He(Z(i.value)))),
|
|
1254
|
+
x("div", Ot, [
|
|
1255
|
+
x("span", qt, T(i == null ? void 0 : i.label), 1),
|
|
1256
|
+
x("span", jt, T(te(i.value)), 1)
|
|
1257
1257
|
])
|
|
1258
|
-
], 8,
|
|
1258
|
+
], 8, Ft)
|
|
1259
1259
|
]),
|
|
1260
1260
|
_: 2
|
|
1261
1261
|
}, 1032, ["text"])
|
|
@@ -1263,10 +1263,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1263
1263
|
_: 1
|
|
1264
1264
|
}, 8, ["modelValue", "disabled", "items", "readonly"])
|
|
1265
1265
|
]),
|
|
1266
|
-
|
|
1267
|
-
default:
|
|
1268
|
-
|
|
1269
|
-
|
|
1266
|
+
f(Xe, { name: "appear" }, {
|
|
1267
|
+
default: m(() => [
|
|
1268
|
+
u.value === e(t).ENV ? (V(), B("div", Dt, [
|
|
1269
|
+
f(h, {
|
|
1270
1270
|
modelValue: o[e(t).ENV].prefix,
|
|
1271
1271
|
"onUpdate:modelValue": r[1] || (r[1] = (i) => o[e(t).ENV].prefix = i),
|
|
1272
1272
|
modelModifiers: { trim: !0 },
|
|
@@ -1278,11 +1278,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1278
1278
|
tooltipAttributes: { maxWidth: "400" }
|
|
1279
1279
|
},
|
|
1280
1280
|
placeholder: e(a)("form.config.env.fields.prefix.placeholder"),
|
|
1281
|
-
readonly:
|
|
1281
|
+
readonly: s.isReadonly,
|
|
1282
1282
|
required: "",
|
|
1283
1283
|
type: "text"
|
|
1284
1284
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1285
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1285
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
modelValue: o[e(t).ENV].base64_decode,
|
|
1288
1288
|
"onUpdate:modelValue": r[2] || (r[2] = (i) => o[e(t).ENV].base64_decode = i),
|
|
@@ -1292,14 +1292,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1292
1292
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1293
1293
|
tooltipAttributes: { maxWidth: "400" }
|
|
1294
1294
|
},
|
|
1295
|
-
readonly:
|
|
1296
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1297
|
-
])) :
|
|
1298
|
-
|
|
1295
|
+
readonly: s.isReadonly
|
|
1296
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1297
|
+
])) : W("", !0),
|
|
1298
|
+
u.value === e(t).AWS ? (V(), B("div", {
|
|
1299
1299
|
key: `${e(t).AWS}-vault-config-fields`,
|
|
1300
1300
|
class: "vault-form-config-fields-container"
|
|
1301
1301
|
}, [
|
|
1302
|
-
|
|
1302
|
+
f(C, {
|
|
1303
1303
|
modelValue: o[e(t).AWS].region,
|
|
1304
1304
|
"onUpdate:modelValue": r[3] || (r[3] = (i) => o[e(t).AWS].region = i),
|
|
1305
1305
|
"data-testid": "vault-form-config-aws-region",
|
|
@@ -1307,11 +1307,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1307
1307
|
label: e(a)("form.config.aws.fields.region.label"),
|
|
1308
1308
|
"label-attributes": { info: e(a)("form.config.aws.fields.region.tooltip") },
|
|
1309
1309
|
placeholder: e(a)("form.config.aws.fields.region.placeholder"),
|
|
1310
|
-
readonly:
|
|
1310
|
+
readonly: s.isReadonly,
|
|
1311
1311
|
required: "",
|
|
1312
1312
|
width: "100%"
|
|
1313
1313
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1314
|
-
|
|
1314
|
+
f(h, {
|
|
1315
1315
|
modelValue: o[e(t).AWS].endpoint_url,
|
|
1316
1316
|
"onUpdate:modelValue": r[4] || (r[4] = (i) => o[e(t).AWS].endpoint_url = i),
|
|
1317
1317
|
modelModifiers: { trim: !0 },
|
|
@@ -1322,10 +1322,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1322
1322
|
info: e(a)("form.config.aws.fields.endpoint_url.tooltip"),
|
|
1323
1323
|
tooltipAttributes: { maxWidth: "400" }
|
|
1324
1324
|
},
|
|
1325
|
-
readonly:
|
|
1325
|
+
readonly: s.isReadonly,
|
|
1326
1326
|
type: "text"
|
|
1327
1327
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1328
|
-
|
|
1328
|
+
f(h, {
|
|
1329
1329
|
modelValue: o[e(t).AWS].assume_role_arn,
|
|
1330
1330
|
"onUpdate:modelValue": r[5] || (r[5] = (i) => o[e(t).AWS].assume_role_arn = i),
|
|
1331
1331
|
modelModifiers: { trim: !0 },
|
|
@@ -1336,10 +1336,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1336
1336
|
info: e(a)("form.config.aws.fields.assume_role_arn.tooltip"),
|
|
1337
1337
|
tooltipAttributes: { maxWidth: "400" }
|
|
1338
1338
|
},
|
|
1339
|
-
readonly:
|
|
1339
|
+
readonly: s.isReadonly,
|
|
1340
1340
|
type: "text"
|
|
1341
1341
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1342
|
-
|
|
1342
|
+
f(h, {
|
|
1343
1343
|
modelValue: o[e(t).AWS].role_session_name,
|
|
1344
1344
|
"onUpdate:modelValue": r[6] || (r[6] = (i) => o[e(t).AWS].role_session_name = i),
|
|
1345
1345
|
modelModifiers: { trim: !0 },
|
|
@@ -1350,11 +1350,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1350
1350
|
info: e(a)("form.config.aws.fields.role_session_name.tooltip"),
|
|
1351
1351
|
tooltipAttributes: { maxWidth: "400" }
|
|
1352
1352
|
},
|
|
1353
|
-
readonly:
|
|
1353
|
+
readonly: s.isReadonly,
|
|
1354
1354
|
required: "",
|
|
1355
1355
|
type: "text"
|
|
1356
1356
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1357
|
-
l.config.awsStsEndpointUrlAvailable ? (V(),
|
|
1357
|
+
l.config.awsStsEndpointUrlAvailable ? (V(), D(h, {
|
|
1358
1358
|
key: 0,
|
|
1359
1359
|
modelValue: o[e(t).AWS].sts_endpoint_url,
|
|
1360
1360
|
"onUpdate:modelValue": r[7] || (r[7] = (i) => o[e(t).AWS].sts_endpoint_url = i),
|
|
@@ -1366,10 +1366,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1366
1366
|
info: e(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),
|
|
1367
1367
|
tooltipAttributes: { maxWidth: "400" }
|
|
1368
1368
|
},
|
|
1369
|
-
readonly:
|
|
1369
|
+
readonly: s.isReadonly,
|
|
1370
1370
|
type: "text"
|
|
1371
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1372
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1371
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0),
|
|
1372
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1373
1373
|
key: 1,
|
|
1374
1374
|
modelValue: o[e(t).AWS].base64_decode,
|
|
1375
1375
|
"onUpdate:modelValue": r[8] || (r[8] = (i) => o[e(t).AWS].base64_decode = i),
|
|
@@ -1379,14 +1379,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1379
1379
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1380
1380
|
tooltipAttributes: { maxWidth: "400" }
|
|
1381
1381
|
},
|
|
1382
|
-
readonly:
|
|
1383
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1384
|
-
])) :
|
|
1385
|
-
|
|
1382
|
+
readonly: s.isReadonly
|
|
1383
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1384
|
+
])) : W("", !0),
|
|
1385
|
+
u.value === e(t).GCP ? (V(), B("div", {
|
|
1386
1386
|
key: `${e(t).GCP}-vault-config-fields`,
|
|
1387
1387
|
class: "vault-form-config-fields-container"
|
|
1388
1388
|
}, [
|
|
1389
|
-
|
|
1389
|
+
f(h, {
|
|
1390
1390
|
modelValue: o[e(t).GCP].project_id,
|
|
1391
1391
|
"onUpdate:modelValue": r[9] || (r[9] = (i) => o[e(t).GCP].project_id = i),
|
|
1392
1392
|
modelModifiers: { trim: !0 },
|
|
@@ -1394,24 +1394,24 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1394
1394
|
"data-testid": "vault-form-config-gcp-project-id",
|
|
1395
1395
|
label: e(a)("form.config.gcp.fields.project_id.label"),
|
|
1396
1396
|
placeholder: e(a)("form.config.gcp.fields.project_id.placeholder"),
|
|
1397
|
-
readonly:
|
|
1397
|
+
readonly: s.isReadonly,
|
|
1398
1398
|
required: "",
|
|
1399
1399
|
type: "text"
|
|
1400
1400
|
}, {
|
|
1401
|
-
"label-tooltip":
|
|
1402
|
-
|
|
1401
|
+
"label-tooltip": m(() => [
|
|
1402
|
+
f(e(p), {
|
|
1403
1403
|
keypath: "form.config.gcp.fields.project_id.tooltip.text",
|
|
1404
1404
|
scope: "global"
|
|
1405
1405
|
}, {
|
|
1406
|
-
"italic-text":
|
|
1407
|
-
|
|
1406
|
+
"italic-text": m(() => [
|
|
1407
|
+
x("em", null, T(e(a)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
|
|
1408
1408
|
]),
|
|
1409
1409
|
_: 1
|
|
1410
1410
|
})
|
|
1411
1411
|
]),
|
|
1412
1412
|
_: 1
|
|
1413
1413
|
}, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
1414
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1414
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1415
1415
|
key: 0,
|
|
1416
1416
|
modelValue: o[e(t).GCP].base64_decode,
|
|
1417
1417
|
"onUpdate:modelValue": r[10] || (r[10] = (i) => o[e(t).GCP].base64_decode = i),
|
|
@@ -1421,77 +1421,77 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1421
1421
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1422
1422
|
tooltipAttributes: { maxWidth: "400" }
|
|
1423
1423
|
},
|
|
1424
|
-
readonly:
|
|
1425
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1426
|
-
])) :
|
|
1427
|
-
|
|
1424
|
+
readonly: s.isReadonly
|
|
1425
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1426
|
+
])) : W("", !0),
|
|
1427
|
+
u.value === e(t).HCV ? (V(), B("div", {
|
|
1428
1428
|
key: `${e(t).HCV}-vault-config-fields`,
|
|
1429
1429
|
class: "vault-form-config-fields-container"
|
|
1430
1430
|
}, [
|
|
1431
|
-
|
|
1431
|
+
f(C, {
|
|
1432
1432
|
modelValue: o[e(t).HCV].protocol,
|
|
1433
1433
|
"onUpdate:modelValue": r[11] || (r[11] = (i) => o[e(t).HCV].protocol = i),
|
|
1434
1434
|
"data-testid": "vault-form-config-hcv-protocol",
|
|
1435
1435
|
items: J,
|
|
1436
1436
|
label: e(a)("form.config.hcv.fields.protocol.label"),
|
|
1437
|
-
readonly:
|
|
1437
|
+
readonly: s.isReadonly,
|
|
1438
1438
|
required: "",
|
|
1439
1439
|
width: "100%"
|
|
1440
1440
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1441
|
-
|
|
1441
|
+
f(h, {
|
|
1442
1442
|
modelValue: o[e(t).HCV].host,
|
|
1443
1443
|
"onUpdate:modelValue": r[12] || (r[12] = (i) => o[e(t).HCV].host = i),
|
|
1444
1444
|
modelModifiers: { trim: !0 },
|
|
1445
1445
|
autocomplete: "off",
|
|
1446
1446
|
"data-testid": "vault-form-config-hcv-host",
|
|
1447
1447
|
label: e(a)("form.config.hcv.fields.host.label"),
|
|
1448
|
-
readonly:
|
|
1448
|
+
readonly: s.isReadonly,
|
|
1449
1449
|
required: "",
|
|
1450
1450
|
type: "text"
|
|
1451
1451
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1452
|
-
|
|
1452
|
+
f(h, {
|
|
1453
1453
|
modelValue: o[e(t).HCV].port,
|
|
1454
1454
|
"onUpdate:modelValue": r[13] || (r[13] = (i) => o[e(t).HCV].port = i),
|
|
1455
1455
|
autocomplete: "off",
|
|
1456
1456
|
"data-testid": "vault-form-config-hcv-port",
|
|
1457
1457
|
label: e(a)("form.config.hcv.fields.port.label"),
|
|
1458
1458
|
min: "0",
|
|
1459
|
-
readonly:
|
|
1459
|
+
readonly: s.isReadonly,
|
|
1460
1460
|
required: "",
|
|
1461
1461
|
type: "number"
|
|
1462
1462
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1463
|
-
|
|
1463
|
+
f(h, {
|
|
1464
1464
|
modelValue: o[e(t).HCV].mount,
|
|
1465
1465
|
"onUpdate:modelValue": r[14] || (r[14] = (i) => o[e(t).HCV].mount = i),
|
|
1466
1466
|
modelModifiers: { trim: !0 },
|
|
1467
1467
|
autocomplete: "off",
|
|
1468
1468
|
"data-testid": "vault-form-config-hcv-mount",
|
|
1469
1469
|
label: e(a)("form.config.hcv.fields.mount.label"),
|
|
1470
|
-
readonly:
|
|
1470
|
+
readonly: s.isReadonly,
|
|
1471
1471
|
required: "",
|
|
1472
1472
|
type: "text"
|
|
1473
1473
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1474
|
-
|
|
1474
|
+
f(C, {
|
|
1475
1475
|
modelValue: o[e(t).HCV].kv,
|
|
1476
1476
|
"onUpdate:modelValue": r[15] || (r[15] = (i) => o[e(t).HCV].kv = i),
|
|
1477
1477
|
"data-testid": "vault-form-config-hcv-kv",
|
|
1478
1478
|
items: y,
|
|
1479
1479
|
label: e(a)("form.config.hcv.fields.kv.label"),
|
|
1480
|
-
readonly:
|
|
1480
|
+
readonly: s.isReadonly,
|
|
1481
1481
|
required: "",
|
|
1482
1482
|
width: "100%"
|
|
1483
1483
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1484
|
-
|
|
1484
|
+
f(h, {
|
|
1485
1485
|
modelValue: o[e(t).HCV].namespace,
|
|
1486
1486
|
"onUpdate:modelValue": r[16] || (r[16] = (i) => o[e(t).HCV].namespace = i),
|
|
1487
1487
|
modelModifiers: { trim: !0 },
|
|
1488
1488
|
autocomplete: "off",
|
|
1489
1489
|
"data-testid": "vault-form-config-hcv-namespace",
|
|
1490
1490
|
label: e(a)("form.config.hcv.fields.namespace.label"),
|
|
1491
|
-
readonly:
|
|
1491
|
+
readonly: s.isReadonly,
|
|
1492
1492
|
type: "text"
|
|
1493
1493
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1494
|
-
|
|
1494
|
+
f(C, {
|
|
1495
1495
|
modelValue: o[e(t).HCV].auth_method,
|
|
1496
1496
|
"onUpdate:modelValue": r[17] || (r[17] = (i) => o[e(t).HCV].auth_method = i),
|
|
1497
1497
|
"data-testid": "vault-form-config-hcv-auth_method",
|
|
@@ -1502,138 +1502,138 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1502
1502
|
...l.config.hcvCertMethodAvailable ? [{ label: e(M).CERT, value: e(M).CERT }] : []
|
|
1503
1503
|
],
|
|
1504
1504
|
label: e(a)("form.config.hcv.fields.auth_method.label"),
|
|
1505
|
-
readonly:
|
|
1505
|
+
readonly: s.isReadonly,
|
|
1506
1506
|
required: "",
|
|
1507
1507
|
width: "100%"
|
|
1508
1508
|
}, null, 8, ["modelValue", "items", "label", "readonly"]),
|
|
1509
|
-
o[e(t).HCV].auth_method === e(M).TOKEN ? (V(),
|
|
1510
|
-
|
|
1509
|
+
o[e(t).HCV].auth_method === e(M).TOKEN ? (V(), B("div", Wt, [
|
|
1510
|
+
f(h, {
|
|
1511
1511
|
modelValue: o[e(t).HCV].token,
|
|
1512
1512
|
"onUpdate:modelValue": r[18] || (r[18] = (i) => o[e(t).HCV].token = i),
|
|
1513
1513
|
modelModifiers: { trim: !0 },
|
|
1514
1514
|
autocomplete: "off",
|
|
1515
1515
|
"data-testid": "vault-form-config-hcv-token",
|
|
1516
1516
|
label: e(a)("form.config.hcv.fields.token.label"),
|
|
1517
|
-
readonly:
|
|
1517
|
+
readonly: s.isReadonly,
|
|
1518
1518
|
required: "",
|
|
1519
1519
|
"show-password-mask-toggle": "",
|
|
1520
1520
|
type: "password"
|
|
1521
1521
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
1522
|
-
])) : o[e(t).HCV].auth_method === e(M).K8S ? (V(),
|
|
1523
|
-
|
|
1522
|
+
])) : o[e(t).HCV].auth_method === e(M).K8S ? (V(), B("div", Bt, [
|
|
1523
|
+
f(h, {
|
|
1524
1524
|
modelValue: o[e(t).HCV].kube_role,
|
|
1525
1525
|
"onUpdate:modelValue": r[19] || (r[19] = (i) => o[e(t).HCV].kube_role = i),
|
|
1526
1526
|
modelModifiers: { trim: !0 },
|
|
1527
1527
|
autocomplete: "off",
|
|
1528
1528
|
"data-testid": "vault-form-config-hcv-kube_role",
|
|
1529
1529
|
label: e(a)("form.config.hcv.fields.kube_role.label"),
|
|
1530
|
-
readonly:
|
|
1530
|
+
readonly: s.isReadonly,
|
|
1531
1531
|
required: "",
|
|
1532
1532
|
type: "text"
|
|
1533
1533
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1534
|
-
|
|
1534
|
+
f(h, {
|
|
1535
1535
|
modelValue: o[e(t).HCV].kube_auth_path,
|
|
1536
1536
|
"onUpdate:modelValue": r[20] || (r[20] = (i) => o[e(t).HCV].kube_auth_path = i),
|
|
1537
1537
|
modelModifiers: { trim: !0 },
|
|
1538
1538
|
autocomplete: "off",
|
|
1539
1539
|
"data-testid": "vault-form-config-hcv-kube_auth_path",
|
|
1540
1540
|
label: e(a)("form.config.hcv.fields.kube_auth_path.label"),
|
|
1541
|
-
readonly:
|
|
1541
|
+
readonly: s.isReadonly,
|
|
1542
1542
|
type: "text"
|
|
1543
1543
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1544
|
-
|
|
1544
|
+
f(h, {
|
|
1545
1545
|
modelValue: o[e(t).HCV].kube_api_token_file,
|
|
1546
1546
|
"onUpdate:modelValue": r[21] || (r[21] = (i) => o[e(t).HCV].kube_api_token_file = i),
|
|
1547
1547
|
modelModifiers: { trim: !0 },
|
|
1548
1548
|
autocomplete: "off",
|
|
1549
1549
|
"data-testid": "vault-form-config-hcv-kube_api_token_file",
|
|
1550
1550
|
label: e(a)("form.config.hcv.fields.kube_api_token_file.label"),
|
|
1551
|
-
readonly:
|
|
1551
|
+
readonly: s.isReadonly,
|
|
1552
1552
|
required: "",
|
|
1553
1553
|
type: "text"
|
|
1554
1554
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
1555
|
-
])) : o[e(t).HCV].auth_method === e(M).APP_ROLE ? (V(),
|
|
1556
|
-
|
|
1555
|
+
])) : o[e(t).HCV].auth_method === e(M).APP_ROLE ? (V(), B("div", Lt, [
|
|
1556
|
+
f(h, {
|
|
1557
1557
|
modelValue: o[e(t).HCV].approle_auth_path,
|
|
1558
1558
|
"onUpdate:modelValue": r[22] || (r[22] = (i) => o[e(t).HCV].approle_auth_path = i),
|
|
1559
1559
|
modelModifiers: { trim: !0 },
|
|
1560
1560
|
autocomplete: "off",
|
|
1561
1561
|
"data-testid": "vault-form-config-hcv-approle_auth_path",
|
|
1562
1562
|
label: e(a)("form.config.hcv.fields.approle_auth_path.label"),
|
|
1563
|
-
readonly:
|
|
1563
|
+
readonly: s.isReadonly,
|
|
1564
1564
|
type: "text"
|
|
1565
1565
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1566
|
-
|
|
1566
|
+
f(h, {
|
|
1567
1567
|
modelValue: o[e(t).HCV].approle_role_id,
|
|
1568
1568
|
"onUpdate:modelValue": r[23] || (r[23] = (i) => o[e(t).HCV].approle_role_id = i),
|
|
1569
1569
|
modelModifiers: { trim: !0 },
|
|
1570
1570
|
autocomplete: "off",
|
|
1571
1571
|
"data-testid": "vault-form-config-hcv-approle_role_id",
|
|
1572
1572
|
label: e(a)("form.config.hcv.fields.approle_role_id.label"),
|
|
1573
|
-
readonly:
|
|
1573
|
+
readonly: s.isReadonly,
|
|
1574
1574
|
required: "",
|
|
1575
1575
|
type: "text"
|
|
1576
1576
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1577
|
-
|
|
1577
|
+
f(h, {
|
|
1578
1578
|
modelValue: o[e(t).HCV].approle_secret_id,
|
|
1579
1579
|
"onUpdate:modelValue": r[24] || (r[24] = (i) => o[e(t).HCV].approle_secret_id = i),
|
|
1580
1580
|
modelModifiers: { trim: !0 },
|
|
1581
1581
|
autocomplete: "off",
|
|
1582
1582
|
"data-testid": "vault-form-config-hcv-approle_secret_id",
|
|
1583
1583
|
label: e(a)("form.config.hcv.fields.approle_secret_id.label"),
|
|
1584
|
-
readonly:
|
|
1584
|
+
readonly: s.isReadonly,
|
|
1585
1585
|
"show-password-mask-toggle": "",
|
|
1586
1586
|
type: "password"
|
|
1587
1587
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1588
|
-
|
|
1588
|
+
f(h, {
|
|
1589
1589
|
modelValue: o[e(t).HCV].approle_secret_id_file,
|
|
1590
1590
|
"onUpdate:modelValue": r[25] || (r[25] = (i) => o[e(t).HCV].approle_secret_id_file = i),
|
|
1591
1591
|
modelModifiers: { trim: !0 },
|
|
1592
1592
|
autocomplete: "off",
|
|
1593
1593
|
"data-testid": "vault-form-config-hcv-approle_secret_id_file",
|
|
1594
1594
|
label: e(a)("form.config.hcv.fields.approle_secret_id_file.label"),
|
|
1595
|
-
readonly:
|
|
1595
|
+
readonly: s.isReadonly,
|
|
1596
1596
|
type: "text"
|
|
1597
1597
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1598
|
-
|
|
1598
|
+
f(oe, {
|
|
1599
1599
|
modelValue: o[e(t).HCV].approle_response_wrapping,
|
|
1600
1600
|
"onUpdate:modelValue": r[26] || (r[26] = (i) => o[e(t).HCV].approle_response_wrapping = i),
|
|
1601
1601
|
"data-testid": "vault-form-config-hcv-approle_response_wrapping",
|
|
1602
1602
|
label: e(a)("form.config.hcv.fields.approle_response_wrapping.label")
|
|
1603
1603
|
}, null, 8, ["modelValue", "label"])
|
|
1604
|
-
])) : o[e(t).HCV].auth_method === e(M).CERT ? (V(),
|
|
1605
|
-
|
|
1604
|
+
])) : o[e(t).HCV].auth_method === e(M).CERT ? (V(), B("div", zt, [
|
|
1605
|
+
f(h, {
|
|
1606
1606
|
modelValue: o[e(t).HCV].cert_auth_role_name,
|
|
1607
1607
|
"onUpdate:modelValue": r[27] || (r[27] = (i) => o[e(t).HCV].cert_auth_role_name = i),
|
|
1608
1608
|
modelModifiers: { trim: !0 },
|
|
1609
1609
|
autocomplete: "off",
|
|
1610
1610
|
"data-testid": "vault-form-config-hcv-cert_auth_role_name",
|
|
1611
1611
|
label: e(a)("form.config.hcv.fields.cert_auth_role_name.label"),
|
|
1612
|
-
readonly:
|
|
1612
|
+
readonly: s.isReadonly,
|
|
1613
1613
|
required: ""
|
|
1614
1614
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1615
|
-
|
|
1615
|
+
f(ce, {
|
|
1616
1616
|
modelValue: o[e(t).HCV].cert_auth_cert,
|
|
1617
1617
|
"onUpdate:modelValue": r[28] || (r[28] = (i) => o[e(t).HCV].cert_auth_cert = i),
|
|
1618
1618
|
modelModifiers: { trim: !0 },
|
|
1619
1619
|
autocomplete: "off",
|
|
1620
1620
|
"data-testid": "vault-form-config-hcv-cert_auth_cert",
|
|
1621
1621
|
label: e(a)("form.config.hcv.fields.cert_auth_cert.label"),
|
|
1622
|
-
readonly:
|
|
1622
|
+
readonly: s.isReadonly,
|
|
1623
1623
|
required: ""
|
|
1624
1624
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1625
|
-
|
|
1625
|
+
f(ce, {
|
|
1626
1626
|
modelValue: o[e(t).HCV].cert_auth_cert_key,
|
|
1627
1627
|
"onUpdate:modelValue": r[29] || (r[29] = (i) => o[e(t).HCV].cert_auth_cert_key = i),
|
|
1628
1628
|
modelModifiers: { trim: !0 },
|
|
1629
1629
|
autocomplete: "off",
|
|
1630
1630
|
"data-testid": "vault-form-config-hcv-cert_auth_cert_key",
|
|
1631
1631
|
label: e(a)("form.config.hcv.fields.cert_auth_cert_key.label"),
|
|
1632
|
-
readonly:
|
|
1632
|
+
readonly: s.isReadonly,
|
|
1633
1633
|
required: ""
|
|
1634
1634
|
}, null, 8, ["modelValue", "label", "readonly"])
|
|
1635
|
-
])) :
|
|
1636
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1635
|
+
])) : W("", !0),
|
|
1636
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1637
1637
|
key: 4,
|
|
1638
1638
|
modelValue: o[e(t).HCV].base64_decode,
|
|
1639
1639
|
"onUpdate:modelValue": r[30] || (r[30] = (i) => o[e(t).HCV].base64_decode = i),
|
|
@@ -1643,78 +1643,78 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1643
1643
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1644
1644
|
tooltipAttributes: { maxWidth: "400" }
|
|
1645
1645
|
},
|
|
1646
|
-
readonly:
|
|
1647
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1648
|
-
])) :
|
|
1649
|
-
|
|
1646
|
+
readonly: s.isReadonly
|
|
1647
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1648
|
+
])) : W("", !0),
|
|
1649
|
+
u.value === e(t).AZURE ? (V(), B("div", {
|
|
1650
1650
|
key: `${e(t).AZURE}-vault-config-fields`,
|
|
1651
1651
|
class: "vault-form-config-fields-container"
|
|
1652
1652
|
}, [
|
|
1653
|
-
|
|
1653
|
+
f(h, {
|
|
1654
1654
|
modelValue: o[e(t).AZURE].location,
|
|
1655
1655
|
"onUpdate:modelValue": r[31] || (r[31] = (i) => o[e(t).AZURE].location = i),
|
|
1656
1656
|
modelModifiers: { trim: !0 },
|
|
1657
1657
|
autocomplete: "off",
|
|
1658
1658
|
"data-testid": "vault-form-config-azure-location",
|
|
1659
1659
|
label: e(a)("form.config.azure.fields.location.label"),
|
|
1660
|
-
readonly:
|
|
1660
|
+
readonly: s.isReadonly,
|
|
1661
1661
|
required: "",
|
|
1662
1662
|
type: "text"
|
|
1663
1663
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1664
|
-
|
|
1664
|
+
f(h, {
|
|
1665
1665
|
modelValue: o[e(t).AZURE].vault_uri,
|
|
1666
1666
|
"onUpdate:modelValue": r[32] || (r[32] = (i) => o[e(t).AZURE].vault_uri = i),
|
|
1667
1667
|
modelModifiers: { trim: !0 },
|
|
1668
1668
|
autocomplete: "off",
|
|
1669
1669
|
"data-testid": "vault-form-config-azure-uri",
|
|
1670
1670
|
label: e(a)("form.config.azure.fields.vault_uri.label"),
|
|
1671
|
-
readonly:
|
|
1671
|
+
readonly: s.isReadonly,
|
|
1672
1672
|
required: "",
|
|
1673
1673
|
type: "text"
|
|
1674
1674
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1675
|
-
|
|
1675
|
+
f(h, {
|
|
1676
1676
|
modelValue: o[e(t).AZURE].credentials_prefix,
|
|
1677
1677
|
"onUpdate:modelValue": r[33] || (r[33] = (i) => o[e(t).AZURE].credentials_prefix = i),
|
|
1678
1678
|
modelModifiers: { trim: !0 },
|
|
1679
1679
|
autocomplete: "off",
|
|
1680
1680
|
"data-testid": "vault-form-config-azure-prefix",
|
|
1681
1681
|
label: e(a)("form.config.azure.fields.credential_prefix.label"),
|
|
1682
|
-
readonly:
|
|
1682
|
+
readonly: s.isReadonly,
|
|
1683
1683
|
required: "",
|
|
1684
1684
|
type: "text"
|
|
1685
1685
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1686
|
-
|
|
1686
|
+
f(C, {
|
|
1687
1687
|
modelValue: o[e(t).AZURE].type,
|
|
1688
1688
|
"onUpdate:modelValue": r[34] || (r[34] = (i) => o[e(t).AZURE].type = i),
|
|
1689
1689
|
"data-testid": "vault-form-config-azure-type",
|
|
1690
1690
|
items: ee,
|
|
1691
1691
|
label: e(a)("form.config.azure.fields.type.label"),
|
|
1692
1692
|
placeholder: e(a)("form.config.azure.fields.type.placeholder"),
|
|
1693
|
-
readonly:
|
|
1693
|
+
readonly: s.isReadonly,
|
|
1694
1694
|
required: "",
|
|
1695
1695
|
width: "100%"
|
|
1696
1696
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
1697
|
-
|
|
1697
|
+
f(h, {
|
|
1698
1698
|
modelValue: o[e(t).AZURE].client_id,
|
|
1699
1699
|
"onUpdate:modelValue": r[35] || (r[35] = (i) => o[e(t).AZURE].client_id = i),
|
|
1700
1700
|
modelModifiers: { trim: !0 },
|
|
1701
1701
|
autocomplete: "off",
|
|
1702
1702
|
"data-testid": "vault-form-config-azure-client-id",
|
|
1703
1703
|
label: e(a)("form.config.azure.fields.client_id.label"),
|
|
1704
|
-
readonly:
|
|
1704
|
+
readonly: s.isReadonly,
|
|
1705
1705
|
type: "text"
|
|
1706
1706
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1707
|
-
|
|
1707
|
+
f(h, {
|
|
1708
1708
|
modelValue: o[e(t).AZURE].tenant_id,
|
|
1709
1709
|
"onUpdate:modelValue": r[36] || (r[36] = (i) => o[e(t).AZURE].tenant_id = i),
|
|
1710
1710
|
modelModifiers: { trim: !0 },
|
|
1711
1711
|
autocomplete: "off",
|
|
1712
1712
|
"data-testid": "vault-form-config-azure-tenant-id",
|
|
1713
1713
|
label: e(a)("form.config.azure.fields.tenant_id.label"),
|
|
1714
|
-
readonly:
|
|
1714
|
+
readonly: s.isReadonly,
|
|
1715
1715
|
type: "text"
|
|
1716
1716
|
}, null, 8, ["modelValue", "label", "readonly"]),
|
|
1717
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1717
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1718
1718
|
key: 0,
|
|
1719
1719
|
modelValue: o[e(t).AZURE].base64_decode,
|
|
1720
1720
|
"onUpdate:modelValue": r[37] || (r[37] = (i) => o[e(t).AZURE].base64_decode = i),
|
|
@@ -1724,14 +1724,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1724
1724
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1725
1725
|
tooltipAttributes: { maxWidth: "400" }
|
|
1726
1726
|
},
|
|
1727
|
-
readonly:
|
|
1728
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1729
|
-
])) :
|
|
1730
|
-
|
|
1727
|
+
readonly: s.isReadonly
|
|
1728
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1729
|
+
])) : W("", !0),
|
|
1730
|
+
u.value === e(t).CONJUR ? (V(), B("div", {
|
|
1731
1731
|
key: `${e(t).CONJUR}-vault-config-fields`,
|
|
1732
1732
|
class: "vault-form-config-fields-container"
|
|
1733
1733
|
}, [
|
|
1734
|
-
|
|
1734
|
+
f(h, {
|
|
1735
1735
|
modelValue: o[e(t).CONJUR].endpoint_url,
|
|
1736
1736
|
"onUpdate:modelValue": r[38] || (r[38] = (i) => o[e(t).CONJUR].endpoint_url = i),
|
|
1737
1737
|
modelModifiers: { trim: !0 },
|
|
@@ -1742,11 +1742,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1742
1742
|
info: e(a)("form.config.conjur.fields.endpoint_url.tooltip"),
|
|
1743
1743
|
tooltipAttributes: { maxWidth: "400" }
|
|
1744
1744
|
},
|
|
1745
|
-
readonly:
|
|
1745
|
+
readonly: s.isReadonly,
|
|
1746
1746
|
required: "",
|
|
1747
1747
|
type: "text"
|
|
1748
1748
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1749
|
-
|
|
1749
|
+
f(h, {
|
|
1750
1750
|
modelValue: o[e(t).CONJUR].login,
|
|
1751
1751
|
"onUpdate:modelValue": r[39] || (r[39] = (i) => o[e(t).CONJUR].login = i),
|
|
1752
1752
|
modelModifiers: { trim: !0 },
|
|
@@ -1757,11 +1757,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1757
1757
|
info: e(a)("form.config.conjur.fields.login.tooltip"),
|
|
1758
1758
|
tooltipAttributes: { maxWidth: "400" }
|
|
1759
1759
|
},
|
|
1760
|
-
readonly:
|
|
1760
|
+
readonly: s.isReadonly,
|
|
1761
1761
|
required: "",
|
|
1762
1762
|
type: "text"
|
|
1763
1763
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1764
|
-
|
|
1764
|
+
f(h, {
|
|
1765
1765
|
modelValue: o[e(t).CONJUR].account,
|
|
1766
1766
|
"onUpdate:modelValue": r[40] || (r[40] = (i) => o[e(t).CONJUR].account = i),
|
|
1767
1767
|
modelModifiers: { trim: !0 },
|
|
@@ -1772,11 +1772,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1772
1772
|
info: e(a)("form.config.conjur.fields.account.tooltip"),
|
|
1773
1773
|
tooltipAttributes: { maxWidth: "400" }
|
|
1774
1774
|
},
|
|
1775
|
-
readonly:
|
|
1775
|
+
readonly: s.isReadonly,
|
|
1776
1776
|
required: "",
|
|
1777
1777
|
type: "text"
|
|
1778
1778
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1779
|
-
|
|
1779
|
+
f(h, {
|
|
1780
1780
|
modelValue: o[e(t).CONJUR].api_key,
|
|
1781
1781
|
"onUpdate:modelValue": r[41] || (r[41] = (i) => o[e(t).CONJUR].api_key = i),
|
|
1782
1782
|
modelModifiers: { trim: !0 },
|
|
@@ -1787,12 +1787,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1787
1787
|
info: e(a)("form.config.conjur.fields.api_key.tooltip"),
|
|
1788
1788
|
tooltipAttributes: { maxWidth: "400" }
|
|
1789
1789
|
},
|
|
1790
|
-
readonly:
|
|
1790
|
+
readonly: s.isReadonly,
|
|
1791
1791
|
required: "",
|
|
1792
1792
|
"show-password-mask-toggle": "",
|
|
1793
1793
|
type: "password"
|
|
1794
1794
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1795
|
-
l.config.base64FieldAvailable ? (V(),
|
|
1795
|
+
l.config.base64FieldAvailable ? (V(), D(oe, {
|
|
1796
1796
|
key: 0,
|
|
1797
1797
|
modelValue: o[e(t).CONJUR].base64_decode,
|
|
1798
1798
|
"onUpdate:modelValue": r[42] || (r[42] = (i) => o[e(t).CONJUR].base64_decode = i),
|
|
@@ -1802,23 +1802,23 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1802
1802
|
info: e(a)("form.config.commonFields.base64_decode.tooltip"),
|
|
1803
1803
|
tooltipAttributes: { maxWidth: "400" }
|
|
1804
1804
|
},
|
|
1805
|
-
readonly:
|
|
1806
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
1807
|
-
])) :
|
|
1808
|
-
l.config.ttl ? (V(),
|
|
1809
|
-
Q.value ? (V(),
|
|
1805
|
+
readonly: s.isReadonly
|
|
1806
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : W("", !0)
|
|
1807
|
+
])) : W("", !0),
|
|
1808
|
+
l.config.ttl ? (V(), B("div", Gt, [
|
|
1809
|
+
Q.value ? (V(), D(ve, {
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
class: "advanced-fields-collapse",
|
|
1812
1812
|
"data-testid": "advanced-fields-collapse",
|
|
1813
1813
|
"trigger-alignment": "leading",
|
|
1814
1814
|
"trigger-label": e(a)("form.config.advancedFields.title")
|
|
1815
1815
|
}, {
|
|
1816
|
-
default:
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
modelValue: o[
|
|
1821
|
-
"onUpdate:modelValue": r[43] || (r[43] = (i) => o[
|
|
1816
|
+
default: m(() => [
|
|
1817
|
+
x("div", Jt, [
|
|
1818
|
+
x("div", Zt, [
|
|
1819
|
+
f(h, {
|
|
1820
|
+
modelValue: o[u.value].ttl,
|
|
1821
|
+
"onUpdate:modelValue": r[43] || (r[43] = (i) => o[u.value].ttl = i),
|
|
1822
1822
|
"data-testid": "vault-ttl-input",
|
|
1823
1823
|
label: e(a)("form.config.advancedFields.ttl"),
|
|
1824
1824
|
"label-attributes": {
|
|
@@ -1828,10 +1828,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1828
1828
|
type: "number"
|
|
1829
1829
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1830
1830
|
]),
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
modelValue: o[
|
|
1834
|
-
"onUpdate:modelValue": r[44] || (r[44] = (i) => o[
|
|
1831
|
+
x("div", Qt, [
|
|
1832
|
+
f(h, {
|
|
1833
|
+
modelValue: o[u.value].neg_ttl,
|
|
1834
|
+
"onUpdate:modelValue": r[44] || (r[44] = (i) => o[u.value].neg_ttl = i),
|
|
1835
1835
|
"data-testid": "vault-neg-ttl-input",
|
|
1836
1836
|
label: e(a)("form.config.advancedFields.negTtl"),
|
|
1837
1837
|
"label-attributes": {
|
|
@@ -1842,11 +1842,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1842
1842
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1843
1843
|
])
|
|
1844
1844
|
]),
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
modelValue: o[
|
|
1849
|
-
"onUpdate:modelValue": r[45] || (r[45] = (i) => o[
|
|
1845
|
+
x("div", Yt, [
|
|
1846
|
+
x("div", Xt, [
|
|
1847
|
+
f(h, {
|
|
1848
|
+
modelValue: o[u.value].resurrect_ttl,
|
|
1849
|
+
"onUpdate:modelValue": r[45] || (r[45] = (i) => o[u.value].resurrect_ttl = i),
|
|
1850
1850
|
"data-testid": "vault-resurrect-ttl-input",
|
|
1851
1851
|
label: e(a)("form.config.advancedFields.resurrectTtl"),
|
|
1852
1852
|
"label-attributes": {
|
|
@@ -1859,22 +1859,22 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1859
1859
|
])
|
|
1860
1860
|
]),
|
|
1861
1861
|
_: 1
|
|
1862
|
-
}, 8, ["trigger-label"])) :
|
|
1863
|
-
])) :
|
|
1862
|
+
}, 8, ["trigger-label"])) : W("", !0)
|
|
1863
|
+
])) : W("", !0)
|
|
1864
1864
|
]),
|
|
1865
1865
|
_: 1
|
|
1866
1866
|
})
|
|
1867
1867
|
]),
|
|
1868
1868
|
_: 1
|
|
1869
1869
|
}, 8, ["description", "title"]),
|
|
1870
|
-
|
|
1870
|
+
f(e(Ee), {
|
|
1871
1871
|
description: e(a)("form.sections.general.description"),
|
|
1872
1872
|
title: e(a)("form.sections.general.title")
|
|
1873
1873
|
}, {
|
|
1874
|
-
default:
|
|
1875
|
-
|
|
1876
|
-
modelValue:
|
|
1877
|
-
"onUpdate:modelValue": r[46] || (r[46] = (i) =>
|
|
1874
|
+
default: m(() => [
|
|
1875
|
+
f(h, {
|
|
1876
|
+
modelValue: s.fields.prefix,
|
|
1877
|
+
"onUpdate:modelValue": r[46] || (r[46] = (i) => s.fields.prefix = i),
|
|
1878
1878
|
modelModifiers: { trim: !0 },
|
|
1879
1879
|
autocomplete: "off",
|
|
1880
1880
|
"data-testid": "vault-form-prefix",
|
|
@@ -1885,31 +1885,31 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1885
1885
|
tooltipAttributes: { maxWidth: "400" }
|
|
1886
1886
|
},
|
|
1887
1887
|
placeholder: e(a)("form.fields.prefix.placeholder"),
|
|
1888
|
-
readonly:
|
|
1888
|
+
readonly: s.isReadonly,
|
|
1889
1889
|
required: "",
|
|
1890
1890
|
type: "text"
|
|
1891
1891
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
|
|
1892
|
-
|
|
1893
|
-
modelValue:
|
|
1894
|
-
"onUpdate:modelValue": r[47] || (r[47] = (i) =>
|
|
1892
|
+
f(ce, {
|
|
1893
|
+
modelValue: s.fields.description,
|
|
1894
|
+
"onUpdate:modelValue": r[47] || (r[47] = (i) => s.fields.description = i),
|
|
1895
1895
|
modelModifiers: { trim: !0 },
|
|
1896
1896
|
"character-limit": 1e3,
|
|
1897
1897
|
class: "vault-form-textarea",
|
|
1898
1898
|
"data-testid": "vault-form-description",
|
|
1899
1899
|
label: e(a)("form.fields.description.label"),
|
|
1900
1900
|
placeholder: e(a)("form.fields.description.placeholder"),
|
|
1901
|
-
readonly:
|
|
1901
|
+
readonly: s.isReadonly
|
|
1902
1902
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
1903
|
-
|
|
1904
|
-
modelValue:
|
|
1905
|
-
"onUpdate:modelValue": r[48] || (r[48] = (i) =>
|
|
1903
|
+
f(h, {
|
|
1904
|
+
modelValue: s.fields.tags,
|
|
1905
|
+
"onUpdate:modelValue": r[48] || (r[48] = (i) => s.fields.tags = i),
|
|
1906
1906
|
modelModifiers: { trim: !0 },
|
|
1907
1907
|
autocomplete: "off",
|
|
1908
1908
|
"data-testid": "vault-form-tags",
|
|
1909
1909
|
help: e(a)("form.fields.tags.help"),
|
|
1910
1910
|
label: e(a)("form.fields.tags.label"),
|
|
1911
1911
|
placeholder: e(a)("form.fields.tags.placeholder"),
|
|
1912
|
-
readonly:
|
|
1912
|
+
readonly: s.isReadonly,
|
|
1913
1913
|
type: "text"
|
|
1914
1914
|
}, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])
|
|
1915
1915
|
]),
|
|
@@ -1948,23 +1948,23 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1948
1948
|
},
|
|
1949
1949
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1950
1950
|
setup(l) {
|
|
1951
|
-
const S = l, d = w(() => {
|
|
1952
|
-
var
|
|
1953
|
-
return (
|
|
1954
|
-
}), { i18n: { t:
|
|
1951
|
+
const S = l, d = ["token", "approle_secret_id", "api_key"], c = w(() => {
|
|
1952
|
+
var s, g;
|
|
1953
|
+
return (g = pe.form[(s = S.config) == null ? void 0 : s.app]) == null ? void 0 : g.edit;
|
|
1954
|
+
}), { i18n: { t: p } } = ye.useI18n(), { convertKeyToTitle: a } = vt(), { getPropValue: K } = gt(), I = $({
|
|
1955
1955
|
id: {},
|
|
1956
1956
|
name: {
|
|
1957
|
-
label:
|
|
1957
|
+
label: p("labels.vault_type")
|
|
1958
1958
|
},
|
|
1959
1959
|
updated_at: {},
|
|
1960
1960
|
created_at: {},
|
|
1961
1961
|
prefix: {
|
|
1962
1962
|
order: 5,
|
|
1963
|
-
section:
|
|
1963
|
+
section: Ne.Basic
|
|
1964
1964
|
},
|
|
1965
1965
|
description: {
|
|
1966
1966
|
order: 6,
|
|
1967
|
-
section:
|
|
1967
|
+
section: Ne.Basic
|
|
1968
1968
|
},
|
|
1969
1969
|
tags: {
|
|
1970
1970
|
order: 7
|
|
@@ -1973,30 +1973,30 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
1973
1973
|
order: 8,
|
|
1974
1974
|
type: Se.Json
|
|
1975
1975
|
}
|
|
1976
|
-
}),
|
|
1977
|
-
var
|
|
1978
|
-
return ((
|
|
1976
|
+
}), _ = (s) => {
|
|
1977
|
+
var g, u;
|
|
1978
|
+
return ((u = (g = I.value) == null ? void 0 : g[s]) == null ? void 0 : u.label) || a(s);
|
|
1979
1979
|
};
|
|
1980
|
-
return (
|
|
1981
|
-
|
|
1980
|
+
return (s, g) => (V(), B("div", tl, [
|
|
1981
|
+
f(e(bt), {
|
|
1982
1982
|
config: l.config,
|
|
1983
1983
|
"config-card-doc": l.configCardDoc,
|
|
1984
|
-
"config-schema":
|
|
1984
|
+
"config-schema": I.value,
|
|
1985
1985
|
"entity-type": e(Ue).Vault,
|
|
1986
|
-
"fetch-url":
|
|
1986
|
+
"fetch-url": c.value,
|
|
1987
1987
|
"hide-title": l.hideTitle,
|
|
1988
|
-
"onFetch:error":
|
|
1989
|
-
"onFetch:success":
|
|
1990
|
-
onLoading:
|
|
1988
|
+
"onFetch:error": g[0] || (g[0] = (u) => s.$emit("fetch:error", u)),
|
|
1989
|
+
"onFetch:success": g[1] || (g[1] = (u) => s.$emit("fetch:success", u)),
|
|
1990
|
+
onLoading: g[2] || (g[2] = (u) => s.$emit("loading", u))
|
|
1991
1991
|
}, {
|
|
1992
|
-
config:
|
|
1993
|
-
(V(!0),
|
|
1994
|
-
key:
|
|
1992
|
+
config: m(({ rowValue: u }) => [
|
|
1993
|
+
(V(!0), B(qe, null, et(Object.keys(u), (N) => (V(), D(e(_t), {
|
|
1994
|
+
key: N,
|
|
1995
1995
|
item: {
|
|
1996
|
-
key:
|
|
1997
|
-
value: e(
|
|
1998
|
-
label:
|
|
1999
|
-
type:
|
|
1996
|
+
key: N,
|
|
1997
|
+
value: e(K)(N, u),
|
|
1998
|
+
label: _(N),
|
|
1999
|
+
type: d.includes(N) ? e(Se).Redacted : e(Se).Text
|
|
2000
2000
|
}
|
|
2001
2001
|
}, null, 8, ["item"]))), 128))
|
|
2002
2002
|
]),
|
|
@@ -2059,28 +2059,28 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2059
2059
|
emits: ["error", "delete:success"],
|
|
2060
2060
|
setup(l, { emit: S }) {
|
|
2061
2061
|
var ie;
|
|
2062
|
-
const d = S, c = l, { i18n: { t: p, formatUnixTimeStamp: a } } = ye.useI18n(), { axiosInstance:
|
|
2062
|
+
const d = S, c = l, { i18n: { t: p, formatUnixTimeStamp: a } } = ye.useI18n(), { axiosInstance: K } = _e((ie = c.config) == null ? void 0 : ie.axiosRequestConfig), _ = {
|
|
2063
2063
|
// the Secret Key column is non-hidable
|
|
2064
2064
|
key: { label: p("secrets.list.table_headers.key"), sortable: !1, hidable: !1 },
|
|
2065
2065
|
updated_at: { label: p("secrets.list.table_headers.updated_at"), sortable: !1 }
|
|
2066
|
-
},
|
|
2066
|
+
}, s = (U) => ({
|
|
2067
2067
|
"data-testid": U.key
|
|
2068
|
-
}),
|
|
2068
|
+
}), g = w(() => {
|
|
2069
2069
|
var U;
|
|
2070
2070
|
return `${c.config.apiBaseUrl}${be.list[c.config.app]}`.replace(/{controlPlaneId}/gi, ((U = c.config) == null ? void 0 : U.controlPlaneId) || "").replace(/{id}/gi, c.configStoreId || "");
|
|
2071
|
-
}),
|
|
2071
|
+
}), u = $(""), N = {
|
|
2072
2072
|
isExactMatch: !0,
|
|
2073
2073
|
placeholder: p("search.placeholder_for_secrets.konnect")
|
|
2074
2074
|
}, {
|
|
2075
2075
|
fetcher: X,
|
|
2076
2076
|
fetcherState: Q,
|
|
2077
2077
|
fetcherCacheKey: Y
|
|
2078
|
-
} = De(w(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })),
|
|
2079
|
-
|
|
2078
|
+
} = De(w(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), g), O = () => {
|
|
2079
|
+
u.value = "";
|
|
2080
2080
|
}, o = $(null), ae = (U) => ({
|
|
2081
2081
|
label: p("actions.edit"),
|
|
2082
2082
|
to: c.config.getEditRoute(U)
|
|
2083
|
-
}), G = $(void 0), ee = $(!1), J = $(!1), y = $(""), F = We(c.config,
|
|
2083
|
+
}), G = $(void 0), ee = $(!1), J = $(!1), y = $(""), F = We(c.config, g.value), re = (U) => {
|
|
2084
2084
|
G.value = U, ee.value = !0;
|
|
2085
2085
|
}, ne = () => {
|
|
2086
2086
|
ee.value = !1;
|
|
@@ -2089,70 +2089,70 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2089
2089
|
if ((U = G.value) != null && U.key) {
|
|
2090
2090
|
J.value = !0;
|
|
2091
2091
|
try {
|
|
2092
|
-
await
|
|
2093
|
-
} catch (
|
|
2094
|
-
y.value = ((te = (Z =
|
|
2092
|
+
await K.delete(F(G.value.key)), J.value = !1, ee.value = !1, Y.value++, d("delete:success", G.value);
|
|
2093
|
+
} catch (b) {
|
|
2094
|
+
y.value = ((te = (Z = b.response) == null ? void 0 : Z.data) == null ? void 0 : te.message) || b.message || p("errors.delete"), d("error", b);
|
|
2095
2095
|
} finally {
|
|
2096
2096
|
J.value = !1;
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
};
|
|
2100
2100
|
ke(Q, (U) => {
|
|
2101
|
-
var Z, te,
|
|
2101
|
+
var Z, te, b;
|
|
2102
2102
|
if (U.status === Be.Error) {
|
|
2103
2103
|
o.value = {
|
|
2104
2104
|
title: p("errors.general")
|
|
2105
|
-
}, (
|
|
2105
|
+
}, (b = (te = (Z = U.error) == null ? void 0 : Z.response) == null ? void 0 : te.data) != null && b.message && (o.value.message = U.error.response.data.message), d("error", U.error);
|
|
2106
2106
|
return;
|
|
2107
2107
|
}
|
|
2108
2108
|
o.value = null;
|
|
2109
2109
|
});
|
|
2110
|
-
const
|
|
2110
|
+
const q = $({
|
|
2111
2111
|
ctaPath: c.config.createRoute,
|
|
2112
2112
|
ctaText: void 0,
|
|
2113
2113
|
message: `${p("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
2114
2114
|
title: p("secrets.title")
|
|
2115
2115
|
});
|
|
2116
2116
|
return we(async () => {
|
|
2117
|
-
await c.canCreate() && (
|
|
2117
|
+
await c.canCreate() && (q.value.title = p("secrets.list.empty_state.title"), q.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
|
|
2118
2118
|
}), (U, Z) => {
|
|
2119
|
-
const te =
|
|
2120
|
-
return V(),
|
|
2121
|
-
|
|
2119
|
+
const te = L("KButton"), b = L("KDropdownItem");
|
|
2120
|
+
return V(), B(qe, null, [
|
|
2121
|
+
f(e(Le), {
|
|
2122
2122
|
"cache-identifier": l.cacheIdentifier,
|
|
2123
2123
|
"disable-sorting": "",
|
|
2124
|
-
"empty-state-options":
|
|
2124
|
+
"empty-state-options": q.value,
|
|
2125
2125
|
"enable-entity-actions": "",
|
|
2126
2126
|
"error-message": o.value,
|
|
2127
2127
|
fetcher: e(X),
|
|
2128
2128
|
"fetcher-cache-key": e(Y),
|
|
2129
2129
|
"pagination-type": "offset",
|
|
2130
2130
|
"preferences-storage-key": "kong-ui-entities-secrets-list",
|
|
2131
|
-
query:
|
|
2132
|
-
"row-attributes":
|
|
2133
|
-
"table-headers": e(
|
|
2134
|
-
onClearSearchInput:
|
|
2131
|
+
query: u.value,
|
|
2132
|
+
"row-attributes": s,
|
|
2133
|
+
"table-headers": e(_),
|
|
2134
|
+
onClearSearchInput: O
|
|
2135
2135
|
}, {
|
|
2136
|
-
"toolbar-filter":
|
|
2137
|
-
|
|
2138
|
-
modelValue:
|
|
2139
|
-
"onUpdate:modelValue": Z[0] || (Z[0] = (
|
|
2140
|
-
config:
|
|
2136
|
+
"toolbar-filter": m(() => [
|
|
2137
|
+
f(e(ze), {
|
|
2138
|
+
modelValue: u.value,
|
|
2139
|
+
"onUpdate:modelValue": Z[0] || (Z[0] = (v) => u.value = v),
|
|
2140
|
+
config: N
|
|
2141
2141
|
}, null, 8, ["modelValue"])
|
|
2142
2142
|
]),
|
|
2143
|
-
"toolbar-button":
|
|
2144
|
-
|
|
2143
|
+
"toolbar-button": m(() => [
|
|
2144
|
+
f(e(ge), {
|
|
2145
2145
|
"auth-function": () => l.canCreate()
|
|
2146
2146
|
}, {
|
|
2147
|
-
default:
|
|
2148
|
-
|
|
2147
|
+
default: m(() => [
|
|
2148
|
+
f(te, {
|
|
2149
2149
|
appearance: "primary",
|
|
2150
2150
|
"data-testid": "toolbar-add-secret",
|
|
2151
2151
|
size: "large",
|
|
2152
2152
|
to: l.config.createRoute
|
|
2153
2153
|
}, {
|
|
2154
|
-
default:
|
|
2155
|
-
|
|
2154
|
+
default: m(() => [
|
|
2155
|
+
f(e(Re)),
|
|
2156
2156
|
de(" " + T(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
|
|
2157
2157
|
]),
|
|
2158
2158
|
_: 1
|
|
@@ -2161,37 +2161,37 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2161
2161
|
_: 1
|
|
2162
2162
|
}, 8, ["auth-function"])
|
|
2163
2163
|
]),
|
|
2164
|
-
key:
|
|
2165
|
-
|
|
2166
|
-
|
|
2164
|
+
key: m(({ rowValue: v }) => [
|
|
2165
|
+
x("div", ll, [
|
|
2166
|
+
x("b", null, T(v ?? "-"), 1)
|
|
2167
2167
|
])
|
|
2168
2168
|
]),
|
|
2169
|
-
updated_at:
|
|
2170
|
-
|
|
2169
|
+
updated_at: m(({ rowValue: v }) => [
|
|
2170
|
+
x("span", null, T(v ? e(a)(new Date(v).getTime() / 1e3) : "-"), 1)
|
|
2171
2171
|
]),
|
|
2172
|
-
actions:
|
|
2173
|
-
|
|
2174
|
-
"auth-function": () => l.canEdit(
|
|
2172
|
+
actions: m(({ row: v }) => [
|
|
2173
|
+
f(e(ge), {
|
|
2174
|
+
"auth-function": () => l.canEdit(v)
|
|
2175
2175
|
}, {
|
|
2176
|
-
default:
|
|
2177
|
-
|
|
2176
|
+
default: m(() => [
|
|
2177
|
+
f(b, {
|
|
2178
2178
|
"data-testid": "action-entity-edit",
|
|
2179
|
-
item: ae(
|
|
2179
|
+
item: ae(v.key)
|
|
2180
2180
|
}, null, 8, ["item"])
|
|
2181
2181
|
]),
|
|
2182
2182
|
_: 2
|
|
2183
2183
|
}, 1032, ["auth-function"]),
|
|
2184
|
-
|
|
2185
|
-
"auth-function": () => l.canDelete(
|
|
2184
|
+
f(e(ge), {
|
|
2185
|
+
"auth-function": () => l.canDelete(v)
|
|
2186
2186
|
}, {
|
|
2187
|
-
default:
|
|
2188
|
-
|
|
2187
|
+
default: m(() => [
|
|
2188
|
+
f(b, {
|
|
2189
2189
|
danger: "",
|
|
2190
2190
|
"data-testid": "action-entity-delete",
|
|
2191
2191
|
"has-divider": "",
|
|
2192
|
-
onClick: (
|
|
2192
|
+
onClick: (P) => re(v)
|
|
2193
2193
|
}, {
|
|
2194
|
-
default:
|
|
2194
|
+
default: m(() => [
|
|
2195
2195
|
de(T(e(p)("actions.delete")), 1)
|
|
2196
2196
|
]),
|
|
2197
2197
|
_: 2
|
|
@@ -2202,7 +2202,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2202
2202
|
]),
|
|
2203
2203
|
_: 1
|
|
2204
2204
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
2205
|
-
|
|
2205
|
+
f(e(Ge), {
|
|
2206
2206
|
"action-pending": J.value,
|
|
2207
2207
|
description: e(p)("delete.description"),
|
|
2208
2208
|
"entity-name": G.value && G.value.key,
|
|
@@ -2256,29 +2256,29 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2256
2256
|
},
|
|
2257
2257
|
emits: ["error", "delete:success"],
|
|
2258
2258
|
setup(l, { emit: S }) {
|
|
2259
|
-
var
|
|
2260
|
-
const d = S, c = l, p = (
|
|
2261
|
-
d("error",
|
|
2262
|
-
}, a = (
|
|
2263
|
-
d("delete:success",
|
|
2264
|
-
}, { axiosInstance:
|
|
2265
|
-
var
|
|
2266
|
-
return `${c.config.apiBaseUrl}${be.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi, ((
|
|
2259
|
+
var s;
|
|
2260
|
+
const d = S, c = l, p = (g) => {
|
|
2261
|
+
d("error", g);
|
|
2262
|
+
}, a = (g) => {
|
|
2263
|
+
d("delete:success", g);
|
|
2264
|
+
}, { axiosInstance: K } = _e((s = c.config) == null ? void 0 : s.axiosRequestConfig), I = $(""), _ = w(() => {
|
|
2265
|
+
var g;
|
|
2266
|
+
return `${c.config.apiBaseUrl}${be.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi, ((g = c.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{id}/gi, c.vaultId);
|
|
2267
2267
|
});
|
|
2268
2268
|
return we(async () => {
|
|
2269
|
-
var
|
|
2269
|
+
var g;
|
|
2270
2270
|
try {
|
|
2271
|
-
const { data:
|
|
2272
|
-
|
|
2273
|
-
} catch (
|
|
2274
|
-
d("error",
|
|
2271
|
+
const { data: u } = await K.get(_.value);
|
|
2272
|
+
I.value = (g = u == null ? void 0 : u.config) == null ? void 0 : g.config_store_id;
|
|
2273
|
+
} catch (u) {
|
|
2274
|
+
d("error", u);
|
|
2275
2275
|
}
|
|
2276
|
-
}), (
|
|
2277
|
-
|
|
2278
|
-
"config-store-id":
|
|
2276
|
+
}), (g, u) => (V(), B("div", rl, [
|
|
2277
|
+
I.value ? (V(), D(al, je({ key: 0 }, c, {
|
|
2278
|
+
"config-store-id": I.value,
|
|
2279
2279
|
"onDelete:success": a,
|
|
2280
2280
|
onError: p
|
|
2281
|
-
}), null, 16, ["config-store-id"])) :
|
|
2281
|
+
}), null, 16, ["config-store-id"])) : W("", !0)
|
|
2282
2282
|
]));
|
|
2283
2283
|
}
|
|
2284
2284
|
}), Tl = /* @__PURE__ */ me(il, [["__scopeId", "data-v-f5aa5636"]]), nl = /* @__PURE__ */ ue({
|
|
@@ -2306,76 +2306,76 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2306
2306
|
emits: ["update", "error", "loading"],
|
|
2307
2307
|
setup(l, { emit: S }) {
|
|
2308
2308
|
var J;
|
|
2309
|
-
const d = l, c = S, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance:
|
|
2309
|
+
const d = l, c = S, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance: K } = _e((J = d.config) == null ? void 0 : J.axiosRequestConfig), { getMessageFromError: I } = Ze(), _ = he({
|
|
2310
2310
|
fields: {
|
|
2311
2311
|
key: "",
|
|
2312
2312
|
value: ""
|
|
2313
2313
|
},
|
|
2314
2314
|
readonly: !1,
|
|
2315
2315
|
errorMessage: ""
|
|
2316
|
-
}),
|
|
2316
|
+
}), s = he({
|
|
2317
2317
|
key: "",
|
|
2318
2318
|
value: ""
|
|
2319
|
-
}),
|
|
2319
|
+
}), g = w(
|
|
2320
2320
|
() => {
|
|
2321
2321
|
var y, F;
|
|
2322
2322
|
return (F = be.form[(y = d.config) == null ? void 0 : y.app]) == null ? void 0 : F.edit.replace(/{id}/gi, d.configStoreId).replace(/{secretId}/gi, d.secretId);
|
|
2323
2323
|
}
|
|
2324
|
-
),
|
|
2324
|
+
), u = () => {
|
|
2325
2325
|
var y;
|
|
2326
2326
|
a.push(((y = d.config) == null ? void 0 : y.cancelRoute) || { name: "secret-list" });
|
|
2327
|
-
},
|
|
2327
|
+
}, N = (y) => {
|
|
2328
2328
|
c("loading", y);
|
|
2329
2329
|
}, X = (y) => {
|
|
2330
2330
|
c("error", y);
|
|
2331
2331
|
}, Q = (y) => {
|
|
2332
2332
|
var F, re;
|
|
2333
|
-
|
|
2334
|
-
}, Y = w(() => d.secretId ? Ve.Edit : Ve.Create),
|
|
2333
|
+
_.fields.key = ((F = y == null ? void 0 : y.item) == null ? void 0 : F.key) || (y == null ? void 0 : y.key) || "", _.fields.value = ((re = y == null ? void 0 : y.item) == null ? void 0 : re.value) || (y == null ? void 0 : y.value) || "", Object.assign(s, _.fields);
|
|
2334
|
+
}, Y = w(() => d.secretId ? Ve.Edit : Ve.Create), O = w(() => {
|
|
2335
2335
|
var y;
|
|
2336
2336
|
return `${d.config.apiBaseUrl}${be.form[d.config.app][Y.value]}`.replace(/{controlPlaneId}/gi, ((y = d.config) == null ? void 0 : y.controlPlaneId) || "").replace(/{id}/gi, d.configStoreId).replace(/{secretId}/gi, d.secretId);
|
|
2337
|
-
}), o = w(() => !!
|
|
2338
|
-
key:
|
|
2339
|
-
value:
|
|
2337
|
+
}), o = w(() => !!_.fields.key && !!_.fields.value), ae = w(() => JSON.stringify(_.fields) !== JSON.stringify(s)), G = w(() => ({
|
|
2338
|
+
key: _.fields.key,
|
|
2339
|
+
value: _.fields.value
|
|
2340
2340
|
})), ee = async () => {
|
|
2341
2341
|
try {
|
|
2342
|
-
|
|
2342
|
+
_.readonly = !0;
|
|
2343
2343
|
let y;
|
|
2344
|
-
Y.value === "create" ? y = await
|
|
2344
|
+
Y.value === "create" ? y = await K.post(O.value, G.value) : Y.value === "edit" && (y = await K.put(O.value, G.value)), Q(y == null ? void 0 : y.data), c("update", y == null ? void 0 : y.data);
|
|
2345
2345
|
} catch (y) {
|
|
2346
|
-
|
|
2346
|
+
_.errorMessage = I(y), c("error", y);
|
|
2347
2347
|
} finally {
|
|
2348
|
-
|
|
2348
|
+
_.readonly = !1;
|
|
2349
2349
|
}
|
|
2350
2350
|
};
|
|
2351
2351
|
return (y, F) => {
|
|
2352
|
-
const re =
|
|
2353
|
-
return V(),
|
|
2352
|
+
const re = L("KInput"), ne = L("KTextArea"), le = L("KAlert");
|
|
2353
|
+
return V(), D(e(Qe), {
|
|
2354
2354
|
"can-submit": o.value && ae.value,
|
|
2355
2355
|
config: l.config,
|
|
2356
2356
|
"edit-id": l.secretId,
|
|
2357
2357
|
"entity-type": e(Ue).Other,
|
|
2358
|
-
"error-message":
|
|
2359
|
-
"fetch-url":
|
|
2358
|
+
"error-message": _.errorMessage,
|
|
2359
|
+
"fetch-url": g.value,
|
|
2360
2360
|
"form-fields": G.value,
|
|
2361
|
-
"is-readonly":
|
|
2362
|
-
onCancel:
|
|
2361
|
+
"is-readonly": _.readonly,
|
|
2362
|
+
onCancel: u,
|
|
2363
2363
|
"onFetch:error": X,
|
|
2364
2364
|
"onFetch:success": Q,
|
|
2365
|
-
onLoading:
|
|
2365
|
+
onLoading: N,
|
|
2366
2366
|
onSubmit: ee
|
|
2367
2367
|
}, {
|
|
2368
|
-
default:
|
|
2369
|
-
|
|
2370
|
-
|
|
2368
|
+
default: m(() => [
|
|
2369
|
+
x("div", null, [
|
|
2370
|
+
f(e(Ee), {
|
|
2371
2371
|
description: e(p)("secrets.form.info.description"),
|
|
2372
2372
|
"has-divider": "",
|
|
2373
2373
|
title: e(p)("secrets.form.info.title")
|
|
2374
2374
|
}, {
|
|
2375
|
-
default:
|
|
2376
|
-
|
|
2377
|
-
modelValue:
|
|
2378
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
2375
|
+
default: m(() => [
|
|
2376
|
+
f(re, {
|
|
2377
|
+
modelValue: _.fields.key,
|
|
2378
|
+
"onUpdate:modelValue": F[0] || (F[0] = (q) => _.fields.key = q),
|
|
2379
2379
|
modelModifiers: { trim: !0 },
|
|
2380
2380
|
autocomplete: "off",
|
|
2381
2381
|
class: "key-field",
|
|
@@ -2383,24 +2383,24 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2383
2383
|
disabled: Y.value === e(Ve).Edit,
|
|
2384
2384
|
label: e(p)("secrets.form.fields.key.label"),
|
|
2385
2385
|
placeholder: e(p)("secrets.form.fields.key.placeholder"),
|
|
2386
|
-
readonly:
|
|
2386
|
+
readonly: _.readonly,
|
|
2387
2387
|
required: "",
|
|
2388
2388
|
type: "text"
|
|
2389
2389
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2390
|
-
|
|
2391
|
-
modelValue:
|
|
2392
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
2390
|
+
f(ne, {
|
|
2391
|
+
modelValue: _.fields.value,
|
|
2392
|
+
"onUpdate:modelValue": F[1] || (F[1] = (q) => _.fields.value = q),
|
|
2393
2393
|
modelModifiers: { trim: !0 },
|
|
2394
2394
|
autocomplete: "off",
|
|
2395
2395
|
"data-testid": "secret-form-value",
|
|
2396
2396
|
label: e(p)("secrets.form.fields.value.label"),
|
|
2397
2397
|
placeholder: e(p)("secrets.form.fields.value.placeholder"),
|
|
2398
|
-
readonly:
|
|
2398
|
+
readonly: _.readonly,
|
|
2399
2399
|
required: "",
|
|
2400
2400
|
resizable: "",
|
|
2401
2401
|
type: "text"
|
|
2402
2402
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
2403
|
-
|
|
2403
|
+
f(le, {
|
|
2404
2404
|
appearance: "warning",
|
|
2405
2405
|
message: e(p)("secrets.form.hint")
|
|
2406
2406
|
}, null, 8, ["message"])
|
|
@@ -2436,32 +2436,32 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2436
2436
|
},
|
|
2437
2437
|
emits: ["update", "error", "loading"],
|
|
2438
2438
|
setup(l, { emit: S }) {
|
|
2439
|
-
var
|
|
2440
|
-
const d = l, c = S, p = (
|
|
2441
|
-
c("update",
|
|
2442
|
-
}, a = (
|
|
2443
|
-
c("error",
|
|
2444
|
-
},
|
|
2445
|
-
c("loading",
|
|
2446
|
-
}, { axiosInstance:
|
|
2447
|
-
var
|
|
2448
|
-
return `${d.config.apiBaseUrl}${be.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi, ((
|
|
2439
|
+
var g;
|
|
2440
|
+
const d = l, c = S, p = (u) => {
|
|
2441
|
+
c("update", u);
|
|
2442
|
+
}, a = (u) => {
|
|
2443
|
+
c("error", u);
|
|
2444
|
+
}, K = (u) => {
|
|
2445
|
+
c("loading", u);
|
|
2446
|
+
}, { axiosInstance: I } = _e((g = d.config) == null ? void 0 : g.axiosRequestConfig), _ = $(""), s = w(() => {
|
|
2447
|
+
var u;
|
|
2448
|
+
return `${d.config.apiBaseUrl}${be.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi, ((u = d.config) == null ? void 0 : u.controlPlaneId) || "").replace(/{id}/gi, d.vaultId);
|
|
2449
2449
|
});
|
|
2450
2450
|
return we(async () => {
|
|
2451
|
-
var
|
|
2451
|
+
var u;
|
|
2452
2452
|
try {
|
|
2453
|
-
const { data:
|
|
2454
|
-
|
|
2455
|
-
} catch (
|
|
2456
|
-
c("error",
|
|
2453
|
+
const { data: N } = await I.get(s.value);
|
|
2454
|
+
_.value = (u = N == null ? void 0 : N.config) == null ? void 0 : u.config_store_id;
|
|
2455
|
+
} catch (N) {
|
|
2456
|
+
c("error", N);
|
|
2457
2457
|
}
|
|
2458
|
-
}), (
|
|
2459
|
-
|
|
2460
|
-
"config-store-id":
|
|
2458
|
+
}), (u, N) => (V(), B("div", cl, [
|
|
2459
|
+
_.value ? (V(), D(sl, je({ key: 0 }, d, {
|
|
2460
|
+
"config-store-id": _.value,
|
|
2461
2461
|
onError: a,
|
|
2462
|
-
onLoading:
|
|
2462
|
+
onLoading: K,
|
|
2463
2463
|
onUpdate: p
|
|
2464
|
-
}), null, 16, ["config-store-id"])) :
|
|
2464
|
+
}), null, 16, ["config-store-id"])) : W("", !0)
|
|
2465
2465
|
]));
|
|
2466
2466
|
}
|
|
2467
2467
|
}), $l = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-754ddb2f"]]), ul = {
|
|
@@ -2487,21 +2487,21 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2487
2487
|
},
|
|
2488
2488
|
i18nT: a
|
|
2489
2489
|
} = ye.useI18n();
|
|
2490
|
-
return (
|
|
2490
|
+
return (K, I) => (V(), B("div", ul, [f(e(a), {
|
|
2491
2491
|
keypath: "vault_secret_picker.provider.complete_action",
|
|
2492
2492
|
scope: "global"
|
|
2493
2493
|
}, {
|
|
2494
|
-
cta:
|
|
2494
|
+
cta: m(() => [x("span", {
|
|
2495
2495
|
class: tt({
|
|
2496
2496
|
"vault-secret-picker-provider-action": !0,
|
|
2497
2497
|
disabled: d.disabled
|
|
2498
2498
|
}),
|
|
2499
|
-
onClick:
|
|
2499
|
+
onClick: I[0] || (I[0] = () => !d.disabled && c("open", d.value, d.update))
|
|
2500
2500
|
}, T(e(p)("vault_secret_picker.provider.cta")), 3)]),
|
|
2501
2501
|
_: 1
|
|
2502
2502
|
})]));
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), Kl = /* @__PURE__ */ me(fl, [["__scopeId", "data-v-66a1e406"]]), pl = (l) => {
|
|
2505
2505
|
let S = l.trim();
|
|
2506
2506
|
if (!S.startsWith("{") || !S.endsWith("}"))
|
|
2507
2507
|
throw new Error("Invalid secret reference: must be enclosed in curly braces");
|
|
@@ -2562,13 +2562,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2562
2562
|
var te;
|
|
2563
2563
|
const { i18n: { t: d } } = ye.useI18n(), c = l, p = S, { axiosInstance: a } = _e({
|
|
2564
2564
|
// 404 errors are allowed in this components
|
|
2565
|
-
validateStatus: (
|
|
2565
|
+
validateStatus: (b) => b === 404 || b >= 200 && b < 300,
|
|
2566
2566
|
// Spread the passed-in config later to allow overriding
|
|
2567
2567
|
...(te = c.config) == null ? void 0 : te.axiosRequestConfig
|
|
2568
|
-
}),
|
|
2569
|
-
var
|
|
2570
|
-
return c.config.app === "konnect" ? be.list[c.config.app].replace(/{id}/gi, ((
|
|
2571
|
-
}),
|
|
2568
|
+
}), K = $(!1), I = $(""), _ = $(""), s = $(""), g = $(), u = w(() => {
|
|
2569
|
+
var b, v;
|
|
2570
|
+
return c.config.app === "konnect" ? be.list[c.config.app].replace(/{id}/gi, ((v = (b = g.value) == null ? void 0 : b.config) == null ? void 0 : v.config_store_id) ?? "") : "<not_applicable>";
|
|
2571
|
+
}), N = w(() => {
|
|
2572
2572
|
if (Y && ee)
|
|
2573
2573
|
return d("vault_secret_picker.fetch_error.vaults_and_secrets");
|
|
2574
2574
|
if (Y)
|
|
@@ -2579,9 +2579,9 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2579
2579
|
debouncedQueryChange: X,
|
|
2580
2580
|
loading: Q,
|
|
2581
2581
|
error: Y,
|
|
2582
|
-
loadItems:
|
|
2582
|
+
loadItems: O,
|
|
2583
2583
|
results: o
|
|
2584
|
-
} =
|
|
2584
|
+
} = Fe(c.config, pe.list[c.config.app].getAll, void 0, {
|
|
2585
2585
|
fetchedItemsKey: "data",
|
|
2586
2586
|
searchKeys: ["prefix"]
|
|
2587
2587
|
}), {
|
|
@@ -2590,96 +2590,96 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2590
2590
|
error: ee,
|
|
2591
2591
|
loadItems: J,
|
|
2592
2592
|
results: y
|
|
2593
|
-
} =
|
|
2593
|
+
} = Fe(c.config, u, void 0, {
|
|
2594
2594
|
fetchedItemsKey: "data",
|
|
2595
2595
|
searchKeys: ["key"],
|
|
2596
2596
|
exactMatchKey: "key"
|
|
2597
2597
|
}), F = w(() => {
|
|
2598
|
-
var
|
|
2599
|
-
let
|
|
2600
|
-
const
|
|
2601
|
-
return !
|
|
2602
|
-
label:
|
|
2603
|
-
value:
|
|
2604
|
-
vault:
|
|
2605
|
-
}),
|
|
2598
|
+
var P;
|
|
2599
|
+
let b = !1;
|
|
2600
|
+
const v = ((P = o.value) == null ? void 0 : P.map((H) => (H.prefix === I.value && (b = !0), { label: H.prefix, value: H.prefix, vault: H }))) ?? [];
|
|
2601
|
+
return !b && g.value && v.push({
|
|
2602
|
+
label: g.value.prefix,
|
|
2603
|
+
value: g.value.prefix,
|
|
2604
|
+
vault: g.value
|
|
2605
|
+
}), v;
|
|
2606
2606
|
}), re = w(() => {
|
|
2607
|
-
var
|
|
2608
|
-
let
|
|
2609
|
-
const
|
|
2610
|
-
return !
|
|
2607
|
+
var P;
|
|
2608
|
+
let b = !1;
|
|
2609
|
+
const v = ((P = y.value) == null ? void 0 : P.map((H) => (H.key === _.value && (b = !0), { label: H.key, value: H.key }))) ?? [];
|
|
2610
|
+
return !b && _.value && v.push({ label: _.value, value: _.value }), v;
|
|
2611
2611
|
}), ne = w(() => {
|
|
2612
|
-
var
|
|
2613
|
-
return ((
|
|
2614
|
-
}), le = w(() => !!
|
|
2615
|
-
var
|
|
2616
|
-
let
|
|
2617
|
-
return c.config.app === "konnect" ?
|
|
2618
|
-
}, U = (
|
|
2619
|
-
var
|
|
2620
|
-
return c.config.app !== "konnect" ? "<not_applicable>" : `${c.config.apiBaseUrl}${be.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi, ((
|
|
2612
|
+
var b;
|
|
2613
|
+
return ((b = g == null ? void 0 : g.value) == null ? void 0 : b.name) === "konnect";
|
|
2614
|
+
}), le = w(() => !!g.value && !!_.value && !c.additionalDisabled), q = (b) => b.label ? `${b.label} - (${b.vault.name} - ${b.vault.id})` : b.value, ie = (b) => {
|
|
2615
|
+
var P, H;
|
|
2616
|
+
let v = `${c.config.apiBaseUrl}${pe.form[c.config.app].edit}`;
|
|
2617
|
+
return c.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((P = c.config) == null ? void 0 : P.controlPlaneId) || "") : c.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (H = c.config) != null && H.workspace ? `/${c.config.workspace}` : "")), v.replace(/{id}/gi, b);
|
|
2618
|
+
}, U = (b, v) => {
|
|
2619
|
+
var P;
|
|
2620
|
+
return c.config.app !== "konnect" ? "<not_applicable>" : `${c.config.apiBaseUrl}${be.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi, ((P = c.config) == null ? void 0 : P.controlPlaneId) || "").replace(/{id}/gi, v).replace(/{secretId}/gi, b);
|
|
2621
2621
|
}, Z = () => {
|
|
2622
2622
|
p("proceed", ml({
|
|
2623
|
-
vaultPrefix:
|
|
2624
|
-
secretId:
|
|
2623
|
+
vaultPrefix: I.value,
|
|
2624
|
+
secretId: _.value || void 0,
|
|
2625
2625
|
// Either a non-empty string or undefined
|
|
2626
|
-
optionalSecretKey:
|
|
2626
|
+
optionalSecretKey: s.value || void 0
|
|
2627
2627
|
// Either a non-empty string or undefined
|
|
2628
2628
|
}));
|
|
2629
2629
|
};
|
|
2630
|
-
return ke(() => c.setup, async (
|
|
2631
|
-
if (
|
|
2632
|
-
if (
|
|
2630
|
+
return ke(() => c.setup, async (b) => {
|
|
2631
|
+
if (b !== !1) {
|
|
2632
|
+
if (K.value = !0, I.value = "", g.value = void 0, _.value = "", s.value = "", typeof b == "string" && b.trim().length > 0)
|
|
2633
2633
|
try {
|
|
2634
|
-
let
|
|
2635
|
-
const
|
|
2634
|
+
let v, P = "", H = "", se = "";
|
|
2635
|
+
const j = pl(b), { data: R } = await a.get(ie(j.vaultPrefix));
|
|
2636
2636
|
if (R != null && R.name)
|
|
2637
|
-
if (
|
|
2638
|
-
if (
|
|
2639
|
-
const { data: fe } = await a.get(U(
|
|
2640
|
-
fe.key ===
|
|
2637
|
+
if (v = R, P = j.vaultPrefix, v.name === "konnect") {
|
|
2638
|
+
if (j.secretId) {
|
|
2639
|
+
const { data: fe } = await a.get(U(j.secretId, R.config.config_store_id));
|
|
2640
|
+
fe.key === j.secretId && (H = j.secretId, se = j.optionalSecretKey ?? "");
|
|
2641
2641
|
}
|
|
2642
2642
|
} else
|
|
2643
|
-
H =
|
|
2643
|
+
H = j.secretId ?? "", se = j.optionalSecretKey ?? "";
|
|
2644
2644
|
await lt(() => {
|
|
2645
|
-
|
|
2645
|
+
I.value = P, g.value = v, _.value = H, s.value = se;
|
|
2646
2646
|
});
|
|
2647
|
-
} catch (
|
|
2648
|
-
console.debug(
|
|
2647
|
+
} catch (v) {
|
|
2648
|
+
console.debug(v);
|
|
2649
2649
|
}
|
|
2650
|
-
|
|
2650
|
+
K.value = !1, await O();
|
|
2651
2651
|
}
|
|
2652
|
-
}, { immediate: !0 }), ke(
|
|
2653
|
-
var
|
|
2654
|
-
|
|
2655
|
-
}), ke(
|
|
2652
|
+
}, { immediate: !0 }), ke(I, async (b, v) => {
|
|
2653
|
+
var P;
|
|
2654
|
+
K.value || b === v || (g.value = (P = F.value.find((H) => H.value === b)) == null ? void 0 : P.vault, _.value = "", s.value = "");
|
|
2655
|
+
}), ke(u, async () => {
|
|
2656
2656
|
ne.value && await J();
|
|
2657
|
-
}, { immediate: !0 }), (
|
|
2658
|
-
const
|
|
2659
|
-
return V(), j
|
|
2657
|
+
}, { immediate: !0 }), (b, v) => {
|
|
2658
|
+
const P = L("KEmptyState"), H = L("KSelect"), se = L("KInput"), j = L("KModal");
|
|
2659
|
+
return V(), D(j, {
|
|
2660
2660
|
"action-button-disabled": !le.value,
|
|
2661
2661
|
"action-button-text": l.proceedButtonText || e(d)("vault_secret_picker.actions.use_key"),
|
|
2662
2662
|
class: "vault-secret-picker",
|
|
2663
2663
|
"data-testid": "vault-secret-picker-modal",
|
|
2664
2664
|
title: l.title || e(d)("vault_secret_picker.title"),
|
|
2665
2665
|
visible: c.setup !== !1,
|
|
2666
|
-
onCancel:
|
|
2666
|
+
onCancel: v[4] || (v[4] = () => p("cancel")),
|
|
2667
2667
|
onProceed: Z
|
|
2668
2668
|
}, {
|
|
2669
|
-
default:
|
|
2670
|
-
e(Y) || e(ee) ? (V(),
|
|
2669
|
+
default: m(() => [
|
|
2670
|
+
e(Y) || e(ee) ? (V(), D(P, {
|
|
2671
2671
|
key: 0,
|
|
2672
2672
|
"data-testid": "vault-secret-picker-fetch-error",
|
|
2673
2673
|
"icon-variant": "error",
|
|
2674
|
-
message:
|
|
2675
|
-
}, null, 8, ["message"])) : (V(),
|
|
2676
|
-
ot(
|
|
2677
|
-
|
|
2678
|
-
modelValue:
|
|
2679
|
-
"onUpdate:modelValue":
|
|
2674
|
+
message: N.value
|
|
2675
|
+
}, null, 8, ["message"])) : (V(), B("div", vl, [
|
|
2676
|
+
ot(b.$slots, "form-prefix", {}, void 0, !0),
|
|
2677
|
+
f(H, {
|
|
2678
|
+
modelValue: I.value,
|
|
2679
|
+
"onUpdate:modelValue": v[0] || (v[0] = (R) => I.value = R),
|
|
2680
2680
|
clearable: "",
|
|
2681
2681
|
"data-testid": "vault-secret-picker-vault-select",
|
|
2682
|
-
disabled:
|
|
2682
|
+
disabled: K.value,
|
|
2683
2683
|
"enable-filtering": "",
|
|
2684
2684
|
"filter-function": () => !0,
|
|
2685
2685
|
items: F.value,
|
|
@@ -2692,31 +2692,31 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2692
2692
|
width: "100%",
|
|
2693
2693
|
onQueryChange: e(X)
|
|
2694
2694
|
}, {
|
|
2695
|
-
loading:
|
|
2696
|
-
|
|
2695
|
+
loading: m(() => [
|
|
2696
|
+
x("div", null, T(e(d)("actions.loading")), 1)
|
|
2697
2697
|
]),
|
|
2698
|
-
empty:
|
|
2699
|
-
|
|
2698
|
+
empty: m(() => [
|
|
2699
|
+
x("div", gl, T(e(d)("vault_secret_picker.no_results")), 1)
|
|
2700
2700
|
]),
|
|
2701
|
-
"selected-item-template":
|
|
2702
|
-
|
|
2701
|
+
"selected-item-template": m(({ item: R }) => [
|
|
2702
|
+
x("span", bl, T(q(R)), 1)
|
|
2703
2703
|
]),
|
|
2704
|
-
"item-template":
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2704
|
+
"item-template": m(({ item: R }) => [
|
|
2705
|
+
x("div", _l, [
|
|
2706
|
+
x("span", yl, T(R.label), 1),
|
|
2707
|
+
x("span", hl, T(R.vault.name), 1),
|
|
2708
|
+
x("span", Vl, T(R.vault.id), 1)
|
|
2709
2709
|
])
|
|
2710
2710
|
]),
|
|
2711
2711
|
_: 1
|
|
2712
2712
|
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"]),
|
|
2713
|
-
ne.value ? (V(),
|
|
2713
|
+
ne.value ? (V(), D(H, {
|
|
2714
2714
|
key: 0,
|
|
2715
|
-
modelValue:
|
|
2716
|
-
"onUpdate:modelValue":
|
|
2715
|
+
modelValue: _.value,
|
|
2716
|
+
"onUpdate:modelValue": v[1] || (v[1] = (R) => _.value = R),
|
|
2717
2717
|
clearable: "",
|
|
2718
2718
|
"data-testid": "vault-secret-picker-secret-id-select",
|
|
2719
|
-
disabled:
|
|
2719
|
+
disabled: K.value || !g.value,
|
|
2720
2720
|
"enable-filtering": "",
|
|
2721
2721
|
"filter-function": () => !0,
|
|
2722
2722
|
items: re.value,
|
|
@@ -2729,33 +2729,33 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2729
2729
|
width: "100%",
|
|
2730
2730
|
onQueryChange: e(ae)
|
|
2731
2731
|
}, {
|
|
2732
|
-
loading:
|
|
2733
|
-
|
|
2732
|
+
loading: m(() => [
|
|
2733
|
+
x("div", null, T(e(d)("actions.loading")), 1)
|
|
2734
2734
|
]),
|
|
2735
|
-
empty:
|
|
2736
|
-
|
|
2735
|
+
empty: m(() => [
|
|
2736
|
+
x("div", kl, T(e(d)("vault_secret_picker.no_results")), 1)
|
|
2737
2737
|
]),
|
|
2738
2738
|
_: 1
|
|
2739
|
-
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (V(),
|
|
2739
|
+
}, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (V(), D(se, {
|
|
2740
2740
|
key: 1,
|
|
2741
|
-
modelValue:
|
|
2742
|
-
"onUpdate:modelValue":
|
|
2741
|
+
modelValue: _.value,
|
|
2742
|
+
"onUpdate:modelValue": v[2] || (v[2] = (R) => _.value = R),
|
|
2743
2743
|
modelModifiers: { trim: !0 },
|
|
2744
2744
|
autocomplete: "off",
|
|
2745
2745
|
"data-testid": "vault-secret-picker-secret-id-input",
|
|
2746
|
-
disabled:
|
|
2746
|
+
disabled: K.value || !g.value,
|
|
2747
2747
|
label: e(d)("vault_secret_picker.secret_id.label"),
|
|
2748
2748
|
placeholder: e(d)("vault_secret_picker.secret_id.input_placeholder"),
|
|
2749
2749
|
required: "",
|
|
2750
2750
|
type: "text"
|
|
2751
2751
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder"])),
|
|
2752
|
-
|
|
2753
|
-
modelValue:
|
|
2754
|
-
"onUpdate:modelValue":
|
|
2752
|
+
f(se, {
|
|
2753
|
+
modelValue: s.value,
|
|
2754
|
+
"onUpdate:modelValue": v[3] || (v[3] = (R) => s.value = R),
|
|
2755
2755
|
modelModifiers: { trim: !0 },
|
|
2756
2756
|
autocomplete: "off",
|
|
2757
2757
|
"data-testid": "vault-secret-picker-secret-key-input",
|
|
2758
|
-
disabled:
|
|
2758
|
+
disabled: K.value || !g.value,
|
|
2759
2759
|
help: e(d)("vault_secret_picker.optional_secret_key.help"),
|
|
2760
2760
|
label: e(d)("vault_secret_picker.optional_secret_key.label"),
|
|
2761
2761
|
placeholder: e(d)("vault_secret_picker.optional_secret_key.placeholder"),
|
|
@@ -2767,7 +2767,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-p
|
|
|
2767
2767
|
}, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
|
|
2768
2768
|
};
|
|
2769
2769
|
}
|
|
2770
|
-
}),
|
|
2770
|
+
}), Pl = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-9ee12676"]]);
|
|
2771
2771
|
export {
|
|
2772
2772
|
$l as SecretForm,
|
|
2773
2773
|
Tl as SecretList,
|
|
@@ -2776,8 +2776,8 @@ export {
|
|
|
2776
2776
|
Al as VaultForm,
|
|
2777
2777
|
El as VaultList,
|
|
2778
2778
|
t as VaultProviders,
|
|
2779
|
-
|
|
2780
|
-
|
|
2779
|
+
Pl as VaultSecretPicker,
|
|
2780
|
+
Kl as VaultSecretPickerProvider,
|
|
2781
2781
|
be as secretsEndpoints,
|
|
2782
2782
|
pe as vaultsEndpoints
|
|
2783
2783
|
};
|