Skip to content

Latest commit

 

History

History
603 lines (525 loc) · 25.2 KB

CHANGELOG.md

File metadata and controls

603 lines (525 loc) · 25.2 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and is generated by Changie.

Dependency

  • bump opslevel-go version to v2024.9.18

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.9.18

Bugfix

  • graphql cmd correctly handles errors with field args

Feature

  • Add ability to specify the owner id or alias and the property definition id or alias on the command line arguments of the assign property command

Dependency

  • Bump github.com/creasty/defaults from 1.7.0 to 1.8.0 in /src
  • Bump opslevel/report-deploy-github-action from 0.9.0 to 0.10.0
  • bump opslevel-go version to v2024.9.3
  • bump github.com/open-policy-agent/opa to v0.67.1

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.9.3

Bugfix

  • opslevel update service command correctly updates fields

Feature

  • Add support for creating/updating Azure Resources integrations
  • add 'opslevel get service maturity' command, prints categories and levels on one service
  • get service command populates Dependents, Dependencies, and Properties data in JSON format
  • list service command optionally returns Dependents, Dependencies, and Properties data in JSON format
  • Add support for creating/updating Google Cloud integrations
  • new command to create, update, and delete a Service Tool
  • list user with --ignore-deactivated flag shows only active users

Dependency

  • Bump github.com/rs/zerolog from 1.32.0 to 1.33.0 in /src
  • Bump github.com/itchyny/gojq from 0.12.15 to 0.12.16 in /src
  • Bump github.com/open-policy-agent/opa from 0.64.1 to 0.65.0 in /src
  • Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 in /src
  • bump opslevel-go version to v2024.6.17
  • bump opslevel-go version to v2024.8.1
  • bump cli module go version to 1.22
  • bump opslevel-go version to v2024.8.16

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.8.19

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.5.28

Bugfix

  • Docker image will now install ca-certificates during bootstrap

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.5.24

Bugfix

  • Support all CLI options for opslevel create deploy as env vars (OL_ENVIRONMENT, OL_DESCRIPTION, OL_SERVICE, OL_INTEGRATION_URL)

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.5.23

Bugfix

  • fix "service update" cmd, can now unset lifecycleAlias and tierAlias

Dependency

  • Bump goreleaser/goreleaser-action from 5.0.0 to 5.1.0

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.5.13

Feature

  • add "--hidden-only" flag to list respositories command
  • bump opslevel-go version to v2024.4.26

Dependency

  • Bump github.com/go-resty/resty/v2 from 2.11.0 to 2.12.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.62.1 to 0.63.0 in /src
  • Bump github.com/go-git/go-git/v5 from 5.11.0 to 5.12.0 in /src
  • Bump github.com/itchyny/gojq from 0.12.14 to 0.12.15 in /src
  • Bump golang.org/x/net from 0.22.0 to 0.23.0 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.4.26

Bugfix

  • Dockerfile now uses Ubuntu provided jq package

Feature

  • add --short flag to version command
  • Show DISPLAY_STATUS, ALLOWED_IN_CONFIG_FILES when listing property definitions
  • Show ALIASES, LOCKED when listing assigned properties on a service
  • -o csv support for property definitions and assignments

Removed

  • Removed LEN_VALIDATION_ERRORS from service properties list
  • Removed SCHEMA from property definitions list

Dependency

  • Bump github.com/cloudflare/circl from 1.3.6 to 1.3.7 in /src
  • Add support for 'ls'/'rm' to list/delete and add useful aliases for resources like 'sys' for system and 'pd' for property-definition
  • Bump github.com/relvacode/iso8601 from 1.3.0 to 1.4.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.60.0 to 0.61.0 in /src
  • Bump github.com/rs/zerolog from 1.31.0 to 1.32.0 in /src
  • Bump codecov/codecov-action from 3 to 4
  • Bump arduino/setup-task from 1 to 2
  • Bump github.com/gosimple/slug from 1.13.1 to 1.14.0 in /src
  • Bump github.com/opslevel/opslevel-go/v2024 from 2024.1.13 to 2024.2.26 in /src
  • Bump github.com/open-policy-agent/opa from 0.61.0 to 0.62.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.62.0 to 0.62.1 in /src
  • Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.3.15

Refactor

  • BREAKING CHANGE: update struct types to use opslevel-go v2024

Removed

  • Remove commands that are already marked as deprecated at this point
  • All "group" based commands have been removed

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.1.16

Bugfix

  • Fix bugs where unset ID/IdentifierInput fields were not being omitted on update
  • Fix bugs where optional ID/IdentifierInput fields were not being unset on update
  • Fix bug in Infra where unexpected data would be included in requests

Feature

  • add create,get,list,delete PropertyDefinitions capabilities
  • Bump github.com/open-policy-agent/opa from 0.59.0 to 0.60.0 in /src
  • add support for assigning, unassigning and reading Properties on Services
  • add get property command, gets assigned property
  • add support for listing Properties on a Service

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2024.1.5

Bugfix

  • Fix exporting Teams in Terraform to have up to have a schema compatible with v0.8.13

Feature

  • Support for exporting Team Memberships in Terraform
  • add example command, prints yaml or json formatted examples of resources

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.12.18

Bugfix

  • update UserIdentifierInput to accept pointers, matches updates to opslevel-go

Feature

  • add "parentTeam" field to "import teams" command and team command examples
  • add parent field to exported opslevel_team terraform resource
  • update, create, delete team membership in CLI

Refactor

  • BREAKING CHANGE ownerAlias deprecated on service inputs

Deprecated

  • group commands deprecated in favor of Team hierarchies
  • "opslevel import group" command is deprecated

Removed

  • remove "group" field from "import teams" command
  • drop func IsID() from common, exists in opslevel-go

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.11.16

Bugfix

  • BREAKING CHANGE - fix get/list tags on an object returning a nonzero exit code if no tag matches, return empty JSON array instead
  • fix bug not reading files when using -f

Feature

  • New subcommands for create, assign, update, delete tags on all taggable resources
  • BREAKING CHANGE - split up get tag KEY and list tags. get tag KEY gets all tags matching KEY. list tags lists all tags on an object
  • show last updated when listing secrets
  • add 'infra' to type flag for tag management

Deprecated

  • BREAKING CHANGE: remove tag functions for Service, Team

Dependency

  • Bump docker/login-action from 2 to 3
  • Bump goreleaser/goreleaser-action from 4.6.0 to 5.0.0
  • Bump github.com/go-resty/resty/v2 from 2.7.0 to 2.8.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.54.0 to 0.57.0 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.10.8

Dependency

  • Bump actions/checkout from 3 to 4
  • Bump crazy-max/ghaction-import-gpg from 5 to 6
  • Bump goreleaser/goreleaser-action from 4.4.0 to 4.6.0

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.9.12

Feature

  • add support for scorecards
  • add secrets API operations

Dependency

  • update to go 1.21 and go.sum dependencies

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.8.28

Bugfix

  • Fix inability to read YAML from stdin in containers
  • BREAKING CHANGE: to disable interactive UI pass the --noninteractive flag when creating and updating a check

Feature

  • Add task workflow for tandem opslevel-go dev
  • Can now update a check in CLI
  • Add support for handling Webhook Actions
  • Add support for handling Trigger Definitions

Dependency

  • Bump github.com/go-git/go-git/v5 from 5.8.0 to 5.8.1
  • Bump goreleaser/goreleaser-action from 4.3.0 to 4.4.0
  • Bump github.com/rs/zerolog from 1.29.1 to 1.30.0
  • Bump github.com/opslevel/opslevel-go/v2023 from 2023.7.28 to 2023.8.14

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.8.15

Bugfix

  • Fix bug when updating a resource using a yaml file

Feature

  • Add support for creating and updating Filters using YAML files

Dependency

  • Bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.0 in /src
  • Update opslevel-go to latest version

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.7.28

Bugfix

  • PrettyPrint no longer escapes html

Feature

  • Add commands for working with infrastructure resources in the catalog
  • Add commands to create and delete aliases

Deprecated

  • Updated old function calls to new sources

Dependency

  • Bump github.com/go-git/go-git/v5 from 5.6.1 to 5.7.0 in /src
  • Bump github.com/itchyny/gojq from 0.12.12 to 0.12.13 in /src
  • Bump goreleaser/goreleaser-action from 4.2.0 to 4.3.0
  • Bump opslevel/report-deploy-github-action from 0.5.0 to 0.6.0
  • Bump github.com/spf13/viper from 1.15.0 to 1.16.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.52.0 to 0.54.0 in /src
  • Update go to version 1.20

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.7.19

Bugfix

  • Fix bug where command create deploy does not properly error out and incorrectly reports successful deploy event registered

Feature

  • Add ability to create, delete service dependencies
  • Add dependents and dependencies to the return data of the command opslevel get service
  • Support ability to skip the welcome e-mail on user invite

Refactor

  • Add validation to command create deploy to ensure --integration-url is set

Dependency

  • Bump github.com/creasty/defaults from 1.6.0 to 1.7.0 in /src
  • Bump github.com/go-git/go-git/v5 from 5.6.0 to 5.6.1 in /src
  • Bump docker/login-action from 1 to 2
  • Bump goreleaser/goreleaser-action from 2.7.0 to 4.2.0
  • Bump codecov/codecov-action from 2 to 3
  • Bump actions/setup-go from 2 to 4
  • Bump actions/cache from 2 to 3
  • Bump github.com/itchyny/gojq from 0.12.11 to 0.12.12 in /src
  • Bump emmyoop/changie_bot from 1.0.1 to 1.1.0
  • Bump github.com/open-policy-agent/opa from 0.48.0 to 0.52.0 in /src
  • Bump github.com/cloudflare/circl from 1.1.0 to 1.3.3 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.5.18

Feature

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.4.11

Bugfix

  • Pickup an opslevel-go hotfix that fixes export terraform command

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.3.16

Refactor

  • update opslevel-go to 3.14.23 to pickup pagination fixes and refactor list calls under the hood

Dependency

  • Bump golang.org/x/net from 0.5.0 to 0.7.0 in /src
  • Bump github.com/go-git/go-git/v5 from 5.5.2 to 5.6.0 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.3.14

Feature

  • Add CSV output to command list users

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.2.10

Feature

  • Allow create team to set managerEmail, group, responsiblities
  • Add update team command
  • Add update user command
  • Allow create user to set the role of the user
  • Add get user command

Docs

  • Improve examples on team commands
  • Ensure team commands have proper usage strings
  • Improve examples on user commands
  • Ensure user commands have proper usage strings

Dependency

  • Bump github.com/relvacode/iso8601 from 1.1.0 to 1.3.0 in /src
  • Bump github.com/go-git/go-git/v5 from 5.5.1 to 5.5.2 in /src
  • Bump github.com/open-policy-agent/opa from 0.47.3 to 0.48.0 in /src
  • Bump github.com/spf13/viper from 1.14.0 to 1.15.0 in /src

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2023.1.25

Feature

  • Adds CRUD support for team tags
  • Add ability to create and export Repo Grep checks

Dependency

  • Bump github.com/open-policy-agent/opa from 0.45.0 to 0.47.3 in /src
  • Bump github.com/spf13/viper from 1.11.0 to 1.14.0 in /src
  • Bump github.com/opslevel/opslevel-go to v2022.12.16

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.12.22

Bugfix

  • Fix csv reader so it does not close file handle prematurely and only read N number of rows

Feature

  • Add support for check type 'HasRecentDeploy'
  • Add support for check type 'HasDocumentation'
  • Add support for check type 'AlertSourceUsage'
  • Add support for check type 'GitBranchProtection'
  • Add support for check type 'ServiceDependency'
  • add git_branch_protection and service_dependency checks to export terraform command

Refactor

  • do not obscure api error responses when doing client validation

Dependency

  • Bump github.com/spf13/cobra from 1.5.0 to 1.6.0 in /src
  • Bump github.com/open-policy-agent/opa from 0.44.0 to 0.45.0 in /src
  • Bump github.com/gosimple/slug from 1.12.0 to 1.13.1 in /src
  • bump opslevel-go to 2022.10.22

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.10.22

September 23, 2022

Feature

  • Add ability to pass arbitrary json as extra input to run policy command
  • Add ability to output run policy command directly to a file
  • Add ability to specify --no-headers to remove the headers from table output
  • add rego function for time.diff using iso8601 timestamps

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.9.23

September 19, 2022

Bugfix

  • Fix error handling that prevented deploy events from working

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.9.19

September 09, 2022

Feature

  • Add Rego function to check a OpsLevel service's maturity level
  • Add Rego function to get Gitlab project metadata
  • Allow tag deletion by ID

Bugfix

  • Fix bug where Terraform export was exporting single line filters as multi-line strings
  • Adding "has recent deploy" check to terraform export
  • Adding "alert source usage check" to terraform export
  • Adding "has documentation" check to terraform export

Docs

  • Add example stdin for service create and update

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.9.9

August 17, 2022

Feature

  • Add ability to read file contents with Rego
  • Add Rego function to get Github repo metadata

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.8.17

August 01, 2022

Feature

  • adding support for Rego policies in cli

Refactor

  • Surface warning from API when uploading invalid json/yaml to API docs
  • Updating opslevel-go version to v2022.8.1

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.8.1

July 20, 2022

Bugfix

  • Fix output of get service command when service is not found
  • bump opslevel-go to fix a bug with our REST client for create document command

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.7.20

July 15, 2022

Feature

  • Add ability to list services and their maturity levels
  • Adding support for API swagger docs to be uploaded via cli

Refactor

  • Consolidated API_URL and APP_URL to be the same!

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.7.15

July 08, 2022

Feature

  • Add ability to get a service's tag
  • Add flag --assign to create service tag to use tagAssign mutation instead of tagCreate
  • Add command delete service tag
  • Add functionality to get service tag to list all the tags
  • upgrade to go 1.18

Refactor

  • create service tag usage signature changed to make it easier to work with

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.07.07

June 09, 2022

Feature

  • Add CSV output option on list services command
  • Added create, list and delete user commands

Security

  • Setup Dependabot

Docker Image

  • docker pull public.ecr.aws/opslevel/cli:v2022.06.09

v2022.04.22 - 2022-04-22

Bugfix

  • Fix Release## [v2022.04.21] - 2022-04-21

Feature

  • implement create, update and delete for groups
  • Add get and list commands for groups

Bugfix

  • When passing data via stdin to create check the command was failing with prompt-ui errors - a fix has been implemented

[v2022.04.21]: https://github.com/OpsLevel/cli/compare/v2022.04.13...v2022.04.21## [2022.04.13] - 2022-04-13

Feature

  • Upgrade Go to 1.17
  • Add ability to create a tag for a service

Refactor

  • Refactor the output of version command to show golang and OL versions

Bugfix

  • Create deploy was hanging when no stdin was passed
  • Check name wasn't escaping quotes on terraform export
  • Filter out first level by index instead of name

[v2022.04.13]: https://github.com/OpsLevel/cli/compare/v2022.02.25...v2022.04.13## [v2022.02.25] - 2022-02-25

Bugfix

  • Fix bug when exporting regex predicates to terraform

[v2022.02.25]: https://github.com/OpsLevel/cli/compare/v2022.02.11-1...v2022.02.25## [v2022.02.11] - 2022-02-11

Feature

  • add version constraint to import check configuration yaml

Refactor

  • Update version output format
  • Add interactive functionality for importing checks
  • Fix code so client objects are not built unless needed allow commands like opslevel version to execute without an OPSLEVEL_API_TOKEN present

[v2022.02.11]: https://github.com/OpsLevel/cli/compare/v0.3.5...v2022.02.11## [v2022.02.11-1] - 2022-02-11

Bugfix

  • Use modified list when returning Id

[v2022.02.11-1]: https://github.com/OpsLevel/cli/compare/v2022.02.11...v2022.02.11-1## [v0.3.5] - 2021-12-14

Feature

  • add ability to import all check types
  • expand ability to export all check types to yaml
  • add ability to export a check to an importable yaml file
  • add ability to create custom event checks from a yaml file
  • create a way to cache API objects into lookup tables by their aliases
  • add generated alias output to list filters
  • add ability to get and list integrations

Refactor

  • have list check emit the check type in text mode

[v0.3.5]: https://github.com/OpsLevel/cli/compare/v0.3.4...v0.3.5## [v0.3.4] - 2021-11-14

Feature

  • have export terraform emit team and service aliases

[v0.3.4]: https://github.com/OpsLevel/cli/compare/v0.3.3...v0.3.4## v0.3.3 - 2021-10-31

Bugfix

  • export terraform no longer outputs repos without a default alias
  • export terraform now properly emits filter predicates

v0.3.2 - 2021-10-04

Bugfix

  • fix issue with new graphql user agent args

v0.3.1 - 2021-10-04

Docs

  • cleanup readme to bring it more inline with kubectl-opslevel

Feature

  • set custom graphql user agent extras

v0.3.0 - 2021-10-02

v0.3.0-beta.5 - 2021-10-02

v0.3.0-beta.4 - 2021-10-01

v0.3.0-beta.3 - 2021-10-01

v0.3.0-beta.2 - 2021-10-01

v0.3.0-beta.1 - 2021-10-01

Bugfix

  • fix outstanding multiline string issues with export terraform

v0.3.0-beta - 2021-10-01

Bugfix

  • if multiline string from opslevel does not end with \n then have terraform treat it as an escaped string

Docs

  • add installation instructions for Deb/RPM

Feature

  • add deb/rpm package releases
  • add create, get, list and delete for filters
  • implement create, get, list, and delete for team, team member and team contact
  • implement get & list for repository
  • add ability to output list data as a json array
  • implement correct output formatting for list tier, lifecycle and tools

v0.2.0-beta - 2021-09-18

Feature

  • upgrade opslevel-go to v0.3.3
  • initial pass at export terraform for exporting data from your account to be controlled by terraform
  • add shell completion generation command
  • add get and list check commands
  • add list commands which differ from get commands
  • add commands for rubric categories and levels
  • add get and delete service commands
  • add gpg signing
  • add ability to query account lifecycles, tiers, teams and tools

Refactor

  • convert prefered environment variable prefix from OL_ to OPSLEVEL_ but still support old prefix
  • use args instead of flags for rubric commands
  • seperate get and list commands

v0.1.0-beta.5 - 2021-07-10

v0.1.0-beta.4 - 2021-07-10

v0.1.0-beta.3 - 2021-07-10

v0.1.0-beta.2 - 2021-07-10

Refactor

  • switch to goreleaser

v0.1.0-beta.1 - 2021-06-26

Bugfix

  • add yaml struct tags for consistent configfile parsing

Docs

  • rewrite examples to show both yaml and env var examples as well as switching to the full integration url rather then just ID

Refactor

  • standardize inputs across flags, env vars, and yaml. Also include more imports to support a wider varity of source input data

v0.0.1-beta.2 - 2021-06-19

Release

  • use aws ecr alias
  • remove github docker registry publish
  • add windows binary cross compile

v0.0.1-beta.1 - 2021-06-19

Docs

  • fix amazon ECR links to use new repo alias
  • flesh out readme with usage and install instructions

Feature

  • add ability to scrape git commit info if available