{"id":14970243,"url":"https://github.com/hashicorp/vault-plugin-auth-alicloud","last_synced_at":"2025-04-06T18:17:23.616Z","repository":{"id":34362328,"uuid":"138779521","full_name":"hashicorp/vault-plugin-auth-alicloud","owner":"hashicorp","description":"Alibaba Auth Plugin for Vault ","archived":false,"fork":false,"pushed_at":"2025-03-01T00:18:08.000Z","size":6797,"stargazers_count":4,"open_issues_count":4,"forks_count":7,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-03-30T17:09:41.982Z","etag":null,"topics":["alibaba","alicloud","authentication","hashicorp","vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashicorp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-26T18:46:59.000Z","updated_at":"2025-02-13T17:26:40.000Z","dependencies_parsed_at":"2023-02-17T07:30:41.635Z","dependency_job_id":"8469f58f-57ba-4ede-b5f7-361a2760499c","html_url":"https://github.com/hashicorp/vault-plugin-auth-alicloud","commit_stats":{"total_commits":132,"total_committers":21,"mean_commits":6.285714285714286,"dds":0.6515151515151515,"last_synced_commit":"62fb8d6fa6355fb13f1c8a6e37cb091a65812540"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fvault-plugin-auth-alicloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fvault-plugin-auth-alicloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fvault-plugin-auth-alicloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashicorp%2Fvault-plugin-auth-alicloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashicorp","download_url":"https://codeload.github.com/hashicorp/vault-plugin-auth-alicloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526768,"owners_count":20953143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alibaba","alicloud","authentication","hashicorp","vault"],"created_at":"2024-09-24T13:43:20.341Z","updated_at":"2025-04-06T18:17:23.598Z","avatar_url":"https://github.com/hashicorp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vault Plugin: AliCloud Auth Backend [![Build Status](https://travis-ci.org/hashicorp/vault-plugin-auth-alicloud.svg?branch=master)](https://travis-ci.org/hashicorp/vault-plugin-auth-alicloud)\n\nThis is a standalone backend plugin for use with [Hashicorp Vault](https://www.github.com/hashicorp/vault).\nThis plugin allows authentication to Vault using Resource Access Management (RAM).\n\n**Please note**: We take Vault's security and our users' trust very seriously. If you believe you have found a security issue in Vault, _please responsibly disclose_ by contacting us at [security@hashicorp.com](mailto:security@hashicorp.com).\n\n## Quick Links\n    - Vault Website: https://www.vaultproject.io\n    - AliCloud Auth Docs: https://www.vaultproject.io/docs/auth/alicloud.html\n    - Main Project Github: https://www.github.com/hashicorp/vault\n\n## Getting Started\n\nThis is a [Vault plugin](https://www.vaultproject.io/docs/internals/plugins.html)\nand is meant to work with Vault. This guide assumes you have already installed Vault\nand have a basic understanding of how Vault works.\n\nOtherwise, first read this guide on how to [get started with Vault](https://www.vaultproject.io/intro/getting-started/install.html).\n\nTo learn specifically about how plugins work, see documentation on [Vault plugins](https://www.vaultproject.io/docs/internals/plugins.html).\n\n## Security Model\n\nThis authentication model places Vault in the middle of a call between a client and AliCloud's \"GetCallerIdentity\" method. Based on AliCloud's response, it grants an access token based on pre-configured roles.\n\n## Usage\n\nPlease see [documentation for the plugin](https://www.vaultproject.io/docs/auth/alicloud.html)\non the Vault website.\n\nThis plugin is currently built into Vault and by default is accessed\nat `auth/alicloud`. To enable this in a running Vault server:\n\n```sh\n$ vault auth enable alicloud\nSuccessfully enabled 'alicloud' at 'alicloud'!\n```\n\nTo see all the supported paths, see the [AliCloud auth backend docs](https://www.vaultproject.io/docs/auth/alicloud.html).\n\n## Developing\n\nIf you wish to work on this plugin, you'll first need\n[Go](https://www.golang.org) installed on your machine.\n\nFor local dev first make sure Go is properly installed, including\nsetting up a [GOPATH](https://golang.org/doc/code.html#GOPATH).\nNext, clone this repository into\n`$GOPATH/src/github.com/hashicorp/vault-plugin-auth-alicloud`.\n\nTo compile a development version of this plugin, run `make` or `make dev`.\nThis will put the plugin binary in the `bin` and `$GOPATH/bin` folders. `dev`\nmode will only generate the binary for your platform and is faster:\n\n```sh\n$ make\n$ make dev\n```\n\nPut the plugin binary into a location of your choice. This directory\nwill be specified as the [`plugin_directory`](https://www.vaultproject.io/docs/configuration/index.html#plugin_directory)\nin the Vault config used to start the server.\n\n```hcl\nplugin_directory = \"path/to/plugin/directory\"\n```\n\nStart a Vault server with this config file:\n```sh\n$ vault server -config=path/to/config.hcl ...\n...\n```\n\nOnce the server is started, register the plugin in the Vault server's [plugin catalog](https://developer.hashicorp.com/vault/docs/plugins/plugin-architecture#plugin-catalog):\n\n```sh\n$ vault plugin register \\\n        -sha256=\u003cSHA256 Hex value of the plugin binary\u003e \\\n        -command=\"vault-plugin-auth-alicloud\" \\\n        auth \\\n        alicloud\n```\n\nNote you should generate a new sha256 checksum if you have made changes\nto the plugin. Example using openssl:\n\n```sh\nopenssl dgst -sha256 $GOPATH/vault-plugin-auth-alicloud\n...\nSHA256(.../go/bin/vault-plugin-auth-alicloud)= 896c13c0f5305daed381952a128322e02bc28a57d0c862a78cbc2ea66e8c6fa1\n```\n\nEnable the auth plugin backend using the AliCloud auth plugin:\n\n```sh\n$ vault auth enable -plugin-name='alicloud' plugin\n...\n\nSuccessfully enabled 'plugin' at 'alicloud'!\n```\n\n#### Tests\n\nIf you are developing this plugin and want to verify it is still\nfunctioning (and you haven't broken anything else), we recommend\nrunning the tests.\n\nTo run the tests, invoke `make test`:\n\n```sh\n$ make test\n```\n\nYou can also specify a `TESTARGS` variable to filter tests like so:\n\n```sh\n$ make test TESTARGS='--run=TestConfig'\n```\n\n#### Acceptance Tests\n\n**Warning:** The acceptance tests create/destroy/modify *real resources*,\nwhich may incur real costs in some cases. In the presence of a bug,\nit is technically possible that broken backends could leave dangling\ndata behind. Therefore, please run the acceptance tests at your own risk.\nAt the very least, we recommend running them in their own private\naccount for whatever backend you're testing.\n\nAcceptance tests require the following environment variables.\n```sh\nexport VAULT_AUTH_ACC_TEST_ROLE_ARN=\u003cmyrolearn\u003e\nexport VAULT_AUTH_ACC_TEST_ACCESS_KEY_ID=\u003cmyaccesskeyid\u003e\nexport VAULT_AUTH_ACC_TEST_SECRET_KEY=\u003cmysecretkey\u003e\nexport VAULT_ACC=1\n```\n\nTo run the acceptance tests, invoke `make testacc`:\n\n```sh\n$ make testacc\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Fvault-plugin-auth-alicloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashicorp%2Fvault-plugin-auth-alicloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashicorp%2Fvault-plugin-auth-alicloud/lists"}