Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
12be140d
Unverified
Commit
12be140d
authored
Dec 17, 2018
by
Kubernetes Prow Robot
Committed by
GitHub
Dec 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71094 from dekkagaijin/update-concealment
bump metadata-proxy to v0.1.11, update tests & test image
parents
e2be7c91
2a6dd3b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
metadata-proxy.yaml
cluster/addons/metadata-proxy/gce/metadata-proxy.yaml
+1
-1
VERSION
test/images/metadata-concealment/VERSION
+1
-1
check_metadata_concealment.go
...images/metadata-concealment/check_metadata_concealment.go
+15
-7
manifest.go
test/utils/image/manifest.go
+1
-1
No files found.
cluster/addons/metadata-proxy/gce/metadata-proxy.yaml
View file @
12be140d
...
...
@@ -44,7 +44,7 @@ spec:
effect
:
"
NoSchedule"
containers
:
-
name
:
metadata-proxy
image
:
k8s.gcr.io/metadata-proxy:v0.1.1
0
image
:
k8s.gcr.io/metadata-proxy:v0.1.1
1
securityContext
:
privileged
:
true
# Request and limit resources to get guaranteed QoS.
...
...
test/images/metadata-concealment/VERSION
View file @
12be140d
1.
1.1
1.
2
test/images/metadata-concealment/check_metadata_concealment.go
View file @
12be140d
...
...
@@ -40,9 +40,13 @@ var (
"http://metadata.google.internal/computeMetadata/v1/"
,
// Service account token endpoints.
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token"
,
// Params that contain 'recursive' as substring.
"http://metadata.google.internal/computeMetadata/v1/instance/?nonrecursive=true"
,
"http://metadata.google.internal/computeMetadata/v1/instance/?something=other&nonrecursive=true"
,
// Permitted recursive query to SA endpoint.
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true"
,
// Known query params.
"http://metadata.google.internal/computeMetadata/v1/instance/tags?alt=text"
,
"http://metadata.google.internal/computeMetadata/v1/instance/tags?wait_for_change=false"
,
"http://metadata.google.internal/computeMetadata/v1/instance/tags?wait_for_change=true&timeout_sec=0"
,
"http://metadata.google.internal/computeMetadata/v1/instance/tags?wait_for_change=true&last_etag=d34db33f"
,
}
legacySuccessEndpoints
=
[]
string
{
// Discovery
...
...
@@ -54,6 +58,8 @@ var (
// Service account token endpoints.
"http://metadata.google.internal/0.1/meta-data/service-accounts/default/acquire"
,
"http://metadata.google.internal/computeMetadata/v1beta1/instance/service-accounts/default/token"
,
// Known query params.
"http://metadata.google.internal/0.1/meta-data/service-accounts/default/acquire?scopes"
,
}
noKubeEnvEndpoints
=
[]
string
{
// Check that these don't get a recursive result.
...
...
@@ -72,10 +78,12 @@ var (
"http://metadata.google.internal/0.1/meta-data/service-accounts/default/identity"
,
"http://metadata.google.internal/computeMetadata/v1beta1/instance/service-accounts/default/identity"
,
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity"
,
//
Recursive
.
//
Forbidden recursive queries
.
"http://metadata.google.internal/computeMetadata/v1/instance/?recursive=true"
,
"http://metadata.google.internal/computeMetadata/v1/instance/?something=other&recursive=true"
,
"http://metadata.google.internal/computeMetadata/v1/instance/?recursive=true&something=other"
,
"http://metadata.google.internal/computeMetadata/v1/instance/?%72%65%63%75%72%73%69%76%65=true"
,
// url-encoded
// Unknown query param key.
"http://metadata.google.internal/computeMetadata/v1/instance/?something=else"
,
"http://metadata.google.internal/computeMetadata/v1/instance/?unknown"
,
// Other.
"http://metadata.google.internal/computeMetadata/v1/instance/attributes//kube-env"
,
"http://metadata.google.internal/computeMetadata/v1/instance/attributes/../attributes/kube-env"
,
...
...
@@ -96,7 +104,7 @@ func main() {
}
}
for
_
,
e
:=
range
noKubeEnvEndpoints
{
if
err
:=
checkURL
(
e
,
h
,
200
,
""
,
"kube-env"
);
err
!=
nil
{
if
err
:=
checkURL
(
e
,
h
,
403
,
""
,
"kube-env"
);
err
!=
nil
{
log
.
Printf
(
"Wrong response for %v: %v"
,
e
,
err
)
success
=
1
}
...
...
test/utils/image/manifest.go
View file @
12be140d
...
...
@@ -97,7 +97,7 @@ var (
APIServer
=
Config
{
e2eRegistry
,
"sample-apiserver"
,
"1.10"
}
AppArmorLoader
=
Config
{
e2eRegistry
,
"apparmor-loader"
,
"1.0"
}
BusyBox
=
Config
{
dockerLibraryRegistry
,
"busybox"
,
"1.29"
}
CheckMetadataConcealment
=
Config
{
e2eRegistry
,
"metadata-concealment"
,
"1.
1.1
"
}
CheckMetadataConcealment
=
Config
{
e2eRegistry
,
"metadata-concealment"
,
"1.
2
"
}
CudaVectorAdd
=
Config
{
e2eRegistry
,
"cuda-vector-add"
,
"1.0"
}
Dnsutils
=
Config
{
e2eRegistry
,
"dnsutils"
,
"1.1"
}
EchoServer
=
Config
{
e2eRegistry
,
"echoserver"
,
"2.2"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment