Commit Graph

3660 Commits

Author SHA1 Message Date
dependabot[bot]
0c2a26bb2a build(deps): bump go.opentelemetry.io/otel/exporters/jaeger (#2867) 2023-03-29 00:30:56 +00:00
dependabot[bot]
b6b44eadb1 build(deps): bump cloud.google.com/go/storage from 1.29.0 to 1.30.1 (#2866) 2023-03-29 00:26:55 +00:00
Julio Lopez
f89fe39927 chore(robustness): use zero value for strings.Builder (#2863) 2023-03-28 09:46:29 -07:00
Julio Lopez
febb95262d build(deps): bump github.com/google/fswalker (#2860)
Bumps [github.com/google/fswalker](https://github.com/google/fswalker) from 0.2.1-0.20200214223026-f0e929ba4126 to 0.3.0.
- [Release notes](https://github.com/google/fswalker/releases)
- [Commits](https://github.com/google/fswalker/commits/v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/google/fswalker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 07:36:25 +00:00
Julio Lopez
7b44fd7213 chore(general): move test-only functions to _test.go file (#2859) 2023-03-28 05:55:31 +00:00
dependabot[bot]
5a25affd2a build(deps): bump actions/setup-go from 3 to 4 (#2841)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 04:45:19 +00:00
dependabot[bot]
34c3609f81 build(deps): bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#2828)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.5.2...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/golang/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 04:17:14 +00:00
Aaron Alpar
cc7a413d0d fix(general): fix-up *Fault with lock (#2855)
Add concurrency safety for helper functions.

---

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>
Co-authored-by: Ali Dowair <adowair@umich.edu>
Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com>
2023-03-28 03:03:56 +00:00
YFdyh000
fed807f20e fix(repository): fixed connect broken since rclone v1.61.0 (#2853)
* fix(repository): fixed connect broken since rclone v1.61.0

4444d2d102 (diff-3bfe93b28218b8e93a7480a5684d21ac566795a0fa8e540ec1bc6cbe7028439eR295)

* build(deps): bumped rclone binary to 1.62.2
2023-03-28 01:55:13 +00:00
Julio Lopez
a99e38c247 fix(lint): remove uses of deprecated rand.Read (#2858)
Lint fixes in preparation for moving to Go 1.20

Remove deprecated calls to `rand.Seed`
In Go 1.20 the default generator is seeded randomly at program startup,
which is the desired behavior for these tests.

Remove uses of deprecated rand.Read: replace with calls to rand.Uint64()

Remove deprecated uses of rand.Read in content manager tests and
S3 versioned tests.
Adds a concurrency-safe helpers to provide functionality similar to that
provided by `rand.Read(b []byte) (int, error)`
2023-03-28 01:44:09 +00:00
dependabot[bot]
98821b7b28 build(deps): bump github.com/minio/minio-go/v7 from 7.0.49 to 7.0.50 (#2857) 2023-03-28 00:23:09 +00:00
Aaron Alpar
c65613ccba feat(cli): ability to read repository status ... (#2799)
* fix spelling

* permissive index read

* fixup v1 permissive index

* fixups for lint

* trigger rebuild

* Update repo/local_config.go

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>

* rename permissive read flag

* extend "permissive-read" rename

* hide permissive command-line flag

* syntax fixup

* fixup for test

* fixups for tests

* Update .golangci.yml

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>

---------

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>
2023-03-27 16:08:11 -07:00
ashmrtn
747baeebda feat(snapshots): Enable compression for StreamingFile entries (#2835)
* Enable compression for StreamingFile entries

Also take fs.Entry for helper that gets compression policy instead of
fs.File.

* Add simple test for compression on StreamingFiles

Just checks that the repo size is smaller than the size it would be if
compression wasn't enabled.
2023-03-27 10:12:20 -07:00
Ali Dowair
c4d722d2c5 feat(cli): Make format upgrade command idempotent (#2824)
This commit changes the behavior of the command
`kopia repo upgrade begin...` to not fail (exit code 1) when the repository is already using the latest format version. Instead, a helpful message is output and the program exits with zero code. In effect the command becomes idempotent-successive upgrades would return the same exit code. Such an idempotent api is desirable, especially in cases where we build automation around format upgrades.

Before this change, an error code 1 is returned when upgrading a repository that is already up to date:

```
$ kopia repo status | grep "Format Version"
Format version:      3
$ kopia repo upgrade begin --upgrade-owner-id admin
[1] ERROR error setting the upgrade lock intent: repository is using version 3, and version 3 is the maximum
```

and after this change, a 0 code is returned:

```
$ kopia repo upgrade begin --upgrade-owner-id admin
[0] Repository format is already upto date.
```
2023-03-27 12:37:16 +03:00
Jarek Kowalski
ca59ae3d0a chore(ui): update to latest htmlui (#2851) 2023-03-27 00:34:32 +00:00
Jarek Kowalski
07972b56cf fix(ci): fixed test race condition due to logging (#2852) 2023-03-26 17:05:12 -07:00
dependabot[bot]
088b825dc3 build(deps): bump go.opentelemetry.io/otel/sdk from 1.13.0 to 1.14.0 (#2837) 2023-03-26 19:58:04 +00:00
dependabot[bot]
fbaba34d30 build(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 (#2826)
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-26 12:15:08 -07:00
Christoph Anderson
c8d6112aaa docs(site): added documentation on kopiaignore (#2844)
* Added a documentation and examples for kopiaignore files and patterns.

* Removed the quote signs for server-password and server-username in the example docker compose within the installation guide.

* Minor changes to the documentation. Adjusted the table with examples. Improved wording.

---------

Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-24 15:19:03 -07:00
lupusA
cc00388f6d Fixed broken links in the advanced sections. (#2843)
Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-20 23:21:27 -07:00
lupusA
8459e1c0d4 docs(site): unified headings - created an outline within the advanced section (#2838)
* Unified the headings of the sub-sections within the "advanced" section. Created an outline for the "advanced" section. Changed the ordering of the advanced section to a more meaningful representation. Fixed a typo within the installation guide.

* Fixed a small typo in the outline of the advanced section.

---------

Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-20 20:52:10 -07:00
dependabot[bot]
cd5de60c87 build(deps): bump github.com/chromedp/chromedp from 0.8.7 to 0.9.1 (#2836) 2023-03-17 00:23:27 +00:00
dependabot[bot]
90b606f5e5 build(deps): bump minimatch and electron-builder in /app (#2819)
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together.


Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `electron-builder` from 23.6.0 to 24.0.0
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v24.0.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 22:11:14 -07:00
dependabot[bot]
3e5134c1cf build(deps): bump github.com/klauspost/compress from 1.15.15 to 1.16.3 (#2833)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.15 to 1.16.3.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.15.15...v1.16.3)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 22:09:55 -07:00
dependabot[bot]
90a24f9629 build(deps): bump github.com/prometheus/common from 0.40.0 to 0.42.0 (#2827) 2023-03-15 00:25:15 +00:00
dependabot[bot]
99751c6a40 build(deps): bump google.golang.org/protobuf from 1.29.0 to 1.29.1 (#2825) 2023-03-14 23:38:01 +00:00
Julio Lopez
3f663c4c4a build(deps): bump github.com/hanwen/go-fuse/v2 (#2821)
Bumps [github.com/hanwen/go-fuse/v2](https://github.com/hanwen/go-fuse) from 2.1.1-0.20220112183258-f57e95bda82d to 2.2.0.
- [Release notes](https://github.com/hanwen/go-fuse/releases)
- [Commits](https://github.com/hanwen/go-fuse/commits/v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/hanwen/go-fuse/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 08:29:17 +00:00
dependabot[bot]
071b7d1f63 build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#2815)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 01:52:12 +00:00
dependabot[bot]
87dbc1688a build(deps): bump google.golang.org/protobuf from 1.28.1 to 1.29.0 (#2817) 2023-03-14 01:51:06 +00:00
dependabot[bot]
bd147cc64f build(deps): bump golang.org/x/mod from 0.8.0 to 0.9.0 (#2816) 2023-03-14 01:06:29 +00:00
dependabot[bot]
3fc07daf8a build(deps): bump google.golang.org/api from 0.110.0 to 0.112.0 (#2818) 2023-03-14 00:23:53 +00:00
dependabot[bot]
4351749265 build(deps): bump golang.org/x/term from 0.5.0 to 0.6.0 (#2814) 2023-03-13 07:44:12 +00:00
Snyk bot
e5584331c9 fix(deps): upgrade @fortawesome/fontawesome-common-types from 0.1.7 to 0.2.36 (#2703)
Snyk has created this PR to upgrade @fortawesome/fontawesome-common-types from 0.1.7 to 0.2.36.

See this package in npm:
https://www.npmjs.com/package/@fortawesome/fontawesome-common-types

See this project in Snyk:
https://app.snyk.io/org/ntolia/project/58424cd5-ee02-4c16-8df1-43129217353f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-03-13 00:09:01 -07:00
Juerd Waalboer
3a13ebf518 docs(site): added control credentials to example (#2807)
- Added server control credentials to `kopia server start` example
- Reformatted `kopia server start` to avoid excessive horizontal scrolling
- Moved pre-v0.8 information to quoted notes to reduce confusion
2023-03-12 14:53:10 -07:00
Jarek Kowalski
91a3e9b4b0 fix(kopiaui): fixed '<starting up>' in the tray menu. (#2813)
The fix is to use `127.0.0.1` instead of `localhost` when starting the
server and polling for the server status.

This resolves an issue where KopiaUI can't connect to the server
which only listens on IPv4 localhost (127.0.0.1) but the Javascript
client prefers IPv6 (::1) and fails to connect.
2023-03-12 21:43:04 +00:00
lupusA
95fbf5a266 docs(site): rephrased the section "Two Variants of Kopia" and corrected the outline to match the document. Added a docker-compose example to the "Docker Images" section. (#2812)
Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-12 20:23:47 +00:00
Jarek Kowalski
e96efbddea fix(kopiaui): added missing entitlement for M1 build (#2809) 2023-03-12 11:09:40 -07:00
dependabot[bot]
0496ee8d95 build(deps): bump got and electron-builder in /app (#2808)
Removes [got](https://github.com/sindresorhus/got). It's no longer used after updating ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together.


Removes `got`

Updates `electron-builder` from 23.3.3 to 23.6.0
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v23.6.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 06:05:14 +00:00
dependabot[bot]
978bd26b9b build(deps-dev): bump electron from 19.0.8 to 23.1.3 in /app (#2805)
Bumps [electron](https://github.com/electron/electron) from 19.0.8 to 23.1.3.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v19.0.8...v23.1.3)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 05:20:18 +00:00
Jarek Kowalski
1febe17ae7 chore(ci): sort go.mod as described in #2669 (#2806)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 00:50:34 +00:00
Jarek Kowalski
92291a61e1 feat(repository): added RepositoryWriter.ReplaceManifests (#2747)
This simplifies use cases where we intend to replace a manifest uniquely
identified by a set of labels with another one as is the case for
policies.

This helped fix annoying test flake on Windows where the clock is not
guaranteed to move forward when read in quick succession.

This is now passing on Windows:

```
$ go test -timeout 1000s ./internal/server -run TestSourceRefreshesAfterPolicy -count=1000
```
2023-03-12 00:44:28 +00:00
Snyk bot
f66cc072f0 build(deps): upgrade electron-updater from 5.2.1 to 5.3.0 (#2702)
Snyk has created this PR to upgrade electron-updater from 5.2.1 to 5.3.0.

See this package in npm:
https://www.npmjs.com/package/electron-updater

See this project in Snyk:
https://app.snyk.io/org/kopia/project/8d808158-51d1-4cf8-b3e0-40e912ecfd63?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-03-12 00:27:06 +00:00
dependabot[bot]
6f1e4dcdbc build(deps-dev): bump playwright from 1.28.1 to 1.31.1 in /app (#2790)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.28.1 to 1.31.1.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.28.1...v1.31.1)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-11 15:58:52 -08:00
Jarek Kowalski
6fa50640f4 build(deps): manual upgrade to github.com/alecthomas/kingpin/v2 (#2804)
also upgraded github.com/klauspost/reedsolomon to latest non-retracted version
go mod tidy
2023-03-11 06:28:05 -08:00
dependabot[bot]
84675c1185 build(deps): bump github.com/tg123/go-htpasswd from 1.2.0 to 1.2.1 (#2771)
Bumps [github.com/tg123/go-htpasswd](https://github.com/tg123/go-htpasswd) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/tg123/go-htpasswd/releases)
- [Commits](https://github.com/tg123/go-htpasswd/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/tg123/go-htpasswd
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-11 06:55:31 +00:00
dependabot[bot]
e4cc005017 build(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.3 to 4.5.0 (#2781)
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.3...v4.5.0)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-10 22:38:20 -08:00
PrplHaz4
e04eec1d0e docs(site): fix link to repositories docs (#2789) 2023-03-06 00:59:13 +00:00
dependabot[bot]
4aa8f12314 build(deps-dev): bump playwright-core from 1.28.1 to 1.31.1 in /app (#2792) 2023-03-02 00:32:38 +00:00
Julio Lopez
5c901abc90 test(general): parse stdout and stderr in robustness framework helper (#2779)
Parse stdout as well as stderr in `KopiaSnapshotter.CreateSnapshot`.
This is contained to the Robustness Framework.

Co-authored-by: Carl Braganza <carl@kasten.io>
2023-02-23 10:18:07 -08:00
dependabot[bot]
fdb386154a build(deps): bump github.com/aws/aws-sdk-go from 1.44.206 to 1.44.207 (#2780) 2023-02-22 23:41:19 +00:00