How hashicorp/vault-plugin-secrets-alicloud works
This is a Vault secrets-engine plugin that issues AliCloud RAM access keys or short-lived STS credentials. The principal workflow is to configure AliCloud credentials, define a role, then read its creds/<name> endpoint to provision credentials and return a Vault secret. RAM issuance creates a user, applies policies, and creates a key; STS issuance assumes a configured role. README documents RAM lease renewal and revocation, while the unsampled lifecycle implementation is represented without asserting its internal calls. Relationships for unsampled paths are limited to documented or registered behavior.
Main entry points: path_creds.go Credential endpoint · backend.go Plugin backend · ram.go RAM operations · sts.go STS operations
Components 13
Vault backend
- Plugin backend
backend.go - Plugin entrypoint
cmd/vault-plugin-secrets-alicloud/main.go
Role and config
- Credential config
path_config.go - Role management
path_roles.go
Credential issuance
- Credential endpoint
path_creds.go - Secret lifecycle
path_secrets.go
AliCloud clients
- RAM operations
clients/ram.go - STS operations
clients/sts.go - Credential provider chain
clients/creds.go
Other components
- Vault operator
- Vault
- AliCloud RAM
- AliCloud STS
Connections 20
- Vault operator → Vault: enables engine
README.md - Vault → Plugin entrypoint: starts plugin
- Plugin entrypoint → Plugin backend: creates backend
- Plugin backend → Credential config: registers path
backend.go - Plugin backend → Role management: registers paths
backend.go - Plugin backend → Credential endpoint: registers path
backend.go - Plugin backend → Secret lifecycle: registers secret
backend.go - Vault operator → Credential config: sets credentials
path_config.go - Vault operator → Role management: defines role
path_roles.go - Vault operator → Credential endpoint: requests credentials
README.md - Credential endpoint → Credential config: reads credentials
path_creds.go - Credential endpoint → Role management: reads role
path_creds.go - Credential endpoint → RAM operations: provisions RAM
path_creds.go - Credential endpoint → STS operations: assumes role
path_creds.go - RAM operations → Credential provider chain: resolves credentials
clients/ram.go - STS operations → Credential provider chain: resolves credentials
clients/sts.go - RAM operations → AliCloud RAM: manages users
clients/ram.go - STS operations → AliCloud STS: assumes role
clients/sts.go - Credential endpoint → Secret lifecycle: issues leased secret
- Secret lifecycle → AliCloud RAM: revokes RAM keys
README.md