Skip to content

feat: Add config-manager push secret-mappings command#85

Draft
dallinjsevy wants to merge 1 commit intomainfrom
feature/config-manager-push-secret-mappings
Draft

feat: Add config-manager push secret-mappings command#85
dallinjsevy wants to merge 1 commit intomainfrom
feature/config-manager-push-secret-mappings

Conversation

@dallinjsevy
Copy link
Copy Markdown

No description provided.

@dallinjsevy dallinjsevy force-pushed the feature/config-manager-push-secret-mappings branch from 9344127 to 50a3a18 Compare March 25, 2026 22:30
@phalestrivir phalestrivir force-pushed the feature/config-manager-push-secret-mappings branch from 50a3a18 to a6720e2 Compare March 31, 2026 23:07
Copy link
Copy Markdown

@phalestrivir phalestrivir left a comment

Choose a reason for hiding this comment

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

See comments below

if (options.realm) {
realm = options.realm;
}
if (await getTokens(false, true, deploymentTypes)) {
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 are going to want to check that when the -n, --name flag is provided that the -r, --realm flag is provided as well, since fr-config-manager requires both to be present when using -n, --name.

*/

/*
// ForgeOps
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should say Cloud

Comment on lines +51 to +53
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://nightly.gcp.forgeops.com/am frodo config-manager push secret-mappings -D test/e2e/exports/fr-config-manager/forgeops -m cloud
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://nightly.gcp.forgeops.com/am frodo config-manager push secret-mappings -r alpha -D test/e2e/exports/fr-config-manager/forgeops -m cloud
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://nightly.gcp.forgeops.com/am frodo config-manager push secret-mappings -n am.services.oauth2.stateless.signing.HMAC -D test/e2e/exports/fr-config-manager/forgeops -m cloud
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

FRODO_HOST is wrong, it should be the host of the frodo dev tenant (look at the other frodo tests to see what that looks like).

You also don't need to have the -m flag, that's optional here if you want to remove it.

Comment on lines +69 to +86
describe('frodo config-manager push secret-mappings', () => {
test(`"frodo config-manager push secret-mappings -D ${allDirectory} -m cloud": should import the password policy into cloud"`, async () => {
const CMD = `frodo config-manager push secret-mappings -D ${allDirectory} -m cloud`;
const { stdout } = await exec(CMD, cloudEnv);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();
});

test(`"frodo config-manager push secret-mappings -r alpha ${allDirectory} -m cloud": should import a specific password policy by name into cloud"`, async () => {
const CMD = `frodo config-manager push secret-mappings -r alpha -D ${allDirectory} -m cloud`;
const { stdout } = await exec(CMD, cloudEnv);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();
});
test(`"frodo config-manager push secret-mappings -n am.services.oauth2.stateless.signing.HMAC ${allDirectory} -m cloud": should import a specific password policy by name into cloud"`, async () => {
const CMD = `frodo config-manager push secret-mappings -n am.services.oauth2.stateless.signing.HMAC -D ${allDirectory} -m cloud`;
const { stdout } = await exec(CMD, cloudEnv);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();
});
}); No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The descriptions on these tests say password policy, so they need to be updated

@dallinjsevy dallinjsevy marked this pull request as draft April 2, 2026 17:52
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.

2 participants