commit 57ecb0bb882dfe6eccf574602de33204450205a64392ce5663b4e5a19f1a84fe Author: Marcus Meissner Date: Sun Jun 2 11:13:04 2024 +0000 Accepting request 1178040 from home:ojkastl_buildservice:Branch_devel_kubic new package falcoctl: CLI for the Falco Cloud Native Runtime Security solution OBS-URL: https://build.opensuse.org/request/show/1178040 OBS-URL: https://build.opensuse.org/package/show/security/falcoctl?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..066a462 --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + https://github.com/falcosecurity/falcoctl + git + .git + v0.8.0 + @PARENT_TAG@ + enable + v(.*) + + + + + + *.tar + gz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..4bb8f78 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/falcosecurity/falcoctl + 048e8a1375e416afe29f4515a3dbd90d1a31bf92 \ No newline at end of file diff --git a/falcoctl-0.8.0.obscpio b/falcoctl-0.8.0.obscpio new file mode 100644 index 0000000..d106713 --- /dev/null +++ b/falcoctl-0.8.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b660cc767d467333eb3e2423cbb17ff13cefcbb2f50154a6c24097ea40cf7c64 +size 7711245 diff --git a/falcoctl.changes b/falcoctl.changes new file mode 100644 index 0000000..cfebae1 --- /dev/null +++ b/falcoctl.changes @@ -0,0 +1,103 @@ +------------------------------------------------------------------- +Sat Jun 01 09:13:58 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.8.0: + * add dependabot config and update golangci-lint by @cpanato in + #385 + * chore(cmd): fixed up some strings. by @FedeDP in #407 + * fix: fixed go.sum entry to fix build. by @FedeDP in #415 + * feat: adding support for KMS in cosign by @brennoo in #416 + * fix: Dead link in PR template by @krnowak in #424 + * pkg/driver/flatcar: Update the script by @krnowak in #425 + * fix(pkg/driver): fixed generic kernelversion fixup method. by + @FedeDP in #427 + * new(cmd/driver): support user provided headers option for + driver download by @toamto94 in #428 + * fix(pusher): correctly report artifact type by @alacuku in #442 + * Remove extra '$' character. by @thejefflarson in #458 + * feat(cmd/push): parse requirements and deps from rulesfile by + @alacuku in #467 + * update(cmd): bumped oras to v.2.4.0. by @FedeDP in #478 + * fix(registry/push): correctly remove temporary dir by @alacuku + in #479 + * update(tests/push): add new tests for push command by @alacuku + in #486 + * new: driver selection logic by @FedeDP in #484 + * new(pkg/driver): try to fetch kernel headers leveraging + driverkit library when building drivers by @FedeDP in #476 + * chore(cmd,pkg,internal): switch to use oras-go credentials + package since oras-go-credentials is deprecated by @FedeDP in + #496 + * chore(cmd/push): uniform receiver for push command by @alacuku + in #498 + * fix(pkg/driver): fixup kernel headers download by @FedeDP in + #499 + * fix(artifact/info): filter out signature tags by @alacuku in + #507 + * vote: docs(OWNERS): add alacuku (Aldo Lacuku) to approvers by + @alacuku in #497 + * cleanup(cmd/driver): drop preview tag. by @FedeDP in #506 + * fix(install): fix missing dependency signature verification by + @LucaGuerra in #509 + * chore(cmd): dropped leftover experimental for driver-loader. by + @FedeDP in #515 + * fix: Add backend 'https' to default index by @QJoly in #520 + * chore(internal): old ebpf probe must have lowest priority. by + @FedeDP in #521 + * fix(pkg/driver): avoid source of crash during distro Discovery. + by @FedeDP in #530 + * chore(build): bump go version to 1.22 by @alacuku in #533 + * add new boolean arg for 'registry push' --add-floating-tags, it + will auto add the tags for the major and the minor versions by + @Issif in #543 + * cleanup(cmd,pkg): moved enum to its own package. by @FedeDP in + #550 + * new(pkg): use driverkit local build processor instead of + implementing drivers build by @FedeDP in #356 + * fix(pkg/driver): create envmap if nil since driverkit expects + it. by @FedeDP in #551 + * chore(cmd/driver): remove redundant log. by @FedeDP in #552 + * chore: updated driverkit to v0.19.2 by @FedeDP in #553 + * chore(deps): Bump google.golang.org/api from 0.178.0 to 0.180.0 + by @dependabot in #559 + * chore(deps): Bump the gomod group with 3 updates by @dependabot + in #558 + * feat: Add --platform option to artifact/install by @kpaulisse + in #554 + * chore(deps): Bump the actions group with 2 updates by + @dependabot in #556 + * chore(deps): Bump golangci/golangci-lint-action from 5.3.0 + to 6.0.1 by @dependabot in #557 + * feat: Add file backend to fetcher by @kpaulisse in #555 + * new(cmd/driver): driver config namespace from env variable by + @FedeDP in #560 + +------------------------------------------------------------------- +Sat Feb 24 09:20:18 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.7.3: + * fix(CI): add permissions to login-to-amazon-ecr job + * new(ci): add provenance for main tag + * fix(CI): properly get credentials for amazon ecr registry + * new(CI): add provenance for ecr image + * fix(ci): add permissions for AWS ecr + * new(CI): add ecr repository + +------------------------------------------------------------------- +Mon Feb 12 19:53:46 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.7.2: + * bumped helper message + * added http-header option in driver download + * chore(pkg/driver): ubuntu has its own specific FixupKernel + logic now. + * fix(pkg/driver): fixed generic kernelversion fixup method. + * pkg/driver/flatcar: Update the script + * fix: Dead link in PR template + * chore(cmd): fixed up some strings. + +------------------------------------------------------------------- +Fri Feb 2 09:00:56 UTC 2024 - Johannes Kastl + +- new package falcoctl: CLI for the Falco Cloud Native Runtime + Security solution diff --git a/falcoctl.obsinfo b/falcoctl.obsinfo new file mode 100644 index 0000000..895e11d --- /dev/null +++ b/falcoctl.obsinfo @@ -0,0 +1,4 @@ +name: falcoctl +version: 0.8.0 +mtime: 1716273133 +commit: 048e8a1375e416afe29f4515a3dbd90d1a31bf92 diff --git a/falcoctl.spec b/falcoctl.spec new file mode 100644 index 0000000..672d732 --- /dev/null +++ b/falcoctl.spec @@ -0,0 +1,115 @@ +# +# spec file for package falcoctl +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define __arch_install_post export NO_BRP_STRIP_DEBUG=true + +Name: falcoctl +Version: 0.8.0 +Release: 0 +Summary: CLI / Administrative tooling for Falco +License: Apache-2.0 +URL: https://github.com/falcosecurity/falcoctl +Source: falcoctl-%{version}.tar.gz +Source1: vendor.tar.gz +BuildRequires: go >= 1.22 + +%description +The official CLI tool for working with [Falco](https://github.com/falcosecurity/falco) and its ecosystem components. + +%package -n %{name}-bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description -n %{name}-bash-completion +Bash command line completion support for %{name}. + +%package -n %{name}-fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description -n %{name}-fish-completion +Fish command line completion support for %{name}. + +%package -n %{name}-zsh-completion +Summary: Zsh Completion for %{name} +Group: System/Shells +Requires: %{name} = %{version} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description -n %{name}-zsh-completion +zsh command line completion support for %{name}. + +%prep +%autosetup -p 1 -a 1 + +%build +DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ" +BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}") +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags="\ + -X github.com/falcosecurity/falcoctl/cmd/version.semVersion=%{version} \ + -X github.com/falcosecurity/falcoctl/cmd/version.gitCommit=v%{version} \ + -X github.com/falcosecurity/falcoctl/cmd/version.buildDate=${BUILD_DATE}" \ + -o bin/falcoctl . + +%install +# Install the binary. +install -D -m 0755 bin/%{name} "%{buildroot}/%{_bindir}/%{name}" + +# create the bash completion file +mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/ +%{buildroot}/%{_bindir}/%{name} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name} + +# create the fish completion file +mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/ +%{buildroot}/%{_bindir}/%{name} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish + +# create the zsh completion file +mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d/ +%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name} + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{name} + +%files -n %{name}-bash-completion +%dir %{_datarootdir}/bash-completion/completions/ +%{_datarootdir}/bash-completion/completions/%{name} + +%files -n %{name}-fish-completion +%dir %{_datarootdir}/fish +%dir %{_datarootdir}/fish/vendor_completions.d +%{_datarootdir}/fish/vendor_completions.d/%{name}.fish + +%files -n %{name}-zsh-completion +%defattr(-,root,root) +%dir %{_datarootdir}/zsh_completion.d/ +%{_datarootdir}/zsh_completion.d/_%{name} + +%changelog diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..23eef86 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a27a7cb7885c8e698632d34d4c567ef737390aaa8d31c3a198211ff08025486c +size 56448527