Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Project Template with Certificate Variable Type cannot have default value

Open BobJWalker opened this issue 5 years ago • 11 comments

Prerequisites

  • [x] I have verified the problem exists in the latest version
  • [x] I have searched open and closed issues to make sure it isn't already reported
  • [x] I have written a descriptive issue title
  • [x] I have linked the original source of this report
  • [x] I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)

The bug

In the project template variable edit screen I can select certificate as the variable type and I can also enter in a default value.

image

However, when I go to the tenant screen the default value isn't populated and it doesn't appear to be an option for me to select or clear that.

image

The default value is set to a variable in the project: image

What I expected to happen

I should be able to set a default certificate. Use case: the majority of my customers are hosted on my webservers, they have a subdomain [tenantsite].something.com. Customers I host will use the default cert. Customers I don't host will have their own certificates.

Affected versions

Octopus Server: 2019.11.x

Workarounds

Not set a default value, which means quite a bit of clicking. It is possible to set a variable set variable template.

image

That will appear as a common variable in the tenant. image

It doesn't solve the core problem, but hopefully it helps with too many clicking.

Links

Community Slack: https://octopususergroup.slack.com/archives/C6UGLUWMQ/p1579007007053700

BobJWalker avatar Jan 14 '20 14:01 BobJWalker

Any news? 🙏

ronid avatar Jan 20 '20 08:01 ronid

up

ronid avatar Feb 11 '20 09:02 ronid

Hi guys, any news??

ronid avatar Mar 19 '20 09:03 ronid

@OctopusBob any update?

ronid avatar Jun 16 '20 07:06 ronid

I'll reach out to our engineers to see what the priority is on this.

BobJWalker avatar Jun 17 '20 16:06 BobJWalker

Ho @ronid This issue has been placed on our internal support backlog. This means we'll attempt to resolve the issue, but unfortunately is not a guarantee that an engineer will be assigned the issue, so I couldn't provide an estimate as to when it would be picked up, if at all.

We'll update the issue with any changes.

mcasperson avatar Jun 22 '20 02:06 mcasperson

A more effective workaround here is to set the default value to the id of the certificate, rather than binding it to a variable.

image

When configuring the value for this template for a tenant, it will now correctly show the specific certificate as the default value for this template.

image

TomPeters avatar Jun 29 '20 05:06 TomPeters

@ronid - Does the workaround above work for your use case?

mcasperson avatar Jun 29 '20 05:06 mcasperson

Sorry for the late response.. Not working for me unfortunately, I need default certificate value to be empty, and only override it for specific tenants.

ronid avatar Aug 04 '20 07:08 ronid

Second that. Can't use a certificate in a template properly. If I set a default certificate assigned to a variable (so that it varies based on the environment), I can't deploy anything unless I override the cert. image

Lexy2 avatar Mar 27 '24 07:03 Lexy2

The Octopus engineering team has reviewed this issue.

We understand this would be a valuable improvement to the tenanted deployment experience, but based on our current plans we've classed this as low priority, and as such we won't work on supporting this in the near future.

We prioritize issues based on the number of people affected, the impact type, and available workarounds. If you’ve encountered this issue and haven’t informed our support team, please email [email protected]. Knowing how many people this issue affects helps us determine its priority.

N-lson avatar Jul 26 '24 05:07 N-lson