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

Document client skew protections #1712

Closed
fabianofranz opened this issue Mar 8, 2016 · 1 comment
Closed

Document client skew protections #1712

fabianofranz opened this issue Mar 8, 2016 · 1 comment
Assignees

Comments

@fabianofranz
Copy link
Member

Starting in openshift/origin#7888, admins can configure the server to prevent skewed oc clients from accessing the REST API. This has to be documented.

@deads2k should provide the info about this new feature.

@deads2k deads2k self-assigned this Mar 16, 2016
@deads2k
Copy link
Contributor

deads2k commented Mar 16, 2016

@adellape Is there a section where we publish all the generated doc for our types? This is sort of an unusual thing to do, so I don't think it warrants a top-level doc.

The types are documented and with the new types you can do things like:

deny clients using particular libraries or particular binaries. In this case, the kube 1.2 client binary and origin 1.1.3 binary. You could do similar things for OSE clients.

  userAgentMatchingConfig:
    defaultRejectionMessage: "Your client is too old.  Go to https://example.org to update it."
    deniedClients: 
    - regex: '\w+/v(?:(?:1\.1\.1)|(?:1\.0\.1)) \(.+/.+\) openshift/\w{7}'
    - regex: '\w+/v(?:1\.1\.3) \(.+/.+\) openshift/\w{7}'
    - regex: '\w+/v1\.2\.0 \(.+/.+\) kubernetes/\w{7}'
    requiredClients: null

deny clients that don't match your expect clients exactly.

  userAgentMatchingConfig:
    defaultRejectionMessage: "Your client is too old.  Go to https://example.org to update it."
    deniedClients: []
    requiredClients: 
    - regex: '\w+/v1\.1\.3 \(.+/.+\) openshift/\w{7}'
    - regex: '\w+/v1\.2\.0 \(.+/.+\) kubernetes/\w{7}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants