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

Partially remove the default for --cookie-secret-file. #13521

Merged

Conversation

Katharine
Copy link
Member

Code added to deck in #13323 assumes that --cookie-secret-file is either set to a file that exists or not set at all. This is not the case - the default is /etc/cookie/secret, but unless you set a different flag nothing ever checked that it existed until now. The result is deck crashing on startup trying to read a file that doesn't exist.

This PR removes the default. However, for backwards compatibility, if it is not set, and the flag depending on it is set, and a file exists at the old default location, we use the default, emit an error message, and continue silently.

/cc @stevekuznetsov @fejta

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/prow Issues or PRs related to prow area/prow/deck Issues or PRs related to prow's deck component sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 19, 2019
@Katharine Katharine force-pushed the semi-default-cookie-secret branch from 42103f7 to fe2b871 Compare July 19, 2019 16:44
@Katharine Katharine force-pushed the semi-default-cookie-secret branch from e98e1c7 to b3356c1 Compare July 19, 2019 17:00
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: cb3753cbfd16fbfb978479b81a9c3b59453aae57

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 19, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Katharine, stevekuznetsov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 148c7eb into kubernetes:master Jul 19, 2019
@Katharine Katharine mentioned this pull request Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/prow/deck Issues or PRs related to prow's deck component area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants