-
Notifications
You must be signed in to change notification settings - Fork 313
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
Stack protection feature documentation discrepancy #605
Comments
… Stacks - Now the documentation is aligned with the implementation and specifies that the word "protect" should be used to protect stacks (instead of "protected")
The documentation is now aligned with the implementation and specifies that the word "protect" should be used to protect stacks (instead of "protected").
The documentation is now aligned with the implementation and specifies that the word "protect" should be used to protect stacks (instead of "protected").
@ngfgrant after rereading my last comment in the PR I realize I did not explain myself properly. Yes, you are right, "protected" is used in the Python API (not "protect"). The problematic is that here we have 3 aspects to be ideally in line with each other:
Additionally, I believe we need to be backwards-compatible. Assuming all this I see 2 solutions:
|
Any updates on this issue? protect: true ##This works successfully On a side note I'd see it more useful if we could define it like this:
where I can define the different types of execution which are 'protected' |
Hello, I request that either the code or the documentation be corrected so that the actual state is consistent. This should have been fixed after 4 years. |
The sceptre docs refers to stack protection feature with key
protected
[1] however it only seems to work when using theprotect
keyword (i.e.protect: true
). a quick grep shows that many tests useprotected
keyword. Not sure which is the correct keyword to use.[1] https://sceptre.cloudreach.com/latest/docs/stack_config.html#protected
(py36-sceptredev) ~/w/sceptre ❯❯❯ git grep protected docs/docs/stack_config.md:* protected (optional)
docs/docs/stack_config.md:### protected
docs/docs/stack_config.md:If a user tries to run one of these commands on a protected Stack, Sceptre will
sceptre/config/reader.py: protected=config.get("protect", False),
sceptre/plan/actions.py: if self.stack.protected:
sceptre/stack.py: :param protected: Stack protection against execution.
sceptre/stack.py: :type protected: bool
sceptre/stack.py: dependencies=None, role_arn=None, protected=False, tags=None,
sceptre/stack.py: self.protected = protected
sceptre/stack.py: "protected={protected}, "
sceptre/stack.py: protected=self.protected,
sceptre/stack.py: self.protected == stack.protected and
tests/test_actions.py: role_arn=sentinel.role_arn, protected=False,
tests/test_actions.py: self.actions.stack.protected = True
tests/test_config_reader.py: protected=False,
tests/test_plan.py: role_arn=sentinel.role_arn, protected=False,
tests/test_stack.py: role_arn=sentinel.role_arn, protected=False,
tests/test_stack.py: assert stack.protected is False
tests/test_stack.py: "protected=False, "\
The text was updated successfully, but these errors were encountered: