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

Add eventgrid/topic extension to export keys #3633

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

super-harsh
Copy link
Collaborator

Closes #3630

What this PR does / why we need it:

Added eventgrid/topic extension to export keys.

Special notes for your reviewer:

Was trying on adding a latest stable version as well, but looks like their swagger has a field which is wrongly marked as secret.

If applicable:

  • this PR contains documentation
  • this PR contains tests

Copy link
Member

@theunrepentantgeek theunrepentantgeek left a comment

Choose a reason for hiding this comment

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

I think there's a couple nil-guards needed, otherwise good.

Comment on lines 99 to 100
collector.AddValue(operatorSpecSecrets.Key1, *keys.Key1)
collector.AddValue(operatorSpecSecrets.Key2, *keys.Key2)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't these be guarded so you don't dereference if nill?

The guard condition on L#84 only says one of Key1 and Key2 are non-nil, it doesn't guarantee both are non-nill.

Copy link
Member

Choose a reason for hiding this comment

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

I know the usual use case will be asking for both, but it's possible for a user to only ask for Key2 and that should work.

@super-harsh super-harsh self-assigned this Dec 6, 2023
@super-harsh super-harsh added this to the v2.5.0 milestone Dec 6, 2023
@super-harsh super-harsh added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit 38ef44f Dec 6, 2023
8 checks passed
@super-harsh super-harsh deleted the feature/export-topic-keys branch December 6, 2023 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Feature: Retrieve event grid topic access keys
3 participants