Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: PKI Sign Certificate #18343

Merged
merged 14 commits into from
Dec 15, 2022
Merged

UI: PKI Sign Certificate #18343

merged 14 commits into from
Dec 15, 2022

Conversation

hashishaw
Copy link
Collaborator

Adds form and page for signing CSR certificate

pki-sign-cert

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

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

This was a lot! 🥴 Nice work!!

Some cleanup comments and questions! Nothing blocking, though.

const data = serialNumber ? { serial_number: serialNumber } : { certificate };
return this.ajax(`${this.buildURL()}/${encodePath(backend)}/revoke`, 'POST', { data });
}
import PkiCertificateBaseAdapter from './base';
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

ui/app/models/pki/role.js Outdated Show resolved Hide resolved
ui/app/serializers/pki/certificate/generate.js Outdated Show resolved Hide resolved
ui/app/serializers/pki/certificate/sign.js Outdated Show resolved Hide resolved
ui/lib/core/addon/components/form-field-groups.js Outdated Show resolved Hide resolved
{ label: role, route: 'roles.role.details' },
{ label: 'sign certificate' },
];
// This is updated on successful generate in the controller
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️ thank you for the comment!

ui/tests/integration/components/pki/keys/form-test.js Outdated Show resolved Hide resolved
ui/app/models/pki/role.js Show resolved Hide resolved
ui/tests/unit/adapters/pki/certificate/sign-test.js Outdated Show resolved Hide resolved
urlForCreateRecord(modelName, snapshot) {
const { name, backend } = snapshot.record;
if (!name || !backend) {
const { role, backend } = snapshot.record;
Copy link
Contributor

Choose a reason for hiding this comment

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

nice role is much easier to infer the meaning from!

hashishaw and others added 4 commits December 15, 2022 09:22
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
@hashishaw hashishaw enabled auto-merge (squash) December 15, 2022 16:17
@hashishaw hashishaw merged commit 6255d6e into main Dec 15, 2022
@hashishaw hashishaw deleted the ui/VAULT-9351/pki-cert-sign branch December 15, 2022 22:56
AnPucel pushed a commit that referenced this pull request Jan 14, 2023
AnPucel pushed a commit that referenced this pull request Jan 25, 2023
AnPucel pushed a commit that referenced this pull request Feb 3, 2023
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants