Skip to content

APIGOV-32516 - Create IdentityProvider and IdentityProviderMetadata resources from agent IdP config#1029

Open
sbolosan wants to merge 15 commits intomainfrom
APIGOV-32516
Open

APIGOV-32516 - Create IdentityProvider and IdentityProviderMetadata resources from agent IdP config#1029
sbolosan wants to merge 15 commits intomainfrom
APIGOV-32516

Conversation

@sbolosan
Copy link
Copy Markdown
Collaborator

New feature flag agentFeatures.manageIDPResources (default: false). When enabled, the SDK creates and maintains IdentityProvider and IdentityProviderMetadata resources in Engage during IdP provider registration.

IdP lifecycle logic queries Engage before creating to avoid duplicates. On creation, environment credential policies (expiry/visibility) are applied to the new resource and IdentityProviderMetadata is populated from live IdP server metadata.

Optional IDPResourceSupplier extension point allows agent implementations to supply custom IdentityProvider or IdentityProviderMetadata resource shapes instead of the SDK defaults.

The CredentialRequestDefinition registered at startup is linked to the IdentityProvider resource name created or found during IdP registration.

External credential short-circuit: when a credential's provision mode is external, the SDK skips RegisterClient during both provisioning and rotate — the client was registered outside the SDK and should not be touched. New constant CredProvisionModeExternal introduced.

GetProvisionMode() added to the CredentialRequest interface and its mock to expose the provision mode to provisioning handlers.

SetIDPResourceName / GetIDPResourceName added to both the provider registry and IdP registry interfaces and implementations, storing the Engage resource name keyed by metadata URL for later lookup.

Api-server models regenerated from branch APIGOV-32071: new IdentityProviderMetadata resource, IdentityProvider policies subresource, Credential.spec.provision.mode field, and updated IdentityProvider spec shape.

Comment thread pkg/agent/idplifecycle.go
Comment thread pkg/agent/idplifecycle.go Outdated
jcollins-axway
jcollins-axway previously approved these changes May 1, 2026
Comment thread pkg/agent/idplifecycle.go
Comment thread pkg/apic/apiserver/models/catalog/v1alpha1/model_credential_spec.go Outdated
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.

3 participants