Skip to content

FM-1556 Add ability to manage login server level permissions #72

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

Merged
merged 2 commits into from
Feb 27, 2015
Merged

FM-1556 Add ability to manage login server level permissions #72

merged 2 commits into from
Feb 27, 2015

Conversation

cyberious
Copy link
Contributor

No description provided.

@cyberious cyberious changed the title FM-1556 Add ability to manage login server level permissions DO NOT MERGE~~~ FM-1556 Add ability to manage login server level permissions Feb 23, 2015
@cyberious cyberious changed the title DO NOT MERGE~~~ FM-1556 Add ability to manage login server level permissions FM-1556 Add ability to manage login server level permissions Feb 23, 2015
@cyberious
Copy link
Contributor Author

Thought there was a bug, was not, it was an issue with test login having svrroles that caused failure.


## Validate state
$_state = upcase($state)
validate_re($_state,'^(GRANT|REVOKE|DENY)$', "State can only be of 'GRANT', 'REVOKE' or 'DENY' you passed ${state}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit - bad grammar

@Iristyle
Copy link
Contributor

Added a note to the ticket about getting a capture of successful manifest runs against SQL Server since there are no acceptance tests.

# The login for which the permission will be manage.
#
# [permission]
# The permission you would like managed. i.e. 'SELECT', 'INSERT', 'UPDATE', 'DELETE'
Copy link
Contributor

Choose a reason for hiding this comment

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

What about EXECUTE? Nevermind, these are examples.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please update documentation - this is permissions now.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is still not updated.

@ferventcoder
Copy link
Contributor

Nothing really jumps out at me as inherently bad here. Just small tweaks and of course the CASCADE thing.

@cyberious
Copy link
Contributor Author

@Iristyle added comments to ticket FM-1556 in regards to the testing of the code

@cyberious
Copy link
Contributor Author

Requires #74 for tests to pass

@cyberious
Copy link
Contributor Author

@ferventcoder @Iristyle Here is the latest, I modified last night to be able to pass an array of permissions instead of individual ones. This applies to both Login and User permissions.

SET @permission = '<%= permission %>'
<%= scope.function_template(['sqlserver/snippets/login/permission/exists.sql.erb']) %>
<% end %>
END
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment from #71 about the double loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to single loop

@ferventcoder
Copy link
Contributor

Same deal here with documentation. Get that updated and this is :shipit:

@cyberious
Copy link
Contributor Author

@ferventcoder docs updated

@Iristyle Iristyle merged commit 12de69b into puppetlabs:master Feb 27, 2015
@Iristyle Iristyle deleted the FM-1556 branch February 27, 2015 22:21
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.

3 participants