Skip to content

oidc dynamic credential support - #177

Merged
iam404 merged 5 commits into
mainfrom
feature-oidc
Jun 15, 2026
Merged

oidc dynamic credential support#177
iam404 merged 5 commits into
mainfrom
feature-oidc

Conversation

@iam404

@iam404 iam404 commented May 28, 2026

Copy link
Copy Markdown
Member

No description provided.

@iam404
iam404 requested a review from a team as a code owner May 28, 2026 16:53

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f353d829cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

..., description="Vault address (e.g. https://vault.example.com)"
)
role_name: str = Field(..., alias="role")
namespace: str | None = None

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require Vault namespace when creating configurations

When creating Vault OIDC configurations, namespace is part of the required create payload in the HYOK Vault OIDC API (and go-tfe sends it as a non-omitempty string). Leaving it optional here means callers can construct VaultOIDCConfigurationCreateOptions(address=..., role_name=...), and _build_payload(..., exclude_none=True) will omit namespace, producing a request the server rejects instead of catching the invalid options locally.

Useful? React with 👍 / 👎.

role_name="hcp-terraform",
namespace="admin",
jwt_auth_path="jwt",
tls_ca_certificate="-----BEGIN CERTIFICATE-----\n...",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Encode the Vault CA certificate before sending it

This example passes a raw PEM block into the field that is serialized as encoded-cacert, but the Vault OIDC API expects that attribute to be a base64-encoded CA certificate. Users copying this for self-hosted Vault with a custom CA will send an invalid value and get a server-side validation error; the example should either base64-encode the PEM first or show an already encoded value.

Useful? React with 👍 / 👎.

Comment thread examples/oidc_aws_e2e.py Fixed
Comment thread examples/oidc_aws_e2e.py Fixed
Comment thread examples/oidc_setup.py Fixed
Comment thread examples/oidc_setup.py Fixed
@iam404 iam404 added the enhancement New feature or request label May 28, 2026
@iam404 iam404 added this to the 1.1.0 milestone May 28, 2026
isivaselvan
isivaselvan previously approved these changes Jun 15, 2026
@iam404
iam404 merged commit 47f332c into main Jun 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants