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

Support for Self-Hosted Armories and Armory Fixes #1633

Merged
merged 44 commits into from
Apr 18, 2024

Conversation

RafBishopFox
Copy link
Collaborator

This PR adds support for self-hosted armories and fixes a few issues users have identified.

Added features:

  • Support for managing multiple armories (add, remove, modify armories)
  • Support for disabling armories
  • Added commands (see below)
  • Support for updating a subset of packages

Fixes:

New commands:

  • armory add: Add an armory to the configuration
  • armory rm: Remove an armory from the configuration
  • armory modify: Modify a saved armory
  • armory enable / armory disable: Enable or disable an armory
  • armory save: Save current armory configuration to disk
  • armory reset: Reset armory configuration to default
  • armory info: Get information about a specific armory or package

If two armories have the save package name, you will get a prompt to choose which one you want to install:

? More than one package contains the command coff-loader. Please choose an option from the list below:  [Use arrows to move, type to filter]
> Extension COFF Loader v1.0.14 from armory Default with command coff-loader (https://github.com/sliverarmory/COFFLoader)
  Extension COFF Loader v1.0.15 from armory MyArmory with command coff-loader (https://awesomearmory.com/armory/extensions/coff-loader)
  Do not install this package

Changes that allow for multiple armories, including commands for
managing armories, dependency resolution, and deconfliction.

There is still more work to be done, including refactoring,
simplification, and getting rid of bugs.
If a package is deleted from the index, the cache was not subsequently
updated.
armory update now prints a table of updates and allows the user to choose the updates they want to perform.
Refined dependency resolution so that it considers packages that are
pending install
Re-did the fix for the client continuously asking to overwrite packages
when installing bundles
Added a force option to the install command
Addresses #1401

Placing a limit of 10 concurrent requests for fetching resources
(indexes, package signatures) from armories. Also checking for a nil
response when downloading from GitHub to prevent a panic.
@RafBishopFox RafBishopFox requested a review from a team as a code owner April 17, 2024 15:44
rkervella and others added 20 commits April 17, 2024 08:46
Signed-off-by: gatari <zavierspamstuff@gmail.com>
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.3.1 to 5.5.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.3.1...v5.5.4)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.21.0.
- [Commits](golang/crypto@v0.17.0...v0.21.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>
Changes that allow for multiple armories, including commands for
managing armories, dependency resolution, and deconfliction.

There is still more work to be done, including refactoring,
simplification, and getting rid of bugs.
RafBishopFox and others added 15 commits April 18, 2024 09:44
If a package is deleted from the index, the cache was not subsequently
updated.
armory update now prints a table of updates and allows the user to choose the updates they want to perform.
Refined dependency resolution so that it considers packages that are
pending install
Re-did the fix for the client continuously asking to overwrite packages
when installing bundles
Added a force option to the install command
Addresses #1401

Placing a limit of 10 concurrent requests for fetching resources
(indexes, package signatures) from armories. Also checking for a nil
response when downloading from GitHub to prevent a panic.
Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 4 to 5.
- [Release notes](https://github.com/actions/configure-pages/releases)
- [Commits](actions/configure-pages@v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](fatih/color@v1.15.0...v1.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@rkervella rkervella merged commit 6bccd35 into master Apr 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants