{"id":1060,"date":"2024-07-22T16:50:43","date_gmt":"2024-07-22T16:50:43","guid":{"rendered":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2024\/07\/22\/hcp-terraform-adds-granular-api-access-for-audit-trails\/"},"modified":"2024-07-22T16:50:43","modified_gmt":"2024-07-22T16:50:43","slug":"hcp-terraform-adds-granular-api-access-for-audit-trails","status":"publish","type":"post","link":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/2024\/07\/22\/hcp-terraform-adds-granular-api-access-for-audit-trails\/","title":{"rendered":"HCP Terraform adds granular API access for audit trails"},"content":{"rendered":"<p>Today we\u2019d like to share the latest improvement to HCP Terraform\u2019s permissions capabilities: <em>read-only permission to the HCP Terraform audit trails endpoint<\/em>. Available now in HCP Terraform, this new feature enables organization owners to generate a dedicated API key for least-privilege access to audit trails.<\/p>\n<p><a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/api-docs\/audit-trails\">HCP Terraform audit trails<\/a> let organization administrators quickly review the actions performed by members of their organization. It includes details such as who performed the action, what the action was, and when it was performed. It also contains the evaluation results of compliance-related features like <a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/policy-enforcement\">policy enforcement<\/a> and <a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/workspaces\/settings\/run-tasks\">run tasks<\/a>. When paired with the <a href=\"https:\/\/splunkbase.splunk.com\/\">Splunk app<\/a> it provides near real-time visibility into key actions. You can quickly see which workspaces are generating the most frequent changes, which policies are being evaluated most frequently, and which users are most active.<\/p>\n<p>In the past, within HCP Terraform, organization owners were required to create an <a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/users-teams-organizations\/api-tokens#organization-api-tokens\">organization API token<\/a> to grant access to the audit trail endpoint. However, the excessive permissions associated with this token meant users had to vigilantly protect these credentials.<\/p>\n<h2>The new audit token for HCP Terraform audit trails<\/h2>\n<p>The new <em>audit token<\/em> type simplifies and enhances privilege management within organizations by letting owners adhere to the principle of least privilege access. This type allows read-only access to the HCP Terraform audit trail endpoint. By incorporating token expiration, organization owners gain complete control over the token&#8217;s entire lifecycle, letting them specify when the audit token should expire. Users also now have the capability to effortlessly regenerate the token, which is particularly useful in situations where token rotation is required following a security incident. This advancement eliminates the need for users to possess owner-level access or manage the highly privileged organization API token.<\/p>\n<h2>Creating an audit token<\/h2>\n<p>To create an audit token, navigate to the API Tokens section within the Organization Settings page. Click the <em>Generate an audit token<\/em> button and configure the expiration settings as needed.<\/p>\n<h2>Getting started<\/h2>\n<p>This feature is now available in HCP Terraform. Please refer to <a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/users-teams-organizations\/api-tokens\">Terraform\u2019s API token documentation<\/a> for details on how to get started.<\/p>\n<p>If you are new to Terraform, you can get started with HashiCorp-managed <a href=\"https:\/\/cloud.hashicorp.com\/products\/terraform\">HCP Terraform<\/a> for free to begin provisioning and managing your infrastructure in any environment. And don\u2019t forget to <a href=\"https:\/\/developer.hashicorp.com\/terraform\/cloud-docs\/users-teams-organizations\/users#log-in-with-your-hashicorp-cloud-platform-account\">link your HCP Terraform and HashiCorp Cloud Platform (HCP) accounts<\/a> for a seamless sign-in experience.<\/p>","protected":false},"excerpt":{"rendered":"<p>Today we\u2019d like to share the latest improvement to HCP Terraform\u2019s permissions capabilities: read-only permission to the HCP Terraform audit [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1060","post","type-post","status-publish","format-standard","hentry","category-terraform"],"_links":{"self":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/1060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/comments?post=1060"}],"version-history":[{"count":0,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/posts\/1060\/revisions"}],"wp:attachment":[{"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/media?parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/categories?post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rssfeedtelegrambot.bnaya.co.il\/index.php\/wp-json\/wp\/v2\/tags?post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}