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

Fix handling of REST gateway options and add an integration test #493

Merged
merged 2 commits into from
Mar 22, 2022

Conversation

josephschorr
Copy link
Member

No description provided.

@github-actions github-actions bot added area/CLI Affects the command line area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Mar 22, 2022
cmd/spicedb/restgateway_integration_test.go Outdated Show resolved Hide resolved
Comment on lines +244 to +247
if c.HTTPGateway.Enabled {
log.Info().Str("upstream", c.HTTPGatewayUpstreamAddr).Msg("starting REST gateway")
}

Copy link
Contributor

Choose a reason for hiding this comment

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

this logging is already covered by the httpserver object (and is misleading anyway - it doesn't start running here, it starts running down in Run)

{"level":"warn","addr":":8443","prefix":"http","time":"2022-03-22T13:30:05Z","message":"http server serving plaintext"}

Copy link
Member Author

Choose a reason for hiding this comment

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

But it doesn't show the upstream address, which was the issue in the first place

Co-authored-by: Evan Cordell <cordell.evan@gmail.com>
Copy link
Contributor

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

LGTM

@jzelinskie jzelinskie merged commit 7486bd1 into authzed:main Mar 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2022
@josephschorr josephschorr deleted the fix-restgateway branch March 22, 2022 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants