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

Makes anonymous principal's allowedAccounts updated periodically #241

Merged
merged 1 commit into from
Jun 6, 2016

Conversation

ttomsu
Copy link
Member

@ttomsu ttomsu commented Jun 3, 2016

@ajordens @cfieber @jtk54 @duftler PTAL

Tests won't pass until spinnaker/kork#40 is merged and released.

.principal(principal)
.and()
.csrf().disable()
.csrf()
Copy link

Choose a reason for hiding this comment

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

Formatting is off here.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is intended.

@ttomsu ttomsu force-pushed the google-new-user branch from b47e8c4 to c7ec834 Compare June 6, 2016 13:51
@Scheduled(initialDelay = 30000L, fixedDelay = 60000L)
void updateAnonymousAccounts() {
def newAnonAccounts = accountsService.getAllowedAccounts([])
anonymousAllowedAccounts.clear()
Copy link

Choose a reason for hiding this comment

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

Would rather do this without the window where the list is empty.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@duftler
Copy link

duftler commented Jun 6, 2016

LGTM after addressing comment.

@ttomsu ttomsu force-pushed the google-new-user branch from bd8ad4d to 2398dd3 Compare June 6, 2016 15:01
@Autowired
AccountsService accountsService

List<String> anonymousAllowedAccounts = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd make this a concurrent collection (CopyOnWriteArrayList?) since it is getting mutated in a background thread

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@cfieber
Copy link
Contributor

cfieber commented Jun 6, 2016

just the one comment otherwise LGTM

@jtk54
Copy link
Contributor

jtk54 commented Jun 6, 2016

LGTM, NARB

@ttomsu ttomsu force-pushed the google-new-user branch from 21a3715 to 52c01a3 Compare June 6, 2016 18:44
@ttomsu ttomsu merged commit 7c0ed2c into spinnaker:master Jun 6, 2016
@ttomsu ttomsu deleted the google-new-user branch June 6, 2016 19:06
@spinnakerbot spinnakerbot mentioned this pull request Oct 12, 2022
@spinnakerbot spinnakerbot mentioned this pull request Nov 16, 2022
kirangodishala pushed a commit to kirangodishala/gate that referenced this pull request May 23, 2023
@spinnakerbot spinnakerbot mentioned this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants