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

release v1.0.8 #5137

Merged
merged 6 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
2 changes: 2 additions & 0 deletions .vale/styles/spelling-exceptions.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
agent
Alibaba
Ansible
append_git_suffix
APIs
artifact_definitions
artifact_name
Expand All @@ -12,6 +13,7 @@ class_name
CloudFormation
codespace
codespaces
combobox
config
Config
content_type
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,39 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.0.8](https://github.com/opsmill/infrahub/tree/v1.0.8) - 2024-12-03

### Added

- Add `sso_user_default_group` security setting to provide the name of a group to which SSO users will be assigned if the identity provider does not gives a list of groups to use ([#4924](https://github.com/opsmill/infrahub/issues/4924))
- Added a 'append_git_suffix' configuration setting for Git repositories that allows you to define domains for auto appending '.git' to repositories defined with an HTTP URL ([#5077](https://github.com/opsmill/infrahub/issues/5077))

### Fixed

- Loosened up logic to determine when an artifact needs to be regenerated during a proposed change. This is to ensure that we always generate a new artifact if required. Until some other parts are refactored this will also need that we will generate artifacts in a few situations where it's not strictly required. This last part is a temporary solution. ([#4198](https://github.com/opsmill/infrahub/issues/4198))
- Migrates from headless UI combobox to `cmdk` to resolve focus behavior issues when there is no result in the search anywhere ([#4715](https://github.com/opsmill/infrahub/issues/4715))
- Fix GraphQL mutations to make user permissions updates work correctly
- Update the alert message to better reflect the changes (between creation and update)
- Fix the objects delete modal on the global permission view
- Fix the global permission update mutation

([#4881](https://github.com/opsmill/infrahub/issues/4881), [#4952](https://github.com/opsmill/infrahub/issues/4952))
- Validate that a deleted schema node is not used in any relationship when loading a new schema ([#4912](https://github.com/opsmill/infrahub/issues/4912))
- Set content type of artifact when rendered to fix artifact content type if artifact definition has changed ([#4969](https://github.com/opsmill/infrahub/issues/4969))
- Raise error if pool allocation misses data to create node ([#5006](https://github.com/opsmill/infrahub/issues/5006))
- Process new schema before replacing branch in registry to avoid causing the GraphQL schema to be generated while the new schema is still loading ([#5008](https://github.com/opsmill/infrahub/issues/5008))
- Added a check on repository import and sync to wait until the schema has converged before importing additional objects when the repository contains an updated schema. ([#5051](https://github.com/opsmill/infrahub/issues/5051))
- Fix artifact definition targets when changed in repository so that it's reflected in the database ([#5060](https://github.com/opsmill/infrahub/issues/5060))
- GraphQL query with filters on attribute of type List return the expected result ([#5091](https://github.com/opsmill/infrahub/issues/5091))
- Ensure that permission queries are run in non isolated mode so that updates from the default branch are automatically reflected in other branches ([#5110](https://github.com/opsmill/infrahub/issues/5110))
- Add retry for transient database errors during IP reconciliation tasks
- Corrected configuration for prefect worker to never prompt for Git credentials on the console
- Fix artifact object relationship by enforcing it to be an artifact target
- Fix bug in IP reconciliation query around deleted nodes and relationships
- Fix issue that could cause diff generation to crash if a schema was renamed
- Fixes a bug that prevented running a generator from a read-only repository
- Generator groups are correctly created after merging a proposed change

## [1.0.7](https://github.com/opsmill/infrahub/tree/v1.0.7) - 2024-11-20

### Fixed
Expand Down
1 change: 0 additions & 1 deletion changelog/+artifact-target.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+ddd89dc2.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+generator-group-create.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+generator-read-only-repo.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+ipam-reconcile-delete.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+retry-ipam-reconcile.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+schema-rename-diff.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4198.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4715.fixed.md

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/4881.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4912.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4924.added.md

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/4952.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4969.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5006.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5008.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5051.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5060.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5077.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5091.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5110.fixed.md

This file was deleted.

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ services:
retries: 5

infrahub-server:
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.0.7}"
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.0.8}"
restart: unless-stopped
command: >
gunicorn --config backend/infrahub/serve/gunicorn_config.py
Expand Down Expand Up @@ -249,7 +249,7 @@ services:
deploy:
mode: replicated
replicas: 2
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.0.7}"
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.0.8}"
command: prefect worker start --type infrahubasync --pool infrahub-worker --with-healthcheck
restart: unless-stopped
depends_on:
Expand Down
112 changes: 112 additions & 0 deletions docs/docs/release-notes/infrahub/release-1_0_8.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
---
title: Release 1.0.8 - DEVELOPMENT
lykinsbd marked this conversation as resolved.
Show resolved Hide resolved
---
<table>
<tbody>
<tr>
<th>Release Number</th>
<td>1.0.8</td>
</tr>
<tr>
<th>Release Date</th>
<td>December 3rd, 2024</td>
</tr>
<tr>
<th>Release Codename</th>
<td>Stockholm, Patch #8</td>
</tr>
<tr>
<th>Tag</th>
<td>[infrahub-v1.0.8](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.0.8)</td>
</tr>
</tbody>
</table>

# Release 1.0.8

This release is a bug-fix release to resolve issues found in Infrahub v1.0.7 and prior.

## Main changes

The complete list of changes can always be found in the `CHANGELOG.md` file in the Infrahub Git repository.

### Added

- Add `sso_user_default_group` security setting to provide the name of a group to which SSO users will be assigned if the identity provider does not gives a list of groups to use ([#4924](https://github.com/opsmill/infrahub/issues/4924))
- Added a 'append_git_suffix' configuration setting for Git repositories that allows you to define domains for auto appending '.git' to repositories defined with an HTTP URL ([#5077](https://github.com/opsmill/infrahub/issues/5077))

### Fixed

- Loosened up logic to determine when an artifact needs to be regenerated during a proposed change. This is to ensure that we always generate a new artifact if required. Until some other parts are refactored this will also need that we will generate artifacts in a few situations where it's not strictly required. This last part is a temporary solution. ([#4198](https://github.com/opsmill/infrahub/issues/4198))
- Migrates from headless UI combobox to `cmdk` to resolve focus behavior issues when there is no result in the search anywhere ([#4715](https://github.com/opsmill/infrahub/issues/4715))
- Fix GraphQL mutations to make user permissions updates work correctly
- Update the alert message to better reflect the changes (between creation and update)
- Fix the objects delete modal on the global permission view
- Fix the global permission update mutation

([#4881](https://github.com/opsmill/infrahub/issues/4881), [#4952](https://github.com/opsmill/infrahub/issues/4952))
- Validate that a deleted schema node is not used in any relationship when loading a new schema ([#4912](https://github.com/opsmill/infrahub/issues/4912))
- Set content type of artifact when rendered to fix artifact content type if artifact definition has changed ([#4969](https://github.com/opsmill/infrahub/issues/4969))
- Raise error if pool allocation misses data to create node ([#5006](https://github.com/opsmill/infrahub/issues/5006))
- Process new schema before replacing branch in registry to avoid causing the GraphQL schema to be generated while the new schema is still loading ([#5008](https://github.com/opsmill/infrahub/issues/5008))
- Added a check on repository import and sync to wait until the schema has converged before importing additional objects when the repository contains an updated schema. ([#5051](https://github.com/opsmill/infrahub/issues/5051))
- Fix artifact definition targets when changed in repository so that it's reflected in the database ([#5060](https://github.com/opsmill/infrahub/issues/5060))
- GraphQL query with filters on attribute of type List return the expected result ([#5091](https://github.com/opsmill/infrahub/issues/5091))
- Ensure that permission queries are run in non isolated mode so that updates from the default branch are automatically reflected in other branches ([#5110](https://github.com/opsmill/infrahub/issues/5110))
- Add retry for transient database errors during IP reconciliation tasks
- Corrected configuration for prefect worker to never prompt for Git credentials on the console
- Fix artifact object relationship by enforcing it to be an artifact target
- Fix bug in IP reconciliation query around deleted nodes and relationships
- Fix issue that could cause diff generation to crash if a schema was renamed
- Fixes a bug that prevented running a generator from a read-only repository
- Generator groups are correctly created after merging a proposed change

## Migration guide

The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub.
However, at a high-level, it will involve getting the latest version of the Infrahub code, and then performing any needed Database Migrations and Schema updates.

Please ensure you have a **backup of your Infrahub environment** prior to attempting any migration or upgrade activities.

### Migration of an Infrahub instance

**First**, update the Infrahub version running in your environment.

Below are some example ways to get the latest version of Infrahub in your environment.

- For deployments via Docker Compose, update your container version by updating the `VERSION` environment variable and relaunch:
- `export VERSION="1.0.8"; docker compose pull && docker compose up -d`
- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release

**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands.

> Note: If you are running Infrahub in Docker/K8s, these commands need to run from a container where Infrahub is installed.

```shell
infrahub db migrate
infrahub db update-core-schema
```

**Finally**, restart all instances of Infrahub.

### Migration of a dev or demo instance

If you are using the `dev` or `demo` environments, we have provided `invoke` commands to aid in the migration to the latest version.
The below examples provide the `demo` version of the commands, however similar commands can be used for `dev` as well.

```shell
invoke demo.stop
invoke demo.build
invoke demo.migrate
invoke demo.start
```

If you don't want to keep your data, you can start a clean instance with the following command.

> **Warning: All data will be lost, please make sure to backup everything you need before running this command.**

```shell
invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data
```

The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork.
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
---
title: Release 1.0.8 - DEVELOPMENT
title: Release 1.0.9 - DEVELOPMENT
---
<table>
<tbody>
<tr>
<th>Release Number</th>
<td>1.0.8</td>
<td>1.0.9</td>
</tr>
<tr>
<th>Release Date</th>
<td>TBD</td>
</tr>
<tr>
<th>Release Codename</th>
<td>Stockholm, Patch #8</td>
<td>Stockholm, Patch #9</td>
</tr>
<tr>
<th>Tag</th>
<td>[infrahub-v1.0.8](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.0.8)</td>
<td>[infrahub-v1.0.9](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.0.9)</td>
</tr>
</tbody>
</table>

# Release 1.0.8
# Release 1.0.9

This release is a bug-fix release to resolve issues found in Infrahub v1.0.7 and prior.
This release is a bug-fix release to resolve issues found in Infrahub v1.0.8 and prior.

## Main changes

Expand All @@ -44,7 +44,7 @@ Please ensure you have a **backup of your Infrahub environment** prior to attemp
Below are some example ways to get the latest version of Infrahub in your environment.

- For deployments via Docker Compose, update your container version by updating the `VERSION` environment variable and relaunch:
- `export VERSION="1.0.8"; docker compose pull && docker compose up -d`
- `export VERSION="1.0.9"; docker compose pull && docker compose up -d`
- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release

**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands.
Expand Down
3 changes: 2 additions & 1 deletion docs/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ const sidebars: SidebarsConfig = {
slug: 'release-notes/infrahub',
},
items: [
// 'release-notes/infrahub/release-1_0_7-DRAFT'
'release-notes/infrahub/release-1_0_8',
'release-notes/infrahub/release-1_0_7',
'release-notes/infrahub/release-1_0_6',
'release-notes/infrahub/release-1_0_5',
'release-notes/infrahub/release-1_0_4',
Expand Down
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version: 3.2.6
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.7"
appVersion: "1.0.8"

dependencies:
- name: neo4j
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "infrahub-server"
version = "1.0.7"
version = "1.0.8"
description = "Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run."
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down
Loading