Skip to content

Added support for PAM Config Command in DotNet SDK and CLI.#516

Open
amandli-ks wants to merge 11 commits into
sdk-pam-config-releasefrom
sdk-pam-config-dev
Open

Added support for PAM Config Command in DotNet SDK and CLI.#516
amandli-ks wants to merge 11 commits into
sdk-pam-config-releasefrom
sdk-pam-config-dev

Conversation

@amandli-ks

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread Commander/PAM/PamConfigEditService.cs
Comment thread Commander/PAM/PamConfigCommand.cs
return null;
}

var allowed = allowedTypes == null

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you can refactor like
var allowed = allowedTypes?.ToHashSet(StringComparer.Ordinal);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ToHashSet() is not available in netstandard2.0


if (TryGetTypedRecord(vault, identifier, out var typedByUid))
{
if (allowedTypes == null || allowedTypes.Contains(typedByUid.TypeName ?? ""))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

.Contains(typedByUid.TypeName ?? "")), use string.Empty

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Comment thread KeeperSdk/plugins/PAM/PamVaultHelpers.cs Outdated

@adeshmukh-ks adeshmukh-ks 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.

Need to discuss DAG implementation changes, please make other changes as discussed

Comment thread KeeperSdk/plugins/PAM/ConfigUtils.cs Outdated
public static async Task SetConfigurationControllerAsync(
IAuthentication auth,
string configurationUid,
string controllerUid)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if this is a user facing function, name this to gatewayuid instead of controlleruid to avoid confusion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

@amandli-ks
amandli-ks changed the base branch from sdk-pam-config-rel to sdk-pam-config-release July 27, 2026 06:46
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