Replies: 4 comments 10 replies
-
Sunds good to me. I just was wandering which convention for the new option we should follow. It looks like we have the convention of using underscore like |
Beta Was this translation helpful? Give feedback.
-
Hmmm isn't Something like:
|
Beta Was this translation helpful? Give feedback.
-
And we should also invest in better output for this case. For example, if the deploy running without a stemcell-change and there are new credentials, we should print an information that we wait to apply this credentials as long as there is no new stemcell... |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback so far! We've submitted an initial PR for the implemented feature here: #2460 |
Beta Was this translation helpful? Give feedback.
-
Hi folks!
We are currently exploring ways to be better control updates to variables during BOSH deploys in order to facilitate continuous certificate rotation. We want a way to control the roll out of new, rotated certificate versions to times where a long deploy is already expected.
Currently, when a manifest is deployed, the BOSH Director will query CredHub for the latest version of each variable in the manifest. This ensures that deployments always use the current configuration stored in CredHub.
This is a problem for being able to automatically rotate certificates - if a new version of a certificate is in CredHub, the deploy will use it. Normally this would be desirable, but since the rotation is done without users taking a direct action, they may not be aware that there are updated certs and thus will be surprised by a longer-than-normal deploy if they have no other changes. Predicting when there's going to be a longer-than-normal deploy is important for strict change / maintenance windows.
We're thinking about adding a new key to variable declarations that will prevent BOSH from asking for the latest version unless a new stemcell is also being deployed. When deploying a new stemcell, you are already expecting a longer deploy time because the VMs must be recreated, making it a great time to roll out new certificates. The new key on variables should have two potential values:
on-deploy
- BOSH will use the current behavior of looking up the latest variable value on each deploy (default)on-stemcell-change
- BOSH will only look up the latest variable value when a deploy is occurring with a new stemcellExample:
Note: this would be distinct from the existing
update_mode
property, which controls when BOSH asks CredHub to regenerate a variable based on its options changing. i.e. using a new version already in CredHub vs generating new version using CredHub.While our use case is for certificates, it could be applied to any type of variable where delaying rollout could be beneficial. Additional strategies could be added in the future (e.g. update variables on other manifest changes) if there is a use case / value.
We are currently exploring this idea and seeing what other implications the feature may have on BOSH.
Beta Was this translation helpful? Give feedback.
All reactions