Skip to content

Commit

Permalink
merge: #2864
Browse files Browse the repository at this point in the history
2864: feat: implement symmetric encryption for secrets & keys r=fnichol a=fnichol

<img src="https://media1.giphy.com/media/xYEYXCt93QZTP5adXQ/giphy.gif"/>

Co-authored-by: Victor Bustamante <[email protected]>
Co-authored-by: Fletcher Nichol <[email protected]>
  • Loading branch information
3 people authored Oct 16, 2023
2 parents 6434993 + d49344d commit 9a2a4b9
Show file tree
Hide file tree
Showing 76 changed files with 1,426 additions and 644 deletions.
75 changes: 73 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ members = [
"lib/object-tree",
"lib/pinga-server",
"lib/sdf-server",
"lib/si-crypto",
"lib/si-data-nats",
"lib/si-data-pg",
"lib/si-hash",
"lib/si-pkg",
"lib/si-settings",
"lib/si-std",
Expand All @@ -52,6 +54,7 @@ blake3 = "1.3.3"
bytes = "1.4.0"
chrono = { version = "0.4.24", features = ["serde"] }
clap = { version = "4.2.7", features = ["derive", "color", "env", "wrap_help"] }
ciborium = "0.2.1"
color-eyre = "0.6.2"
colored = "2.0.4"
comfy-table = { version = "7.0.1", features = ["crossterm", "tty", "custom_styling"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@
<i class="text-xs text-neutral-500">
by {{ secret.createdInfo?.actor?.label || "UNDEF" }}
</i>
<VButton
<!-- Disabled until delete gets reimplemented on the backend -->
<!--VButton
:disabled="secretsStore.secretIsTransitioning[secret.id]"
class="ml-2"
size="xs"
tone="neutral"
icon="x-circle"
@click="secretsStore.DELETE_SECRET(secret.id)"
/>
/-->
</li>
</ul>
</li>
Expand Down Expand Up @@ -72,7 +73,7 @@

<script lang="ts" setup>
import { computed, ref } from "vue";
import { ResizablePanel, VButton, VormInput } from "@si/vue-lib/design-system";
import { ResizablePanel, VormInput } from "@si/vue-lib/design-system";
import * as _ from "lodash-es";
import { useFeatureFlagsStore } from "@/store/feature_flags.store";
import SidebarSubpanelTitle from "@/components/SidebarSubpanelTitle.vue";
Expand Down
1 change: 1 addition & 0 deletions app/web/src/store/secrets.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function useSecretsStore() {
defineStore("secrets", {
state: () => ({
secretDefinitionByDefinitionId: {} as SecretsDefinitionHashMap,
// Stores whether a request is running on a secret. Previously used to disable the delete button temporarily
secretIsTransitioning: {} as Record<SecretId, boolean>,
publicKey: null as PublicKey | null,
}),
Expand Down
1 change: 1 addition & 0 deletions bin/pinga/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ rust_binary(
srcs = glob(["src/**/*.rs"]),
resources = {
"dev.encryption.key": "//lib/cyclone-server:dev.encryption.key",
"dev.donkey.key": "//lib/dal:dev.donkey.key",
},
)

Expand Down
1 change: 1 addition & 0 deletions bin/sdf/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rust_binary(
"dev.jwt_signing_public_key.pem": "//config/keys:dev.jwt_signing_public_key.pem",
"prod.jwt_signing_public_key.pem": "//config/keys:prod.jwt_signing_public_key.pem",
"dev.encryption.key": "//lib/cyclone-server:dev.encryption.key",
"dev.donkey.key": "//lib/dal:dev.donkey.key",
"pkgs_path": "//pkgs:pkgs",
},
)
Expand Down
Loading

0 comments on commit 9a2a4b9

Please sign in to comment.