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

feat(apiserver): Optionally restrict public API to a single client #2954

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jobs/golangapiserver/spec
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ properties:
description: ""
autoscaler.apiserver.broker.server.dashboard_redirect_uri:
description: ""
autoscaler.apiserver.public_api.autoscaler_api_client_id:
description: |
If set, restricts the public API endpoint, to only allow requests providing an oauth token from this client id to access the public API.
The token needs to be provided in the request header X-Autoscaler-Token.
default: ""
autoscaler.apiserver.public_api.server.port:
description: "Port where broker server will run"
default: 6102
Expand Down
1 change: 1 addition & 0 deletions jobs/golangapiserver/templates/apiserver.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ cf:
idle_connection_timeout_ms: <%= p("autoscaler.cf.idle_connection_timeout_ms") %>
max_idle_conns_per_host_ms: <%= p("autoscaler.cf.max_idle_conns_per_host_ms") %>

api_client_id: <%= p("autoscaler.apiserver.public_api.autoscaler_api_client_id") %>
public_api_server:
port: <%= p("autoscaler.apiserver.public_api.server.port") %>
<% if_p("autoscaler.apiserver.public_api.server.ca_cert", "autoscaler.apiserver.public_api.server.server_cert", "autoscaler.apiserver.public_api.server.server_key") do %>
Expand Down
Loading