Skip to content

fix: 336 - make audience ref#339

Closed
ben-wilson-mews wants to merge 1 commit into
OctopusDeploy:mainfrom
ben-wilson-mews:338-oidc-audience
Closed

fix: 336 - make audience ref#339
ben-wilson-mews wants to merge 1 commit into
OctopusDeploy:mainfrom
ben-wilson-mews:338-oidc-audience

Conversation

@ben-wilson-mews

@ben-wilson-mews ben-wilson-mews commented Jun 13, 2025

Copy link
Copy Markdown

#338

Make audience a ref. I can't see any usage, getters or setters in the codebase. So provided it passes the tests we should be good.

This is a blocker for adopting the terraform provider as it's currently none functional for deploying OIDC on service accounts

submit audience as null to api instead of “”, matching UI behavior
@CLAassistant

CLAassistant commented Jun 13, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ben-wilson-mews

Copy link
Copy Markdown
Author

Hey @denys-octopus @APErebus , it looks like you're the most active maintainers on here. Would it be possible to get some 👀 on this when you get a moment please?

@alexrudd alexrudd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We've also just hit this problem in migrating to using OICD accounts for our integration with GitHub actions

Name string `json:"Name"`
ServiceAccountID string `json:"ServiceAccountId"`
Subject string `json:"Subject"`
Audience *string `json:"Audience"`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looking at some of the other API structs in the repo, I think using omitempty would be more consistent.

Suggested change
Audience *string `json:"Audience"`
Audience string `json:"Audience,omitempty"`

@N-lson

N-lson commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This has been fixed in #422

@N-lson N-lson closed this Jun 9, 2026
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.

4 participants