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

Added a new 'disableTLS' flag and changed 'disableMTLS' to only disab… #1777

Merged
merged 8 commits into from
Sep 2, 2020

Conversation

devloop0
Copy link
Contributor

…le client auth.

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:
Adds an option to just disable client auth (so traditional TLS). (disableMTLS -> plainTLS, disableTLS -> full plaintext).

Which issue(s) this PR fixes:

Closes #

Special notes for your reviewer:

Copy link
Contributor

@pooneh-m pooneh-m left a comment

Choose a reason for hiding this comment

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

Thanks for the fix.

cmd/allocator/main.go Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 10d58775-c8f1-43ab-93b7-059009e85b1e

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member

That's a new one:

--- FAIL: TestGameServerAllocationDeletionOnUnAllocate (0.11s)
    gameserverallocation_test.go:395: 
        	Error Trace:	gameserverallocation_test.go:395
        	Error:      	Expected nil, but got: &errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:"", RemainingItemCount:(*int64)(nil)}, Status:"Failure", Message:"the server is currently unable to handle the request (post gameserverallocations.allocation.agones.dev)", Reason:"ServiceUnavailable", Details:(*v1.StatusDetails)(0xc00045c060), Code:503}}
        	Test:       	TestGameServerAllocationDeletionOnUnAllocate

I think you managed to catch a master upgrade?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1bb507d5-ea19-4979-b2d3-8d8ad4769b76

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1777/head:pr_1777 && git checkout pr_1777
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.9.0-ca52b0c

@devloop0
Copy link
Contributor Author

devloop0 commented Aug 31, 2020

I think you managed to catch a master upgrade?

Just my luck :D

The issue was probably intermittent since my next run passed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5cad4139-072c-4571-81e5-d0b1ad05d038

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1777/head:pr_1777 && git checkout pr_1777
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.9.0-659a001

cmd/allocator/main.go Show resolved Hide resolved
cmd/allocator/main.go Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: cab9d43a-a1e5-4245-9b11-f48cdd4ba825

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1777/head:pr_1777 && git checkout pr_1777
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.9.0-57a6d70

@devloop0
Copy link
Contributor Author

devloop0 commented Sep 2, 2020

Added a comment explaining why the keepalive parameters are useful.
Also, tested this by:

  1. Installing the agones allocator with a commit from this PR (image tag 1.9.0-57a6d70)
  2. Putting it in front of a GKE ingress load balancer
  3. Since GKE ingress requires TLS for HTTP2, the Agones allocator was installed with disableTLS=false, disableMTLS=true.
  4. Confirmed that the ingress recognized the backend pods and was able to allocate gameservers by connecting to the ingress LB endpoint.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 089ed78b-245c-4c1c-964d-8637256d94d0

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/1777/head:pr_1777 && git checkout pr_1777
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.9.0-c59b193

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: devloop0, pooneh-m

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

@pooneh-m
Copy link
Contributor

pooneh-m commented Sep 2, 2020

Thanks for the change.

@pooneh-m pooneh-m merged commit a1ce52c into googleforgames:master Sep 2, 2020
@markmandel markmandel added this to the 1.9.0 milestone Sep 22, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
googleforgames#1777)

* Added a new 'disableTLS' flag and changed 'disableMTLS' to only disable client auth.

* Conditionally disabled cert dir watching/reading on disableMTLS.

* Added some keepalive parameters for health checks.

* Changed logic to only have mTLS in the case of TLS.

* Added a comment for why the keepalive options are necessary.

Co-authored-by: Nikhil Athreya <nathreya@google.com>
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.

7 participants