-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Madhushree Ray <madhushree@turbot.com>
- Loading branch information
1 parent
264929e
commit ac484f4
Showing
16 changed files
with
950 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release Steampipe Anywhere Components | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
anywhere_publish_workflow: | ||
uses: turbot/steampipe-workflows/.github/workflows/steampipe-anywhere.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,50 @@ | ||
# Table: tfe_current_user | ||
--- | ||
title: "Steampipe Table: tfe_current_user - Query Terraform Enterprise Current User using SQL" | ||
description: "Allows users to query Current Users in Terraform Enterprise, specifically to retrieve detailed information about the authenticated user." | ||
--- | ||
|
||
Get information about the current user making the request. | ||
# Table: tfe_current_user - Query Terraform Enterprise Current User using SQL | ||
|
||
Terraform Enterprise is an advanced version of Terraform that provides collaboration and governance features. It acts as a shared platform for teams to collaborate on infrastructure as code, providing a workspace for sharing and storing Terraform configurations. It also includes a private registry for sharing Terraform modules. | ||
|
||
## Table Usage Guide | ||
|
||
The `tfe_current_user` table provides insights into the authenticated users within Terraform Enterprise. As a system administrator, you can explore user-specific details through this table, including user's ID, username, email, and other associated metadata. Utilize it to uncover information about users, such as their verification status, two-factor authentication status, and whether they are a site administrator. | ||
|
||
## Examples | ||
|
||
### Get user information | ||
Explore your current user profile details in Terraform Enterprise. This could be useful for auditing or troubleshooting purposes. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
* | ||
from | ||
tfe_current_user | ||
tfe_current_user; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
* | ||
from | ||
tfe_current_user; | ||
``` | ||
|
||
### Check if this is a service account | ||
Determine if the current user is a service account. This is useful for managing user access and identifying potential security risks. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
username, | ||
is_service_account | ||
from | ||
tfe_current_user | ||
tfe_current_user; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
username, | ||
is_service_account | ||
from | ||
tfe_current_user; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,54 @@ | ||
# Table: tfe_organization | ||
--- | ||
title: "Steampipe Table: tfe_organization - Query Terraform Enterprise Organizations using SQL" | ||
description: "Allows users to query Terraform Enterprise Organizations, specifically retrieving details about each organization, including its name, email, and session timeout." | ||
--- | ||
|
||
List organizations the user has permission to see. | ||
# Table: tfe_organization - Query Terraform Enterprise Organizations using SQL | ||
|
||
A Terraform Enterprise Organization represents a collection of users, teams, and workspaces. Within an organization, users can collaborate and manage workspaces together. The organization also provides a context in which resources such as Sentinel policies and SSH keys can be shared. | ||
|
||
## Table Usage Guide | ||
|
||
The `tfe_organization` table provides insights into organizations within Terraform Enterprise. As a DevOps engineer, explore organization-specific details through this table, including membership, collaboration status, and associated workspaces. Utilize it to uncover information about organizations, such as those with specific team access, the collaboration status between teams, and the management of workspaces. | ||
|
||
## Examples | ||
|
||
### List organizations | ||
Explore the different organizations within your network. This allows for better management and understanding of the various groups interacting with your systems. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
* | ||
from | ||
tfe_organization | ||
tfe_organization; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
* | ||
from | ||
tfe_organization; | ||
``` | ||
|
||
### Organizations that do not require two factor | ||
Discover the organizations that do not comply with two-factor authentication. This can be useful for assessing security measures and identifying potential vulnerabilities within your organization. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
name, | ||
two_factor_conformant | ||
from | ||
tfe_organization | ||
where | ||
not two_factor_conformant | ||
not two_factor_conformant; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
name, | ||
two_factor_conformant | ||
from | ||
tfe_organization | ||
where | ||
not two_factor_conformant; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,50 @@ | ||
# Table: tfe_organization_member | ||
--- | ||
title: "Steampipe Table: tfe_organization_member - Query Terraform Enterprise Organization Members using SQL" | ||
description: "Allows users to query Terraform Enterprise Organization Members, specifically their access levels, user details, and associated organization information." | ||
--- | ||
|
||
List organizations the user has permission to see. | ||
# Table: tfe_organization_member - Query Terraform Enterprise Organization Members using SQL | ||
|
||
Terraform Enterprise is a collaborative, scalable, and enterprise-grade version of Terraform that enables teams to work together on infrastructure as code. It provides a centralized workspace for managing Terraform runs, state, and modules, as well as access control and policy enforcement. An Organization Member in Terraform Enterprise refers to a user who is part of a specific organization, with assigned permissions and roles within that organization. | ||
|
||
## Table Usage Guide | ||
|
||
The `tfe_organization_member` table provides insights into the members of an organization within Terraform Enterprise. As a system administrator or DevOps engineer, explore member-specific details through this table, including their access levels, user details, and associated organization information. Utilize it to manage and monitor user roles and permissions within your organization, ensuring security and compliance. | ||
|
||
## Examples | ||
|
||
### List all users who are members of the organization | ||
Discover the segments that involve all users who are part of an organization. This could be beneficial in understanding the distribution of users across different organizational structures. | ||
|
||
```sql+postgres | ||
select | ||
* | ||
from | ||
tfe_organization_member; | ||
``` | ||
|
||
```sql | ||
```sql+sqlite | ||
select | ||
* | ||
from | ||
tfe_organization_member; | ||
``` | ||
|
||
### Check two factor authentication status for each org member | ||
Determine the status of two-factor authentication for each member of an organization. This can help enhance security by identifying members who have not yet enabled this feature. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
username, | ||
(member -> 'TwoFactor' ->> 'Enabled')::bool as two_factor_enabled | ||
from | ||
tfe_organization_member; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
username, | ||
json_extract(member, '$.TwoFactor.Enabled') as two_factor_enabled | ||
from | ||
tfe_organization_member; | ||
``` |
Oops, something went wrong.