Skip to content

Remove selectors from agent logs#6732

Merged
sorindumitru merged 2 commits intospiffe:mainfrom
sorindumitru:remove-selectors-from-logs
Mar 11, 2026
Merged

Remove selectors from agent logs#6732
sorindumitru merged 2 commits intospiffe:mainfrom
sorindumitru:remove-selectors-from-logs

Conversation

@sorindumitru
Copy link
Copy Markdown
Collaborator

The selectors can contain all sorts of information, it's probably best to never log the full set of discovered selectors from plugins. There is still one more place which logs it at debug level, which should be ok since they are useful for debugging.

@sorindumitru sorindumitru added this to the 1.14.3 milestone Mar 11, 2026
@sorindumitru sorindumitru force-pushed the remove-selectors-from-logs branch from ae0de27 to b218792 Compare March 11, 2026 20:30
This reverts commit 3138c02.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
@sorindumitru sorindumitru force-pushed the remove-selectors-from-logs branch from b218792 to d5707c0 Compare March 11, 2026 20:32
Copy link
Copy Markdown
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

Thank you @sorindumitru!

// If the client times out before all workload attestation plugins have reported selectors or an error,
// it can be helpful to see the partial set of selectors discovered for debugging purposes.
log.WithField(telemetry.PartialSelectors, selectors).Error("Timed out collecting selectors for PID")
log.Error("Timed out collecting selectors for PID")
Copy link
Copy Markdown
Member

@amartinezfayo amartinezfayo Mar 11, 2026

Choose a reason for hiding this comment

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

The comment above still says "it can be helpful to see the partial set of selectors discovered for debugging purposes," but this PR removes that. I think it's worth updating or removing that comment.

@sorindumitru sorindumitru force-pushed the remove-selectors-from-logs branch from d5707c0 to a5d533e Compare March 11, 2026 20:46
Copy link
Copy Markdown
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

🎉

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
@sorindumitru sorindumitru enabled auto-merge March 11, 2026 20:48
@sorindumitru sorindumitru added this pull request to the merge queue Mar 11, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 11, 2026
@sorindumitru sorindumitru added this pull request to the merge queue Mar 11, 2026
Merged via the queue into spiffe:main with commit 60998fb Mar 11, 2026
50 checks passed
iamP1 pushed a commit to iamP1/spire that referenced this pull request Mar 16, 2026
* Revert "Include selectors in 'no identity issued' logs (spiffe#6179)"

This reverts commit 3138c02.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Remove partial selectors logging

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: iamP1 <nhegde@redhat.com>
iamP1 pushed a commit to iamP1/spire that referenced this pull request Mar 20, 2026
* Revert "Include selectors in 'no identity issued' logs (spiffe#6179)"

This reverts commit 3138c02.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Remove partial selectors logging

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: iamP1 <nhegde@redhat.com>
Signed-off-by: iamP1 <nhegde@redhat.com>
iamP1 pushed a commit to iamP1/spire that referenced this pull request Mar 20, 2026
* Revert "Include selectors in 'no identity issued' logs (spiffe#6179)"

This reverts commit 3138c02.

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

* Remove partial selectors logging

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>

---------

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>Signed-off-by: iamP1 <nhegde@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants