Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: validate images from registry via Pepr (impl) #1262

Merged
merged 36 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
873d366
wip: saving progress
btlghrants Oct 11, 2024
f4905ac
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 11, 2024
10c2012
wip: saving progress
btlghrants Oct 16, 2024
2f76618
wip: can sign/verify via CLI
btlghrants Oct 17, 2024
a93aaad
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 17, 2024
3e79903
wip: rm unneeded files
btlghrants Oct 17, 2024
4c0a3d0
fix: properly closes d/l'd cosign
btlghrants Oct 17, 2024
e22f471
wip: format
btlghrants Oct 17, 2024
09123b8
wip: can gen sigstore bundle
btlghrants Oct 21, 2024
638b579
wip: can fail at calling verify; now to figure out how to use real si…
btlghrants Oct 21, 2024
cfa7043
wip: saving progress
btlghrants Oct 23, 2024
886891a
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 23, 2024
0f66cb6
chore: merge main
btlghrants Oct 23, 2024
fec98f1
wip: saving progress
btlghrants Oct 23, 2024
0c5fba0
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 23, 2024
1bc758e
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 24, 2024
f831bb6
wip: saving progress
btlghrants Oct 25, 2024
009f300
wip: saving progress
btlghrants Oct 26, 2024
e18d551
wip: saving progress
btlghrants Oct 26, 2024
308c58c
wip: saving progress
btlghrants Oct 26, 2024
6814ecf
wip: saving progress
btlghrants Oct 27, 2024
e8720f5
wip: saving progress
btlghrants Oct 28, 2024
e22ad76
wip: saving progress
btlghrants Oct 28, 2024
a0beb4f
wip: saving progress
btlghrants Oct 28, 2024
ecda5e6
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 28, 2024
7518e77
wip: saving progress
btlghrants Oct 29, 2024
d18c355
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 29, 2024
643815a
wip: saving progress
btlghrants Oct 29, 2024
81d49b8
wip: saving progress
btlghrants Oct 29, 2024
1d55390
wip: saving progress
btlghrants Oct 30, 2024
c927400
wip: saving progress
btlghrants Oct 30, 2024
ddd6e0a
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 30, 2024
3edbc02
wip: saving progress
btlghrants Oct 30, 2024
910af12
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
btlghrants Oct 30, 2024
7125d89
wip: saving progress
btlghrants Oct 31, 2024
f28aeff
Merge branch 'main' into 1240_spike_img_sigs_from_reg_impl
cmwylie19 Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,010 changes: 622 additions & 388 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@
"@types/ramda": "0.30.2",
"express": "4.21.1",
"fast-json-patch": "3.1.1",
"follow-redirects": "1.15.9",
"http-status-codes": "^2.3.0",
"json-pointer": "^0.6.2",
"kubernetes-fluent-client": "3.2.1",
"pino": "9.5.0",
"pino-pretty": "11.3.0",
"prom-client": "15.1.3",
"ramda": "0.30.1"
"ramda": "0.30.1",
"sigstore": "3.0.0"
},
"devDependencies": {
"@commitlint/cli": "19.5.0",
Expand All @@ -58,6 +60,7 @@
"@jest/globals": "29.7.0",
"@types/eslint": "9.6.1",
"@types/express": "5.0.0",
"@types/follow-redirects": "1.14.4",
"@types/json-pointer": "^1.0.34",
"@types/node": "22.x.x",
"@types/node-forge": "1.3.11",
Expand Down
15 changes: 14 additions & 1 deletion src/cli/init/walkthrough.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023-Present The Pepr Authors

import { describe, expect, it } from "@jest/globals";
import { afterAll, beforeAll, describe, expect, it, jest } from "@jest/globals";
import prompts from "prompts";
import {
walkthrough,
Expand All @@ -13,6 +13,19 @@ import {
} from "./walkthrough";

describe("when processing input", () => {
let consoleLog: jest.Spied<typeof console.log>;
let consoleError: jest.Spied<typeof console.error>;

beforeAll(() => {
consoleLog = jest.spyOn(console, "log").mockImplementation(() => {});
consoleError = jest.spyOn(console, "error").mockImplementation(() => {});
});

afterAll(() => {
consoleLog.mockRestore();
consoleError.mockRestore();
});

btlghrants marked this conversation as resolved.
Show resolved Hide resolved
describe("walkthough() returns expected results", () => {
it.each([
//Test flag combinations with [["$FLAG", ...]]
Expand Down
3 changes: 0 additions & 3 deletions src/lib/capability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,6 @@ describe("Capability", () => {
// Chain the When and Watch methods
capability.When(a.Pod).IsCreated().Watch(mockWatchCallback);

// Log the bindings to ensure they are being added
console.log("Bindings after watch registration: ", capability.bindings);

// Retrieve the registered binding
const binding = capability.bindings.find(b => b.isWatch === true);

Expand Down
Loading
Loading