Skip to content

Fix AccessList proto 0 time mapping to epoch#36810

Merged
hugoShaka merged 6 commits intomasterfrom
hugo/fix-accesslist-zero-time
Jan 25, 2024
Merged

Fix AccessList proto 0 time mapping to epoch#36810
hugoShaka merged 6 commits intomasterfrom
hugo/fix-accesslist-zero-time

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka commented Jan 17, 2024

This PRs does exactly like https://github.com/gravitational/teleport/pull/32135/files but for AccessList NextAuditDate: ensuring proto zero time is converted to go's zero time and vice versa.

This issue happens if an accesslist is created from a protobuf struct without NextAuditDate set, which ios the case for the TF provider.

changelog: Fix Terraform provider creating AccessLists with next audit date set to Epoch

@hugoShaka hugoShaka added bug terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo backport/branch/v14 labels Jan 17, 2024
@hugoShaka hugoShaka requested a review from mdwn January 17, 2024 20:24
@hugoShaka hugoShaka marked this pull request as ready for review January 17, 2024 20: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 requested review from camscale and tigrato January 17, 2024 20:24
@hugoShaka hugoShaka changed the title Fix AccessList without next audit date in Terraform Fix AccessList proto 0 time mapping to epoch Jan 17, 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.

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from camscale January 18, 2024 10:20
@hugoShaka hugoShaka enabled auto-merge January 24, 2024 01:03
@hugoShaka hugoShaka added this pull request to the merge queue Jan 25, 2024
Merged via the queue into master with commit ea73e09 Jan 25, 2024
@hugoShaka hugoShaka deleted the hugo/fix-accesslist-zero-time branch January 25, 2024 15:24
@public-teleport-github-review-bot
Copy link
Copy Markdown

@hugoShaka See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR

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

Labels

bug size/sm terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants