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

feat: add snowflake_grant_application_role resource #2690

Merged
merged 22 commits into from
May 16, 2024

Conversation

sfc-gh-swinkler
Copy link
Collaborator

@sfc-gh-swinkler sfc-gh-swinkler commented Apr 10, 2024

Adds a new resource for grant_application_role. Also adds some stuff to SDK to make it work. Relies on an app package to exist, which may not exist in the current account. No application resource currently exists to use.

Test Plan

  • acceptance tests

References

https://docs.snowflake.com/en/sql-reference/sql/grant-application-role

Copy link

Integration tests failure for e778c23b596b62218059350b8ad0a0316703990d

pkg/resources/grant_application_role.go Outdated Show resolved Hide resolved
pkg/resources/grant_application_role.go Outdated Show resolved Hide resolved
pkg/resources/grant_application_role.go Outdated Show resolved Hide resolved
pkg/resources/grant_application_role.go Outdated Show resolved Hide resolved
pkg/resources/grant_application_role.go Show resolved Hide resolved
pkg/resources/grant_application_role_acceptance_test.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for b5d4406699857e1f6ad94570c1ccdf5a086ef1ef

Copy link

Integration tests failure for 1b44738ff10350badc5420afd2fca2dad7a059be

Copy link

Integration tests failure for f3f9cb6619921bc7e71fa12d318da1169a2a6347

Copy link

Integration tests failure for 06e559994d5a7155916bf48c61180218e31666a0

Copy link

Integration tests failure for 40fb6437dad55ad95ad1beff4441b0639990b334

Copy link

Integration tests failure for ebcce67df826ca9a0030e049d8078822b5834f9f

Copy link

gitguardian bot commented Apr 22, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9467623 Triggered Generic Password 76365d5 pkg/resources/password_policy_acceptance_test.go View secret
9467623 Triggered Generic Password 76365d5 pkg/resources/password_policy_acceptance_test.go View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link

Integration tests failure for 76365d5ed8d5f45ef6ed25db54b7e87b51f43ee7

Copy link

github-actions bot commented May 8, 2024

Integration tests failure for db8d665d7fe8cdb1ef9811ae4365a4db5c7acb7a

Copy link

github-actions bot commented May 8, 2024

Integration tests failure for 93a1e2f7e091adeb343b5b55020606f73e66cb79

Copy link

github-actions bot commented May 8, 2024

Integration tests failure for 94833d75ad0eedfb907d4559075744c071b93f2e

Copy link

github-actions bot commented May 9, 2024

Integration tests failure for 5dc9593e9df80c2bd9ee3159e7ce32b9d9ced828

Copy link

github-actions bot commented May 9, 2024

Integration tests failure for 2956f7902d7b296f3aaf71b586dbf096701b9d58

Copy link

github-actions bot commented May 9, 2024

Integration tests failure for 739686a5279b5475c580129542ad2fe32f4199ca

sfc-gh-jcieslak
sfc-gh-jcieslak previously approved these changes May 9, 2024
@sfc-gh-asawicki sfc-gh-asawicki self-requested a review May 14, 2024 11:38
Copy link

Integration tests failure for 86bb80a879d3b189d8401bde9e6a5d1cc0508b07

@sfc-gh-asawicki sfc-gh-asawicki self-requested a review May 15, 2024 12:32
Copy link

Integration tests failure for 6321eee8a0de365bce34c328d852eb94984e6b69

@sfc-gh-asawicki sfc-gh-asawicki self-requested a review May 16, 2024 08:44
Copy link

Integration tests success for 6321eee8a0de365bce34c328d852eb94984e6b69

@sfc-gh-jmichalak sfc-gh-jmichalak merged commit 838d241 into main May 16, 2024
10 checks passed
@sfc-gh-jmichalak sfc-gh-jmichalak deleted the grant-app-role branch May 16, 2024 10:13
sfc-gh-jmichalak pushed a commit that referenced this pull request May 16, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.91.0](v0.90.0...v0.91.0)
(2024-05-16)


### 🎉 **What's new:**

* add snowflake_grant_application_role resource
([#2690](#2690))
([838d241](838d241))
* datasource database role
([#2731](#2731))
([319ddc3](319ddc3))


### 🔧 **Misc**

* Add few documentation adjustments
([#2789](#2789))
([6db8bf3](6db8bf3))
* Bump dependencies
([#2802](#2802))
([54ea6bc](54ea6bc))
* Replace parsing function for saving granted object names
([#2813](#2813))
([175cfc7](175cfc7))


### 🐛 **Bug fixes:**

* Fix sweepers
([#2800](#2800))
([a01115e](a01115e))
* Invoke SetId immediately after alert creation
([#2786](#2786))
([181b4d0](181b4d0))
* Update the tests after snowflake bugfix
([#2806](#2806))
([6843c1a](6843c1a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: snowflake-release-please[bot] <105954990+snowflake-release-please[bot]@users.noreply.github.com>
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