add auto fetch ssl certs

This commit is contained in:
2021-08-26 12:11:25 +08:00
parent 11ca254bed
commit 509ac048fc
237 changed files with 4968 additions and 7406 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者",
"headline" : "PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者",
"description" : "\x3cp\x3e因為工作上的需求有個資料庫需要開放給不同team的人去存取\x3c\/p\x3e\n\n\x3cp\x3e雖然都是在同一台機器上的同一個資料庫\x3c\/p\x3e\n\n\x3cp\x3e但是希望能夠不同team的人用不同的資料庫使用者\x3c\/p\x3e\n\n\x3cp\x3e這樣萬一出事會比較好抓兇手\x3c\/p\x3e",
"description" : "\x3cp\x3e因為工作上的需求有個資料庫需要開放給不同team的人去存取\x3c\/p\x3e\n\x3cp\x3e雖然都是在同一台機器上的同一個資料庫\x3c\/p\x3e\n\x3cp\x3e但是希望能夠不同team的人用不同的資料庫使用者\x3c\/p\x3e\n\x3cp\x3e這樣萬一出事會比較好抓兇手\x3c\/p\x3e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1626744134" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1629951055" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1626744134" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1629951055" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -81,10 +81,6 @@ if (!doNotTrack) {
<ul id="menu-secondary-items" class="menu-secondary-items">
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/"></a>
</li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/ansible">ansible</a>
</li>
@@ -309,27 +305,16 @@ if (!doNotTrack) {
<div class="entry-content">
<article>
<p>因為工作上的需求有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p>
<p>總之呢,這個需求一直反覆出現</p>
<p>每次開發不同的AP就要求一個不同的代號實在有點煩</p>
<p>之前都是用pgadmin來處理現在就改用psql來弄</p>
<p>其實也很簡單</p>
<pre><code>CREATE ROLE b LOGIN;
GRANT a TO b;
</code></pre>
<p>可以帶入script 用script 或者用ansible去跑就好了</p>
</code></pre><p>可以帶入script 用script 或者用ansible去跑就好了</p>
<p>省得每次都要在那邊手動改來改去..</p>
</article>
</div>
@@ -607,7 +592,7 @@ title="pinterest icon"></i>
</ul> <div class="design-credit">
<p>&copy; 2018 Göran Svensson</p>
<p>© 2018 Göran Svensson</p>
<p>Nederburg Hugo Theme by <a href="https://appernetic.io">Appernetic</a>.</p>
@@ -619,7 +604,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1626744134"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1629951055"></script>
</body>
</html>