#user_management
Explore tagged Tumblr posts
mehrdadsalahi · 5 years ago
Photo
Tumblr media
‌ از این پست، دستور net رو توضیح خواهم داد. دستور net، یک دستور پرکاربرد در محیط خط فرمان است. اگر توضیحات بیشتر خواستید، لطفاً کامنت بذارید تا در اسرع وقت پاسخ بدم. فالو و لایک یادتون نره! جهت حمایت دوستان خودتون رو در زیر این پست تگ کنید. #محیط_خط_فرمان #کامند #کامپیوتر #ویندوز #دستور_net #windows #computer #command #cmd #net #net_user #user_management #compmgmt #computerscience #computer_skill_cmd #computer_skill_cmd_episod_14 (at Tehran, Iran) https://www.instagram.com/p/CBF1U1KHz0Q/?igshid=6ukycz2hvnrl
0 notes
akubi0w1 · 4 years ago
Text
golangでGCP Secret Managerにアクセスする
やったことのめも
Secret Managerとは
Secret Manager は、API キー、パスワード、証明書、その他の機密データを保存するための安全で便利なストレージシステムで��。
超簡単にまとめると、機密データを保存するDBのようなものです。JSON形式とかで値を保存できるので便利。
sample
ローカルからSecret Managerの値にアクセスしてみます。
まずはsecretを作成します。 コンソールよりぽちぽちしていきましょう。
今回は以下のような、jsonの値を管理してみます。
{ "secret": "secret", "var": "hoge" }
Secret Manager APIを有効化
https://console.cloud.google.com/marketplace/product/google/secretmanager.googleapis.com
シークレットを作成
名前: sample-secret
ファイルをアップロードでjsonファイルを上げる or 値を入力します
サービスアカウントの作成
名前などはなんでもおっけー
roleにsecret manager > シークレットアクセサーを追加
鍵(JSON)を作成し、ダウンロード
次に、goからアクセスするコードを作ってみます。
func getSecret() { ctx := context.Background() // TODO: replace projectID := "GCP_PROJECT_ID" secretID := "SECRET_ID" // get client // GCP内の通信で、デフォルトのサービスアカウントを使用する際は、optionは使用しなくておっけー opt := option.WithCredentialsFile("/path/your/key/file.json") client, err := secretmanager.NewClient(ctx, opt) if err != nil { log.Fatalf("failed to new client: %v", err) } // create request accessRequest := &secretmanagerpb.AccessSecretVersionRequest{ Name: fmt.Sprintf("projects/%s/secrets/%s/versions/latest", projectID, secretID), } // access secret result, err := client.AccessSecretVersion(ctx, accessRequest) if err != nil { log.Fatalf("failed to access secret version: %v", err) } // decode var config myConfig err = json.Unmarshal(result.Payload.Data, &mysqlConfig) if err != nil { log.Fatalf("failed to marshal json: %v", err) } log.Println("success: %v", config) } type myConfig struct { Secret string `json:"secret"` Var string `json:"var"` }
余談ですが、terraformでSecret Managerのリソースを作ると以下な感じになります。
# ##################################### # Secret Manager # # required to enable "secret manager api" # ##################################### resource "google_secret_manager_secret" "secret_manager" { secret_id = "sample-secret" replication { user_managed { replicas { location = "asia-northeast1" } } } } resource "google_secret_manager_secret_version" "secret-version-basic" { secret = "${google_secret_manager_secret.secret_manager.id}" secret_data = <<EOF { "secret": "secret", "var": "hoge" } EOF }
secret_dataの値とかsecret_idとかの部分は、*.tfvarsとかで管理してファイルには載せない、公開しないって感じにするといい感じだと思う。
ref
Secret Manager
Secret Manager -doc
terraform Secret Manager
0 notes
qlotsapp-blog · 8 years ago
Photo
Tumblr media
Stop Fishing For Customers........ Get Them Hooked On Your Catch..................... #Campaign_Management #User_Management#Target_Demographics Best Place for #Advertisers to Promote your business.
0 notes
themepluginpro · 4 years ago
Photo
Tumblr media
Download ZeusHRM: Human Resource Management on Codecanyon
Description ZeusHRM: Human Resource Management :
Download ZeusHRM: Human Resource Management. The theme releases on Monday 27th February 2017 By The author shibi_technologies on Codecanyon. It’s makes use of with Cake PHP,cakephp2,worker,worker administration,Evaluation-Forms,HRM,php scripts,person administration. Item Title: ZeusHRM: Human Resource Management Category: php-scripts/miscellaneous Price: $29 Author: shibi_technologies Published Date: Monday 27th February 2017 06:38:45 AM More Info / DownloadDemo
ZeusHRM: HRM construct on energy of CakePHP2.
Note. Please delete app/Config/database.php ,app/Config/installTxt and app/Config/salt.php earlier than loading in browser. Update is on its approach
Now with new characteristic: ZeusHRM app [see]
AND
Step By Step Installation Process
User Management
Departments [New]
Employee Timezones
Task Management
Dynamic Evaluation Forms
Notice Board
Attendance Management
Dynamic studies: CSV and PDF
Email Notifications
Leave Management
Access through solely allowed IP Addresses
Modular and Plugin primarily based
CakePHP 2
JUST CLICK AND INSTALL
EMPLOYEE PANEL WITH CHART REPORTS
EMPLOYEE’S FORM LISTING
SEE LIVE DEMO
Get Live Demo of zeusHRM http://www.shibitech.com/zeusdemo/
Any queries? Write to us at [email protected]
More Info / DownloadDemo #ZeusHRM #Human #Resource #Management
0 notes