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 #93 Do not require nakadi-producer.access-token-uri anymore #97

Merged
merged 1 commit into from
Aug 10, 2018

Conversation

BGehrels
Copy link
Contributor

Fix #93 Do not require nakadi-producer.access-token-uri anymore

README.md Outdated
@@ -136,6 +132,19 @@ spec:
privileges: []
```

If your application is running in Zalando`s stups environment (or you provide tokens via your own oAuth server) it needs
Copy link
Member

Choose a reason for hiding this comment

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

  • Zalando`sZalando's (please use apostroph and not backtick here).
  • stupsSTUPS.

README.md Outdated
If you do not use the STUPS Tokens library, you can implement token retrieval yourself by defining a Spring bean of type `org.zalando.nakadiproducer.AccessTokenProvider`. The starter will detect it and call it once for each request to retrieve the token.

#### Authentication in a non-Zalando environment
Please consult the [manual of Zalando's tokens library](https://github.com/zalando/tokens) for more configuration options (like `CREDENTIALS_DIR` or via environment variables.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this subsection should be above the one before, as it is also for the Tokens library?

README.md Outdated
@@ -144,9 +153,7 @@ If your Nakadi installation needs real scopes for submitting events, you can pro
nakadi-producer:
access-token-uri: https://token.auth.example.org/oauth2/access_token
Copy link
Member

Choose a reason for hiding this comment

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

Here the access-token-uri is still mentioned.

README.md Outdated

#### Authentication in a non-Zalando environment
Please consult the [manual of Zalando's tokens library](https://github.com/zalando/tokens) for more configuration options (like `CREDENTIALS_DIR` or via environment variables.

Since [July 2017](https://github.com/zalando/nakadi/pull/692), Nakadi (at least in the version operated at Zalando) doesn't require any scopes other than the pseudo-scope `uid` for writing events, [the authorization is instead based on event-type configuration using the service's uid](https://nakadi.io/manual.html#using_authorization).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this could be a subsection named "Scope configuration" or similar?

@ePaul
Copy link
Member

ePaul commented Aug 10, 2018

Did you consider doing also #10 on the way (i.e. recognizing an existing AccessToken bean if there is one, and not an access-token-uri?)

@ePaul ePaul added enhancement auto-configuration everything about the auto-configuration features spring-boot-2 Issues/PRs which only apply to the Spring-Boot 2 versions (Releases 20.*+) labels Aug 10, 2018
@BGehrels
Copy link
Contributor Author

BGehrels commented Aug 10, 2018

@ePaul I would keep that seperate for two reasons:

  • I do not run an application with that problem myself, so it's hard to test and validate the results regarding usefulness
  • With this PR and the fact that modern nakadi does not require scopes anymore, the pain that Integrate better with the spring-boot-zalando-stups-tokens starter #10 is meant to mitigate should mostly be done anyway, so the value of that fix is dubious.

@BGehrels BGehrels force-pushed the fake-access-toke-uri branch 3 times, most recently from 60ad44b to 29ea738 Compare August 10, 2018 15:42
@BGehrels
Copy link
Contributor Author

Fixed all your comments, i hope

@BGehrels
Copy link
Contributor Author

👍

@ePaul
Copy link
Member

ePaul commented Aug 10, 2018

👍

@BGehrels BGehrels merged commit 54aceb5 into master Aug 10, 2018
@BGehrels BGehrels deleted the fake-access-toke-uri branch August 10, 2018 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-configuration everything about the auto-configuration features enhancement spring-boot-2 Issues/PRs which only apply to the Spring-Boot 2 versions (Releases 20.*+)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants