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

Backport of UI: add SSH role attribute allowed_domains_template into release/1.14.x #23127

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/23119.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: Added allowed_domains_template field for CA type role in SSH engine
```
7 changes: 6 additions & 1 deletion ui/app/models/role-ssh.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const CA_FIELDS = [
'allowedUsers',
'allowedUsersTemplate',
'allowedDomains',
'allowedDomainsTemplate',
'ttl',
'maxTtl',
'allowedCriticalOptions',
Expand Down Expand Up @@ -76,12 +77,16 @@ export default Model.extend({
}),
allowedUsersTemplate: attr('boolean', {
helpText:
'Specifies that Allowed users can be templated e.g. {{identity.entity.aliases.mount_accessor_xyz.name}}',
'Specifies that Allowed Users can be templated e.g. {{identity.entity.aliases.mount_accessor_xyz.name}}',
}),
allowedDomains: attr('string', {
helpText:
'List of domains for which a client can request a certificate (e.g. `example.com`, or `*` to allow all)',
}),
allowedDomainsTemplate: attr('boolean', {
helpText:
'Specifies that Allowed Domains can be set using identity template policies. Non-templated domains are also permitted.',
}),
cidrList: attr('string', {
helpText: 'List of CIDR blocks for which this role is applicable',
}),
Expand Down