Skip to content

Add Annotations for TLS Skip Verify and Ignoring Services for Kubernetes App Discovery#36394

Merged
tigrato merged 1 commit intomasterfrom
tigrato/kube-discovery-extend-labels
Jan 12, 2024
Merged

Add Annotations for TLS Skip Verify and Ignoring Services for Kubernetes App Discovery#36394
tigrato merged 1 commit intomasterfrom
tigrato/kube-discovery-extend-labels

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Jan 8, 2024

This PR extends existing supported annotations to be able to import applications from Kubernetes that require disabling TLS verification.

It also adds teleport.dev/ignore annotation when users want to exclude single Kubernetes services from being imported when they share the same labels as other services that must be imported.

Fixes #36328
Fixes #36177

Changelog: Enhance Kubernetes App Discovery functionality to provide the ability to disable specific Service imports and configure the TLS Skip Verify option using an Annotation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 8, 2024

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
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 8, 2024

🤖 Vercel preview here: https://docs-hnjr3c8rh-goteleport.vercel.app/docs/ver/preview

@tigrato tigrato force-pushed the tigrato/kube-discovery-extend-labels branch from 63b0831 to 635e3ce Compare January 8, 2024 11:18
…tes App Discovery

This PR extends existing supported annotations to be able to import
applications from Kubernetes that require disabling TLS verification.

It also adds `teleport.dev/ignore` annotation when users want to exclude
single Kubernetes services from being imported when they share the same
labels as other services that must be imported.

Fixes #36328
Fixes #36177

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/kube-discovery-extend-labels branch from 635e3ce to b68a04a Compare January 8, 2024 11:20
@tigrato tigrato changed the title Add Annotations for TLS Skip Verify and Ignoring Services for Kuberne… Add Annotations for TLS Skip Verify and Ignoring Services for Kubernetes App Discovery Jan 8, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 8, 2024

🤖 Vercel preview here: https://docs-bq1bcz0np-goteleport.vercel.app/docs/ver/preview

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 8, 2024

🤖 Vercel preview here: https://docs-mazrdakdz-goteleport.vercel.app/docs/ver/preview

@tigrato tigrato enabled auto-merge January 11, 2024 19:13
Comment thread api/types/constants.go
// DiscoveryAppInsecureSkipVerify specifies the TLS verification enforcement for a discovered app created from Kubernetes service.
DiscoveryAppInsecureSkipVerify = TeleportNamespace + "/insecure-skip-verify"
// DiscoveryAppIgnore specifies if a Kubernetes service should be ignored by discovery service.
DiscoveryAppIgnore = TeleportNamespace + "/ignore"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we rename the constant to something more generic for operator usage as well? should the operator use resources.teleport.dev/ignore instead?

I would prefer a single annotation though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I used teleport.dev to keep consistency with all other labels used by app discovery 😭

@tigrato tigrato enabled auto-merge January 12, 2024 11:01
@tigrato tigrato added this pull request to the merge queue Jan 12, 2024
Merged via the queue into master with commit 31a5620 Jan 12, 2024
@tigrato tigrato deleted the tigrato/kube-discovery-extend-labels branch January 12, 2024 11:22
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v14 Create PR

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

Projects

None yet

4 participants