Skip to content

Change the tctl format for database_object_import_rule resource#39764

Merged
Tener merged 4 commits into
masterfrom
tener/db-import-rule-tctl-fix
Apr 4, 2024
Merged

Change the tctl format for database_object_import_rule resource#39764
Tener merged 4 commits into
masterfrom
tener/db-import-rule-tctl-fix

Conversation

@Tener
Copy link
Copy Markdown
Contributor

@Tener Tener commented Mar 25, 2024

Prior to this change the resource wouldn't round-trip through tctl get ... | tctl create because of header incompatibilities.

In general, all resources must be compatible with services.UnknownResource for their tctl storage format. Some other new-style resources are not, and this will need further fixes.

This is technically a breaking change, however there is no clear way to fix it otherwise, and the resource is very new so it is unlikely to cause widespread issues.

Changelog: Fix incorrect format for database_object_import_rule resources with non-empty expiry.

Tener added 2 commits March 25, 2024 13:59
Prior to this change the resource wouldn't round-trip through `tctl get ... | tctl create` because of header incompatibilities.

In general, all resources must be compatible with services.UnknownResource for their `tctl` storage format.
@github-actions github-actions Bot requested review from rudream and strideynet March 25, 2024 13:24
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@github-actions github-actions Bot added size/sm tctl tctl - Teleport admin tool labels Mar 25, 2024
@Tener Tener added the sec-internal Security Vulnerability - Reported by employees or auditors, no known exploitation label Mar 25, 2024
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@Tener Tener changed the title Change the tctl format for database_object_import_rule resource. Change the tctl format for database_object_import_rule resource Mar 25, 2024
@Tener Tener removed the sec-internal Security Vulnerability - Reported by employees or auditors, no known exploitation label Mar 25, 2024
@Tener Tener changed the title Change the tctl format for database_object_import_rule resource Change the tctl format for database_object_import_rule resource Mar 25, 2024
Base automatically changed from tener/resource-expiry-consistency to master March 25, 2024 14:37
@Tener
Copy link
Copy Markdown
Contributor Author

Tener commented Mar 27, 2024

Gentle ping @rudream @strideynet

@Tener
Copy link
Copy Markdown
Contributor Author

Tener commented Apr 3, 2024

PTAL @rudream @strideynet

Copy link
Copy Markdown
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for late review - I got most of the way through and forgot to finish.

@Tener Tener enabled auto-merge April 4, 2024 10:53
@Tener Tener added this pull request to the merge queue Apr 4, 2024
Merged via the queue into master with commit 0f5f612 Apr 4, 2024
@Tener Tener deleted the tener/db-import-rule-tctl-fix branch April 4, 2024 11:29
@public-teleport-github-review-bot
Copy link
Copy Markdown

@Tener See the table below for backport results.

Branch Result
branch/v15 Failed

Tener added a commit that referenced this pull request Apr 4, 2024
…39764)

* Fix incorrect expiry when using resource153ToLegacyAdapter

* Change the `tctl` format for database_object_import_rule resource.

Prior to this change the resource wouldn't round-trip through `tctl get ... | tctl create` because of header incompatibilities.

In general, all resources must be compatible with services.UnknownResource for their `tctl` storage format.

* Lint fix
github-merge-queue Bot pushed a commit that referenced this pull request Apr 17, 2024
…39764) (#40203)

* Fix incorrect expiry when using resource153ToLegacyAdapter

* Change the `tctl` format for database_object_import_rule resource.

Prior to this change the resource wouldn't round-trip through `tctl get ... | tctl create` because of header incompatibilities.

In general, all resources must be compatible with services.UnknownResource for their `tctl` storage format.

* Lint fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants