Commit Graph

9143 Commits

Author SHA1 Message Date
Monis Khan
9b23f22472 Make oidc authenticator audience agnostic
This change removes the audience logic from the oidc authenticator
and collapses it onto the same logic used by other audience unaware
authenticators.

oidc is audience unaware in the sense that it does not know or
understand the API server's audience.  As before, the authenticator
will continue to check that the token audience matches the
configured client ID.

The reasoning for this simplification is:

1. The previous code tries to make the client ID on the oidc token
a valid audience.  But by not returning any audience, the token is
not valid when used via token review on a server that is configured
to honor audiences (the token works against the Kube API because the
audience check is skipped).

2. It is unclear what functionality would be gained by allowing
token review to check the client ID as a valid audience.  It could
serve as a proxy to know that the token was honored by the oidc
authenticator, but that does not seem like a valid use case.

3. It has never been possible to use the client ID as an audience
with token review as it would have always failed the audience
intersection check.  Thus this change is backwards compatible.

It is strange that the oidc authenticator would be considered
audience unaware when oidc tokens have an audience claim, but from
the perspective of the Kube API (and for backwards compatibility),
these tokens are only valid for the API server's audience.

This change seems to be the least magical and most consistent way to
honor backwards compatibility and to allow oidc tokens to be used
via token review when audience support in enabled.

Signed-off-by: Monis Khan <mok@vmware.com>
2020-02-04 13:24:49 -08:00
Kubernetes Prow Robot
d52ecd5f70 Merge pull request #86430 from wojtek-t/avoid_thundering_herd_on_etcd
Avoid thundering herd of relists on etcd
2020-02-03 23:09:25 -08:00
Kubernetes Prow Robot
4c3aa3f26b Merge pull request #87515 from Sh4d1/proxy_agg
Use network proxy for aggregator api
2020-02-03 01:53:21 -08:00
Kubernetes Prow Robot
9de5763473 Merge pull request #87740 from jennybuckley/rate-limit-log
Log when client rate limiter latency is very high at a lower log level
2020-02-01 23:39:20 -08:00
Kubernetes Prow Robot
19ca6d30d2 Merge pull request #87437 from apelisse/kubectl-diff-exit-code
kubectl-diff: Return non-1 errors on kubectl failures
2020-02-01 18:33:20 -08:00
Kubernetes Prow Robot
b763a58878 Merge pull request #87663 from lavalamp/docs
add to api repo documentation
2020-02-01 12:55:32 -08:00
Patrik Cyvoct
df9b4e92e8 use network proxy for aggregator api
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2020-02-01 19:38:29 +01:00
Kubernetes Prow Robot
38137df87d Merge pull request #87689 from newrelic-forks/master
fix: missing variadic dots
2020-01-31 20:07:57 -08:00
Kubernetes Prow Robot
18ade93915 Merge pull request #87686 from feiskyer/file-client
Fix backoff retries for AzureFile client
2020-01-31 20:07:48 -08:00
Kubernetes Prow Robot
21e6ec0ba5 Merge pull request #87685 from feiskyer/vmas-disable
Add disableAvailabilitySetNodes to avoid VM list for VMSS clusters
2020-01-31 20:07:34 -08:00
Kubernetes Prow Robot
fa83cf56eb Merge pull request #87635 from feiskyer/cache-nil-for-deleting-node
Set cache to nil data when Azure node provisioning state is deleting
2020-01-31 20:07:21 -08:00
jennybuckley
82a68be304 Log when client side rate limiter latency is very high 2020-01-31 16:17:22 -08:00
Daniel Smith
8ce61eef5b add to api repo documentation 2020-01-31 13:01:20 -08:00
Kubernetes Prow Robot
b1aff7832d Merge pull request #87580 from julianvmodesto/kubectl-ss-dry-run-flag
Extend --dry-run to support values 'client', 'server', 'none'
2020-01-31 09:24:20 -08:00
wojtekt
5dcf08c199 Switch pager to return whether the result was paginated 2020-01-31 11:50:23 +01:00
wojtekt
773d3583bc Avoid thundering herd on etcd on masters upgrade 2020-01-31 08:50:23 +01:00
Kubernetes Prow Robot
fa4bc10ef1 Merge pull request #86793 from prameshj/gce-finalizer
Attach a new finalizer in GCE ILB creation.
2020-01-30 21:20:32 -08:00
Kubernetes Prow Robot
bca516f179 Merge pull request #87687 from markusthoemmes/action-match-subresource
Allow Action's Matches function to specify a subresource.
2020-01-30 18:46:45 -08:00
Kubernetes Prow Robot
fc90261e6b Merge pull request #87671 from jennybuckley/create-adm
Move mutating admission step into finishRequest in the create handler
2020-01-30 18:46:32 -08:00
Kubernetes Prow Robot
78a69f54e8 Merge pull request #87676 from MikeSpreitzer/apf-fix-list-types
Fixed listType annotations for API Priority and Fairness
2020-01-30 17:00:07 -08:00
Kubernetes Prow Robot
5978856c4c Merge pull request #87669 from logicalhan/client-label
remove client label from apiserver request count metric since it is unbounded
2020-01-30 16:59:56 -08:00
Kubernetes Prow Robot
5ced53c0c4 Merge pull request #87628 from alculquicondor/cc-v1alpha2
Add kubescheduler.config.k8s.io/v1alpha2
2020-01-30 16:59:33 -08:00
Kubernetes Prow Robot
608ac4e67d Merge pull request #87517 from odinuge/prom-client_model
Bump dependency github.com/prometheus/client_model@v0.2.0
2020-01-30 16:59:12 -08:00
Kubernetes Prow Robot
f488d78536 Merge pull request #85011 from zxl381/GL_4_Fatal_2
apimachinery: fix bugs in a Test function
2020-01-30 16:58:19 -08:00
Kubernetes Prow Robot
8be2f8c626 Merge pull request #86144 from tahsinrahman/dont-serialize-internal
Do not serialize internal types in ComponentConfig tests
2020-01-30 15:02:19 -08:00
Julian V. Modesto
af52beda26 Extend --dry-run to support string values.
* Extend --dry-run to support string values for dry run strategies
  'client', 'server', and 'none'
* Ensure --dry-run is set and accessed via cmdutil
* Deprecate --dry-run (unset), --dry-run=true, and --dry-run=false
2020-01-30 15:29:48 -05:00
Kubernetes Prow Robot
73409068cd Merge pull request #87677 from jennybuckley/schema-error
Make schema error log message more useful
2020-01-30 05:06:56 -08:00
Kubernetes Prow Robot
03145880d9 Merge pull request #87667 from prameshj/xpn
Allow update of onXPN field in fake GCE clients.
2020-01-30 05:06:38 -08:00
Roger Torrentsgeneros
9bfcc6144e fix: missing variadic dots 2020-01-30 13:08:14 +01:00
Markus Thömmes
47277f281e Allow Action's Matches function to specify a subresource.
In other parts of the system (notably in RBAC rules), the "resource/subresource" notation is common to specify an explicit subresource. This makes this notation available to tests that use the `Matches` function on client actions as well.

Backwards compatibility is kept by ignoring the `Subresource` field if no specific subresource is defined in the resource string itself.
2020-01-30 12:04:26 +01:00
Pengfei Ni
7f2200c61a Fix backoff retries for AzureFile client 2020-01-30 10:12:13 +00:00
Pengfei Ni
40de7f2569 Add disableAvailabilitySetNodes to avoid VM list for VMSS clusters 2020-01-30 07:41:20 +00:00
Kubernetes Prow Robot
60dd5dbd8b Merge pull request #87597 from mikedanese/rctx
Refactor context handling in rest.Request
2020-01-29 22:11:03 -08:00
Kubernetes Prow Robot
5595eaa0ad Merge pull request #87516 from odinuge/runc-rc10
Bump dependency opencontainers/runc@v1.0.0-rc10
2020-01-29 22:10:41 -08:00
Kubernetes Prow Robot
fc3b7b6dcd Merge pull request #87431 from dprotaso/bump-gofuzz
bump github.com/google/gofuzz
2020-01-29 22:10:27 -08:00
jennybuckley
fee77388c6 Make schema error log message more useful 2020-01-29 15:01:44 -08:00
Mike Spreitzer
4940e42b92 Fixed listType annotations for API Priority and Fairness
We were occasionally seeing

```
[SHOULD NOT HAPPEN] failed to create typed new object: .spec.rules: element 0: associative list without keys has an element that's a map type
```

So I changed all the listType annotations to `atomic` except when the
element type is a scalar, which is the only case supported right now.
2020-01-29 17:45:35 -05:00
Aldo Culquicondor
3d83ef2e8e Autogenerated and build files for kubescheduler.config.k8s.io/v1alpha2
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-29 17:18:48 -05:00
Aldo Culquicondor
11c4bcd9dd Copy kubescheduler.config.k8s.io/v1alpha1 files onto v1alpha2
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-29 17:18:41 -05:00
Aldo Culquicondor
8daa761757 Clean ups on kubescheduler.config.k8s.io/v1alpha1 files
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-29 17:17:53 -05:00
jennybuckley
9bd42287f9 Move mutating admission into finishRequest 2020-01-29 14:01:18 -08:00
Han Kang
75cf4d79f2 remove client label from healthz metric test
Change-Id: I4082ff771e5912c68e2811cab07c4d488ab014ac
2020-01-29 13:32:12 -08:00
Pavithra Ramesh
a2399064a7 Allow update of onXPN field in fake GCE clients. 2020-01-29 12:37:35 -08:00
Han Kang
cc3190968b remove client label from apiserver request count metric since it is unbounded
Change-Id: I3a9eacebc9d9dc9ed6347260d9378cdcb5743431
2020-01-29 12:25:55 -08:00
Kubernetes Prow Robot
dba8d60f8c Merge pull request #87077 from soltysh/remove_run_generators
Remove kubectl run generators
2020-01-29 12:16:14 -08:00
Mike Danese
968adfa993 cleanup req.Context() and ResponseWrapper 2020-01-29 08:50:45 -08:00
Mike Danese
d55d6175f8 refactor 2020-01-29 08:50:45 -08:00
Mike Danese
59e757afef regenerate clients 2020-01-29 08:50:45 -08:00
Mike Danese
5360db5df8 update generator 2020-01-29 08:50:45 -08:00
Mike Danese
510aa1b432 update rest.Request signatures 2020-01-29 08:50:45 -08:00